Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001688/0.001688, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.12 kB / 306.9 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09828, allocations: 50.54 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006015/0.1043, allocations: 4.478 MB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003146/0.1075, allocations: 1.57 MB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006373/0.1082, allocations: 19.88 kB / 363.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.1089, allocations: 107.2 kB / 363.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009076/0.1098, allocations: 226.3 kB / 363.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1109, allocations: 379.4 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1123, allocations: 1.108 MB / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004626/0.1128, allocations: 234.9 kB / 365.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009212/0.1138, allocations: 470.4 kB / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008218/0.1146, allocations: 0.5097 MB / 366.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.1148, allocations: 56 kB / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004608/0.1153, allocations: 120 kB / 366.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003032/0.1156, allocations: 199.3 kB / 366.9 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005931/0.1162, allocations: 437.7 kB / 367.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008459/0.1171, allocations: 0.8108 MB / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1171, allocations: 0 / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1171, allocations: 0 / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.655e-05/0.1171, allocations: 4 kB / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.00375/0.1209, allocations: 1.318 MB / 369.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.121, allocations: 12.03 kB / 369.4 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006177/0.1216, allocations: 115.9 kB / 369.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007373/0.1223, allocations: 461.5 kB / 370 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.797e-05/0.1224, allocations: 50.38 kB / 370.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.1226, allocations: 76.06 kB / 370.1 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/0.1244, allocations: 0.8036 MB / 370.9 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/0.1244, allocations: 15.91 kB / 370.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.833e-05/0.1246, allocations: 24 kB / 371 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.1246, allocations: 20 kB / 371 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.156/0.2805, allocations: 0.8394 MB / 371.8 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004728/0.2853, allocations: 2.416 MB / 374.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.2868, allocations: 0.728 MB / 375 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009765/0.2878, allocations: 463.8 kB / 375.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.846e-05/0.288, allocations: 17.05 kB / 375.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.2891, allocations: 0.5365 MB / 376 MB, free: 18.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.635e-06/0.2891, allocations: 0 / 376 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01065/0.2998, allocations: 4.161 MB / 380.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.2999, allocations: 66.39 kB / 380.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.3005, allocations: 417.4 kB / 380.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.3006, allocations: 57.81 kB / 380.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.3008, allocations: 277.3 kB / 380.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002841/0.3011, allocations: 381.3 kB / 381.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003017/0.3014, allocations: 184.5 kB / 381.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.3015, allocations: 383.1 kB / 381.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009125/0.3024, allocations: 412.6 kB / 382.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009745/0.3034, allocations: 0.5104 MB / 382.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.305, allocations: 0.742 MB / 383.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.305, allocations: 1.25 kB / 383.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003074/0.3081, allocations: 1.293 MB / 384.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3081, allocations: 14.11 kB / 384.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3081, allocations: 2.344 kB / 384.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.3092, allocations: 0.5307 MB / 385.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007997/0.31, allocations: 198.4 kB / 385.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.3136, allocations: 3.23 MB / 388.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.315, allocations: 176.7 kB / 389 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.253e-05/0.3151, allocations: 35.92 kB / 389 MB, free: 10.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004118/0.3155, allocations: 228.1 kB / 389.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3157, allocations: 74.39 kB / 389.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.3159, allocations: 105 kB / 389.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.3159, allocations: 14.56 kB / 389.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.3159, allocations: 1.703 kB / 389.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3159, allocations: 5.531 kB / 389.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004419/0.3204, allocations: 2.512 MB / 391.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.3204, allocations: 4.75 kB / 391.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007666/0.3212, allocations: 173.8 kB / 392.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009133/0.3221, allocations: 0.4977 MB / 392.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.238e-05/0.3222, allocations: 36.22 kB / 392.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002908/0.3251, allocations: 3.063 MB / 395.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3251, allocations: 1 kB / 395.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.3286, allocations: 1.77 MB / 397.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.329, allocations: 235.5 kB / 397.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.3292, allocations: 32.59 kB / 397.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.3305, allocations: 205.1 kB / 397.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008121/0.3313, allocations: 373.2 kB / 398.3 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.3314, allocations: 43.56 kB / 398.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003175/0.3317, allocations: 288 kB / 398.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3317, allocations: 3.938 kB / 398.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008636/0.3326, allocations: 246.3 kB / 398.9 MB, free: 4.352 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008826/0.3335, allocations: 420.5 kB / 399.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.3358, allocations: 1.152 MB / 400.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3358, allocations: 0 / 400.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.3371, allocations: 0.7162 MB / 401.1 MB, free: 3.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.338, allocations: 141.3 kB / 401.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.3415, allocations: 2.376 MB / 403.7 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.3419, allocations: 0.9479 MB / 404.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.3422, allocations: 67.41 kB / 404.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3422, allocations: 0 / 404.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of Templates: time 0.02103/0.3632, allocations: 18.25 MB / 422.9 MB, free: 13.38 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches