Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00183/0.00183, allocations: 122.5 kB / 18.51 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002697/0.002697, allocations: 215.2 kB / 21.46 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 230.2 MB / 254.5 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 67.89 kB / 373.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1088, allocations: 53.32 MB / 427.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005409/0.1142, allocations: 2.464 MB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1168, allocations: 1.057 MB / 430.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.117, allocations: 8 kB / 430.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.1173, allocations: 55.5 kB / 430.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005474/0.1179, allocations: 155.9 kB / 430.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.1184, allocations: 171.6 kB / 431 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000725/0.1191, allocations: 462.8 kB / 431.5 MB, free: 136 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.1193, allocations: 62.98 kB / 431.6 MB, free: 76 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.1196, allocations: 203.4 kB / 431.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004298/0.12, allocations: 251.2 kB / 432 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.096e-05/0.1201, allocations: 36 kB / 432 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.1204, allocations: 120 kB / 432.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.1206, allocations: 115.6 kB / 432.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.1208, allocations: 179.2 kB / 432.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000775/0.1216, allocations: 498.2 kB / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1216, allocations: 0 / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1216, allocations: 0 / 432.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1216, allocations: 0 / 432.9 MB, free: 14.7 MB / 366.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.001686/0.1233, allocations: 0.6661 MB / 433.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1233, allocations: 8.031 kB / 433.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004611/0.1238, allocations: 56.67 kB / 433.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006915/0.1245, allocations: 308.6 kB / 434 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.1247, allocations: 88.52 kB / 434 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.1248, allocations: 36.3 kB / 434.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.1258, allocations: 385.3 kB / 434.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.1258, allocations: 4 kB / 434.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.415e-05/0.1259, allocations: 8 kB / 434.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.1259, allocations: 8 kB / 434.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.1272, allocations: 421.9 kB / 434.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002988/0.1302, allocations: 1.265 MB / 436.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.1312, allocations: 318.5 kB / 436.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000564/0.1318, allocations: 168.8 kB / 436.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-05/0.1318, allocations: 8.656 kB / 436.6 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.1319, allocations: 34.56 kB / 436.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.304e-06/0.1319, allocations: 0 / 436.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.007219/0.1391, allocations: 1.906 MB / 438.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.1392, allocations: 88.86 kB / 438.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.1396, allocations: 246.3 kB / 438.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-05/0.1397, allocations: 41.64 kB / 438.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1398, allocations: 140.9 kB / 439.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.14, allocations: 158.7 kB / 439.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002263/0.1402, allocations: 86.06 kB / 439.3 MB, free: 7.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.1404, allocations: 334.8 kB / 439.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/0.141, allocations: 160.8 kB / 439.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/0.1417, allocations: 229.9 kB / 440 MB, free: 7.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.1427, allocations: 339.2 kB / 440.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1427, allocations: 4 kB / 440.4 MB, free: 6.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001746/0.1445, allocations: 0.5396 MB / 440.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1445, allocations: 8.125 kB / 440.9 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1445, allocations: 0 / 440.9 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.1457, allocations: 288.6 kB / 441.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.146, allocations: 59.89 kB / 441.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005921/0.152, allocations: 2.892 MB / 444.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.1524, allocations: 24 kB / 444.2 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.039e-05/0.1524, allocations: 20 kB / 444.2 MB, free: 2.867 MB / 366.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.0002769/0.1527, allocations: 157.8 kB / 444.3 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.1529, allocations: 31.8 kB / 444.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.153, allocations: 46.98 kB / 444.4 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.153, allocations: 4 kB / 444.4 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.153, allocations: 4 kB / 444.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.153, allocations: 0 / 444.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.156, allocations: 1.105 MB / 445.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.156, allocations: 0 / 445.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.1563, allocations: 51.91 kB / 445.6 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.1574, allocations: 276.8 kB / 445.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.228e-05/0.1575, allocations: 15.98 kB / 445.9 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2238/0.3813, allocations: 2.854 MB / 448.7 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3813, allocations: 4.5 kB / 448.7 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.3827, allocations: 0.7972 MB / 449.5 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.3829, allocations: 144.9 kB / 449.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.014e-05/0.3829, allocations: 10.25 kB / 449.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.3832, allocations: 34.05 kB / 449.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3833, allocations: 60.14 kB / 449.8 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.3834, allocations: 18.83 kB / 449.8 MB, free: 23.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001886/0.3835, allocations: 184 kB / 450 MB, free: 23.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3835, allocations: 0 / 450 MB, free: 23.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005923/0.3841, allocations: 138.2 kB / 450.1 MB, free: 23.05 MB / 366.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.001279/0.3854, allocations: 377.6 kB / 450.5 MB, free: 22.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.3866, allocations: 0.591 MB / 451.1 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3866, allocations: 3.594 kB / 451.1 MB, free: 22.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006697/0.3873, allocations: 416.7 kB / 451.5 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.3877, allocations: 37.92 kB / 451.5 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.3889, allocations: 0.7037 MB / 452.2 MB, free: 22.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3891, allocations: 0.775 MB / 453 MB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.3893, allocations: 73.97 kB / 453.1 MB, free: 21.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3894, allocations: 36.61 kB / 453.1 MB, free: 21.6 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3894, allocations: 0 / 453.1 MB, free: 21.6 MB / 366.1 MB Notification: Performance of Templates: time 0.015/0.4044, allocations: 7.741 MB / 460.8 MB, free: 20.93 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.857852885499597]