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.0009257/0.0009259, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.0008344/0.0008345, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.529/1.529, 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.0004686/0.000469, allocations: 8 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1174, allocations: 47.57 MB / 328.9 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003073/0.1205, allocations: 2.033 MB / 331 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.1223, allocations: 0.9454 MB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.1225, allocations: 7.938 kB / 331.9 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.1228, allocations: 35.77 kB / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004648/0.1232, allocations: 111.4 kB / 332.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.1236, allocations: 151.8 kB / 332.2 MB, free: 476 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004767/0.1241, allocations: 402.7 kB / 332.6 MB, free: 72 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.1243, allocations: 60.7 kB / 332.7 MB, free: 12 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.1246, allocations: 155.6 kB / 332.8 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003106/0.1249, allocations: 207.2 kB / 333 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.1249, allocations: 16 kB / 333.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.1252, allocations: 103.8 kB / 333.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.1253, allocations: 83.66 kB / 333.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.1255, allocations: 172.9 kB / 333.4 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004783/0.126, allocations: 422.8 kB / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.126, allocations: 0 / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.126, allocations: 0 / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.126, allocations: 0 / 333.8 MB, free: 14.87 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.00131/0.1273, allocations: 0.5732 MB / 334.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/0.1274, allocations: 12.03 kB / 334.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003515/0.1277, allocations: 44.55 kB / 334.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.1282, allocations: 307.8 kB / 334.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.1284, allocations: 84.52 kB / 334.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.1285, allocations: 40.22 kB / 334.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.1292, allocations: 385.3 kB / 335.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1293, allocations: 4 kB / 335.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.812e-05/0.1293, allocations: 12 kB / 335.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1293, allocations: 12 kB / 335.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009002/0.1302, allocations: 425.9 kB / 335.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.1324, allocations: 1.245 MB / 336.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006748/0.1331, allocations: 362.5 kB / 337.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003818/0.1335, allocations: 188.8 kB / 337.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1335, allocations: 4 kB / 337.5 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.1336, allocations: 38.55 kB / 337.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1336, allocations: 0 / 337.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004862/0.1385, allocations: 1.976 MB / 339.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.1386, allocations: 84.86 kB / 339.6 MB, free: 8.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.1389, allocations: 234.3 kB / 339.8 MB, free: 8.523 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.1389, allocations: 37.69 kB / 339.8 MB, free: 8.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1391, allocations: 136.6 kB / 340 MB, free: 8.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.1392, allocations: 157.9 kB / 340.1 MB, free: 8.188 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.1393, allocations: 41.7 kB / 340.2 MB, free: 8.141 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1394, allocations: 338.8 kB / 340.5 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003788/0.1398, allocations: 176.7 kB / 340.7 MB, free: 7.629 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.1403, allocations: 233.9 kB / 340.9 MB, free: 7.379 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.141, allocations: 355.2 kB / 341.2 MB, free: 7.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.141, allocations: 3.984 kB / 341.2 MB, free: 7.016 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001112/0.1421, allocations: 0.5591 MB / 341.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1421, allocations: 8.031 kB / 341.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1421, allocations: 0 / 341.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007717/0.1429, allocations: 256.6 kB / 342.1 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.1432, allocations: 51.91 kB / 342.1 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/0.147, allocations: 2.655 MB / 344.8 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.1473, allocations: 36.03 kB / 344.8 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/0.1474, allocations: 16 kB / 344.8 MB, free: 3.297 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.0002015/0.1476, allocations: 153.8 kB / 345 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.439e-05/0.1476, allocations: 27.66 kB / 345 MB, free: 3.109 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.602e-05/0.1477, allocations: 42.98 kB / 345 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1478, allocations: 11.98 kB / 345.1 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1478, allocations: 0 / 345.1 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1478, allocations: 4 kB / 345.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.1497, allocations: 1.108 MB / 346.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1497, allocations: 0 / 346.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.1499, allocations: 47.91 kB / 346.2 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006332/0.1506, allocations: 232.9 kB / 346.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.1506, allocations: 19.98 kB / 346.5 MB, free: 1.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003517/0.1541, allocations: 2.601 MB / 349.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1542, allocations: 4.031 kB / 349.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.1556, allocations: 0.8374 MB / 349.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.1558, allocations: 144.7 kB / 350 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.121e-05/0.1559, allocations: 16.06 kB / 350.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.1561, allocations: 27.97 kB / 350.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.1563, allocations: 55.91 kB / 350.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.1563, allocations: 19.98 kB / 350.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.1566, allocations: 176.3 kB / 350.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1566, allocations: 0 / 350.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.1572, allocations: 144 kB / 350.5 MB, free: 13.4 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.0002536/0.1574, allocations: 143.1 kB / 350.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.1587, allocations: 0.6292 MB / 351.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1587, allocations: 0 / 351.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006896/0.1594, allocations: 437.5 kB / 351.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.1598, allocations: 40.05 kB / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.1613, allocations: 0.8619 MB / 352.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1617, allocations: 0.7764 MB / 353.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002118/0.1619, allocations: 62.95 kB / 353.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.664e-05/0.162, allocations: 27.42 kB / 353.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.162, allocations: 0 / 353.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01219/0.1742, allocations: 6.554 MB / 360 MB, free: 3.789 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