Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008363/0.0008363, allocations: 95.95 kB / 17.3 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007829/0.0007829, allocations: 173.3 kB / 18.2 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004933/0.0004934, allocations: 11.98 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1053, allocations: 47.59 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002467/0.1078, allocations: 2.103 MB / 331.1 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1094, allocations: 0.9959 MB / 332.1 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.1096, allocations: 4 kB / 332.1 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1098, allocations: 43.69 kB / 332.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004484/0.1102, allocations: 127.3 kB / 332.2 MB, free: 480 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003211/0.1106, allocations: 163.8 kB / 332.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.111, allocations: 442.5 kB / 332.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.1112, allocations: 81.12 kB / 332.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.1115, allocations: 187.4 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1118, allocations: 231.2 kB / 333.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.835e-05/0.1118, allocations: 20 kB / 333.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.112, allocations: 95.88 kB / 333.4 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.1122, allocations: 87.7 kB / 333.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.1123, allocations: 200.7 kB / 333.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004706/0.1128, allocations: 462.7 kB / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1128, allocations: 0 / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1128, allocations: 0 / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1129, allocations: 0 / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001173/0.114, allocations: 0.616 MB / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1141, allocations: 12.03 kB / 334.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.1144, allocations: 56.44 kB / 334.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.1148, allocations: 311.5 kB / 335.1 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.115, allocations: 96.55 kB / 335.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.1151, allocations: 32.38 kB / 335.3 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007872/0.1159, allocations: 429 kB / 335.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.1159, allocations: 3.906 kB / 335.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.1159, allocations: 12 kB / 335.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.116, allocations: 8 kB / 335.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.117, allocations: 486.3 kB / 336.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.1187, allocations: 0.9814 MB / 337.2 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008454/0.1196, allocations: 420.5 kB / 337.6 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004805/0.1201, allocations: 242.1 kB / 337.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.1201, allocations: 8.422 kB / 337.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1201, allocations: 39 kB / 337.9 MB, free: 10.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.033e-06/0.1202, allocations: 0 / 337.9 MB, free: 10.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005509/0.1257, allocations: 2.23 MB / 340.1 MB, free: 8.293 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.1258, allocations: 93.59 kB / 340.2 MB, free: 8.184 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1261, allocations: 255.1 kB / 340.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.577e-05/0.1262, allocations: 41.7 kB / 340.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1263, allocations: 137.1 kB / 340.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.1265, allocations: 181.3 kB / 340.8 MB, free: 7.559 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.266e-05/0.1266, allocations: 45.7 kB / 340.8 MB, free: 7.508 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1267, allocations: 338.8 kB / 341.2 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004609/0.1272, allocations: 201 kB / 341.4 MB, free: 6.973 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004942/0.1277, allocations: 260.6 kB / 341.6 MB, free: 6.707 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000885/0.1286, allocations: 404.4 kB / 342 MB, free: 6.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1286, allocations: 0 / 342 MB, free: 6.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001331/0.1299, allocations: 0.6329 MB / 342.6 MB, free: 5.664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.13, allocations: 7.938 kB / 342.6 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.13, allocations: 0 / 342.6 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007501/0.1307, allocations: 261.9 kB / 342.9 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.1311, allocations: 75.88 kB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.135, allocations: 2.702 MB / 345.7 MB, free: 2.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.1353, allocations: 35.97 kB / 345.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.1353, allocations: 16 kB / 345.7 MB, free: 2.441 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002128/0.1356, allocations: 161.8 kB / 345.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.2e-05/0.1357, allocations: 31.62 kB / 345.9 MB, free: 2.242 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.1358, allocations: 51.3 kB / 346 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.1358, allocations: 11.94 kB / 346 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1358, allocations: 0 / 346 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1358, allocations: 3.984 kB / 346 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.138, allocations: 1.28 MB / 347.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.138, allocations: 0 / 347.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.1384, allocations: 71.81 kB / 347.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006628/0.139, allocations: 248.6 kB / 347.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.1391, allocations: 15.98 kB / 347.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003533/0.1426, allocations: 2.612 MB / 350.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1426, allocations: 0 / 350.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.1444, allocations: 0.9729 MB / 351.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001961/0.1446, allocations: 156.6 kB / 351.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.1447, allocations: 12 kB / 351.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.145, allocations: 44.03 kB / 351.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.1452, allocations: 72.27 kB / 351.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.1453, allocations: 19.98 kB / 351.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.1455, allocations: 196.6 kB / 351.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1455, allocations: 0 / 351.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000649/0.1462, allocations: 148 kB / 351.8 MB, free: 12.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000261/0.1464, allocations: 139.2 kB / 352 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.148, allocations: 0.7111 MB / 352.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.148, allocations: 4 kB / 352.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008467/0.1489, allocations: 483.8 kB / 353.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.1493, allocations: 48.55 kB / 353.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.151, allocations: 0.98 MB / 354.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.1515, allocations: 0.7853 MB / 355 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002144/0.1517, allocations: 66.94 kB / 355 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1518, allocations: 31.42 kB / 355 MB, free: 8.781 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1518, allocations: 0 / 355 MB, free: 8.781 MB / 302.1 MB Notification: Performance of Templates: time 0.01274/0.1645, allocations: 7.158 MB / 362.2 MB, free: 1.621 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches