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.001736/0.001736, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.002083/0.002083, allocations: 198 kB / 18.07 MB, free: 5.434 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.426/1.426, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001301/0.001301, allocations: 43.92 kB / 280 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004155/0.1121, allocations: 2.469 MB / 329.1 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1139, allocations: 1.011 MB / 330.1 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1141, allocations: 4 kB / 330.1 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002517/0.1144, allocations: 43.69 kB / 330.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005073/0.1149, allocations: 131.3 kB / 330.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.1152, allocations: 147.8 kB / 330.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.1157, allocations: 462.4 kB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.1159, allocations: 81.14 kB / 330.9 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.1162, allocations: 187.3 kB / 331.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.1166, allocations: 235.2 kB / 331.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.271e-05/0.1166, allocations: 24 kB / 331.4 MB, free: 104 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.1169, allocations: 107.8 kB / 331.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.1171, allocations: 87.66 kB / 331.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.1173, allocations: 175.1 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.1179, allocations: 478.7 kB / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1179, allocations: 4 kB / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1179, allocations: 0 / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.1179, allocations: 0 / 332.2 MB, free: 15.27 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.001595/0.1195, allocations: 0.6705 MB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.1196, allocations: 8.031 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003654/0.1199, allocations: 60.53 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.1204, allocations: 311.5 kB / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.1206, allocations: 88.61 kB / 333.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.1207, allocations: 36.28 kB / 333.4 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008201/0.1215, allocations: 421 kB / 333.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.1215, allocations: 4 kB / 333.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.187e-05/0.1216, allocations: 8 kB / 333.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1216, allocations: 8 kB / 333.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1227, allocations: 474.2 kB / 334.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.1248, allocations: 0.9773 MB / 335.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008372/0.1256, allocations: 404.7 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.1261, allocations: 238 kB / 335.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.1262, allocations: 8.422 kB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.1262, allocations: 43 kB / 335.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.1262, allocations: 0 / 335.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005377/0.1316, allocations: 2.156 MB / 338.1 MB, free: 9.098 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.1317, allocations: 81.67 kB / 338.1 MB, free: 9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.132, allocations: 259.1 kB / 338.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.1321, allocations: 41.69 kB / 338.4 MB, free: 8.691 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.1322, allocations: 137 kB / 338.6 MB, free: 8.551 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.1323, allocations: 181.4 kB / 338.7 MB, free: 8.371 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.1325, allocations: 90.16 kB / 338.8 MB, free: 8.277 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1326, allocations: 342.8 kB / 339.2 MB, free: 7.934 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/0.1331, allocations: 197 kB / 339.4 MB, free: 7.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.1336, allocations: 248.6 kB / 339.6 MB, free: 7.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/0.1344, allocations: 392.4 kB / 340 MB, free: 7.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1344, allocations: 0 / 340 MB, free: 7.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00125/0.1357, allocations: 0.6135 MB / 340.6 MB, free: 6.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1357, allocations: 7.938 kB / 340.6 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.1357, allocations: 0 / 340.6 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007649/0.1365, allocations: 261.9 kB / 340.9 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003219/0.1368, allocations: 75.81 kB / 340.9 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.1406, allocations: 2.694 MB / 343.6 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.1409, allocations: 32 kB / 343.7 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.141, allocations: 16 kB / 343.7 MB, free: 3.266 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.0002162/0.1412, allocations: 157.8 kB / 343.8 MB, free: 3.102 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.1413, allocations: 27.62 kB / 343.9 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.878e-05/0.1414, allocations: 47.38 kB / 343.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.1414, allocations: 15.92 kB / 343.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1414, allocations: 4 kB / 343.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1414, allocations: 0 / 343.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.1436, allocations: 1.272 MB / 345.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1436, allocations: 0 / 345.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.1439, allocations: 67.89 kB / 345.3 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006841/0.1446, allocations: 240.7 kB / 345.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.1447, allocations: 15.98 kB / 345.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003628/0.1483, allocations: 2.6 MB / 348.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1484, allocations: 0 / 348.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.1502, allocations: 0.9572 MB / 349.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.1504, allocations: 144.7 kB / 349.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.479e-05/0.1505, allocations: 15.94 kB / 349.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.1508, allocations: 32.03 kB / 349.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.151, allocations: 68.33 kB / 349.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.1511, allocations: 19.98 kB / 349.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002718/0.1514, allocations: 192.6 kB / 349.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1514, allocations: 3.938 kB / 349.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006686/0.152, allocations: 152 kB / 349.7 MB, free: 13 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.0002832/0.1523, allocations: 143.2 kB / 349.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.1538, allocations: 0.6954 MB / 350.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1539, allocations: 0 / 350.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.1547, allocations: 475.8 kB / 351 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.1553, allocations: 48.44 kB / 351 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.1569, allocations: 0.9246 MB / 352 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.1574, allocations: 0.797 MB / 352.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.1576, allocations: 66.88 kB / 352.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.1577, allocations: 27.42 kB / 352.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1577, allocations: 3.938 kB / 352.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of Templates: time 0.01354/0.1713, allocations: 7.268 MB / 360.1 MB, free: 2.477 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