Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.00143, allocations: 115 kB / 17.93 MB, free: 5.566 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.001694/0.001694, allocations: 189.4 kB / 18.86 MB, free: 4.645 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.361/1.361, allocations: 205.1 MB / 224.7 MB, free: 12.31 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.00126/0.00126, allocations: 51.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08808, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004329/0.09246, allocations: 2.758 MB / 330.2 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.09459, allocations: 1.124 MB / 331.3 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.09481, allocations: 4 kB / 331.3 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.09511, allocations: 59.61 kB / 331.4 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.0957, allocations: 167.1 kB / 331.5 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.09616, allocations: 223.7 kB / 331.8 MB, free: 440 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006006/0.09677, allocations: 0.643 MB / 332.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.09701, allocations: 119.4 kB / 332.5 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003905/0.09741, allocations: 295.1 kB / 332.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/0.09781, allocations: 346.8 kB / 333.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.679e-05/0.0979, allocations: 56 kB / 333.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.09816, allocations: 131.9 kB / 333.3 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.09833, allocations: 151.5 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.09855, allocations: 246.8 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004866/0.09905, allocations: 483.2 kB / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09906, allocations: 0 / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09907, allocations: 0 / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.09909, allocations: 0 / 334.2 MB, free: 13.98 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001583/0.1007, allocations: 0.7993 MB / 335 MB, free: 13.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1007, allocations: 15.89 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003382/0.1011, allocations: 68.3 kB / 335.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.1016, allocations: 358.4 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.1018, allocations: 100.9 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/0.1018, allocations: 36.38 kB / 335.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.1029, allocations: 0.5645 MB / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.103, allocations: 0 / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/0.103, allocations: 19.94 kB / 336.1 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.103, allocations: 15.94 kB / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1044, allocations: 0.6402 MB / 336.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.1068, allocations: 1.283 MB / 338.1 MB, free: 9.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.1079, allocations: 0.5442 MB / 338.6 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006117/0.1086, allocations: 326.4 kB / 338.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.1086, allocations: 12.48 kB / 339 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.1087, allocations: 47.06 kB / 339 MB, free: 8.984 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.913e-06/0.1087, allocations: 0 / 339 MB, free: 8.984 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006738/0.1154, allocations: 2.864 MB / 341.9 MB, free: 6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.04e-05/0.1155, allocations: 93.59 kB / 342 MB, free: 5.891 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004289/0.1159, allocations: 330.9 kB / 342.3 MB, free: 5.551 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.116, allocations: 45.69 kB / 342.3 MB, free: 5.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.1161, allocations: 157.6 kB / 342.5 MB, free: 5.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.1163, allocations: 236.7 kB / 342.7 MB, free: 5.109 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.1166, allocations: 122.2 kB / 342.8 MB, free: 4.984 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1167, allocations: 346.8 kB / 343.2 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005894/0.1173, allocations: 289.2 kB / 343.4 MB, free: 4.355 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006381/0.1179, allocations: 354.5 kB / 343.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.119, allocations: 0.5265 MB / 344.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.119, allocations: 0 / 344.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001679/0.1207, allocations: 0.8812 MB / 345.2 MB, free: 2.574 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1207, allocations: 7.938 kB / 345.2 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1207, allocations: 0 / 345.2 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.1218, allocations: 473.5 kB / 345.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.1222, allocations: 83.88 kB / 345.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.1235, allocations: 1.071 MB / 346.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.1239, allocations: 63.95 kB / 346.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.124, allocations: 24.06 kB / 346.9 MB, free: 0.8359 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002603/0.1243, allocations: 181.7 kB / 347.1 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.1244, allocations: 39.53 kB / 347.1 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.1245, allocations: 67.7 kB / 347.2 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1246, allocations: 7.984 kB / 347.2 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.1246, allocations: 4 kB / 347.2 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.1246, allocations: 3.984 kB / 347.2 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.1278, allocations: 1.762 MB / 349 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.1278, allocations: 8.062 kB / 349 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003592/0.1282, allocations: 71.89 kB / 349 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009526/0.1292, allocations: 456.5 kB / 349.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.487e-05/0.1292, allocations: 23.91 kB / 349.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.1305, allocations: 1.044 MB / 350.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1305, allocations: 0 / 350.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.133, allocations: 1.301 MB / 351.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.1333, allocations: 176.6 kB / 352 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.1334, allocations: 20 kB / 352.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.1338, allocations: 47.94 kB / 352.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.1341, allocations: 88.48 kB / 352.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.1341, allocations: 27.97 kB / 352.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003137/0.1344, allocations: 241.9 kB / 352.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1344, allocations: 0 / 352.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005369/0.135, allocations: 148 kB / 352.6 MB, free: 11 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002908/0.1353, allocations: 163 kB / 352.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.137, allocations: 0.743 MB / 353.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.137, allocations: 0 / 353.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008666/0.1379, allocations: 392 kB / 353.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.1384, allocations: 45 kB / 353.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.1412, allocations: 1.327 MB / 355.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.1417, allocations: 0.8134 MB / 356.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.1419, allocations: 51.41 kB / 356.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1419, allocations: 0 / 356.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of Templates: time 0.01236/0.1543, allocations: 7.203 MB / 363.3 MB, free: 196 kB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time