Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001493, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001527/0.001527, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.49/1.49, allocations: 205.1 MB / 224.1 MB, free: 12.42 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.001137/0.001137, allocations: 47.94 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 46.64 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003991/0.1194, allocations: 2.384 MB / 329.2 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1213, allocations: 0.953 MB / 330.1 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.1214, allocations: 4 kB / 330.1 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002337/0.1217, allocations: 27.78 kB / 330.1 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004933/0.1222, allocations: 123.5 kB / 330.3 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.1225, allocations: 155.8 kB / 330.4 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004277/0.123, allocations: 418.7 kB / 330.8 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1231, allocations: 68.7 kB / 330.9 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.1233, allocations: 187.4 kB / 331.1 MB, free: 468 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.1237, allocations: 219.3 kB / 331.3 MB, free: 248 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.664e-05/0.1237, allocations: 32 kB / 331.3 MB, free: 216 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.1239, allocations: 115.9 kB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.1241, allocations: 95.72 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.1243, allocations: 167.2 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005099/0.1248, allocations: 435 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1248, allocations: 0 / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1248, allocations: 3.938 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1248, allocations: 0 / 332.1 MB, free: 15.41 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001235/0.1261, allocations: 0.6433 MB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.1261, allocations: 8.031 kB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.1264, allocations: 48.55 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.1269, allocations: 307.7 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.127, allocations: 88.52 kB / 333.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.1271, allocations: 28.38 kB / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007182/0.1278, allocations: 385.3 kB / 333.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.1278, allocations: 0 / 333.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.1279, allocations: 12 kB / 333.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.1279, allocations: 8 kB / 333.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009226/0.1288, allocations: 417.9 kB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.1309, allocations: 1.226 MB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.1316, allocations: 358.5 kB / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.1319, allocations: 192.8 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.132, allocations: 4 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.132, allocations: 43.2 kB / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.773e-06/0.132, allocations: 0 / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.00464/0.1367, allocations: 1.917 MB / 337.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.1368, allocations: 88.86 kB / 337.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.1371, allocations: 238.2 kB / 338.1 MB, free: 9.086 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.1371, allocations: 45.62 kB / 338.1 MB, free: 9.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1373, allocations: 136.6 kB / 338.3 MB, free: 8.898 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.1374, allocations: 150 kB / 338.4 MB, free: 8.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.1375, allocations: 82.12 kB / 338.5 MB, free: 8.664 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1377, allocations: 330.8 kB / 338.8 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.138, allocations: 168.8 kB / 339 MB, free: 8.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.1384, allocations: 233.9 kB / 339.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006442/0.1391, allocations: 347.1 kB / 339.5 MB, free: 7.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1391, allocations: 0 / 339.5 MB, free: 7.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001095/0.1402, allocations: 0.5551 MB / 340.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.1403, allocations: 11.98 kB / 340.1 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1403, allocations: 0 / 340.1 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007438/0.141, allocations: 252.8 kB / 340.4 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.1413, allocations: 51.91 kB / 340.4 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004975/0.1463, allocations: 2.889 MB / 343.3 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1467, allocations: 23.97 kB / 343.3 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-05/0.1467, allocations: 16 kB / 343.3 MB, free: 3.625 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002621/0.147, allocations: 157.8 kB / 343.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-05/0.1471, allocations: 27.62 kB / 343.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.1472, allocations: 42.98 kB / 343.6 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.1472, allocations: 11.92 kB / 343.6 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.1473, allocations: 8.062 kB / 343.6 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.1473, allocations: 0 / 343.6 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.1493, allocations: 1.093 MB / 344.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1493, allocations: 4 kB / 344.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.1495, allocations: 43.91 kB / 344.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.1502, allocations: 236.9 kB / 345 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.1502, allocations: 15.98 kB / 345 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003697/0.1539, allocations: 2.843 MB / 347.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.154, allocations: 0 / 347.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.1555, allocations: 0.8141 MB / 348.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.1556, allocations: 136.8 kB / 348.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.86e-05/0.1557, allocations: 20.06 kB / 348.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.1559, allocations: 19.98 kB / 348.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.1561, allocations: 63.89 kB / 348.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.1562, allocations: 12 kB / 348.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.1564, allocations: 184.2 kB / 349.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1564, allocations: 0 / 349.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006208/0.157, allocations: 140 kB / 349.2 MB, free: 13.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.000271/0.1573, allocations: 143.1 kB / 349.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.1586, allocations: 0.6485 MB / 350 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1587, allocations: 0 / 350 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.1594, allocations: 429.6 kB / 350.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.1599, allocations: 39.86 kB / 350.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.1614, allocations: 0.8192 MB / 351.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1618, allocations: 0.7761 MB / 352 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002081/0.162, allocations: 66.94 kB / 352.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.818e-05/0.1621, allocations: 27.42 kB / 352.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1621, allocations: 0 / 352.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of Templates: time 0.013/0.1751, allocations: 7.072 MB / 359.2 MB, free: 3.414 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches