Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.00106/0.00106, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.0009954/0.0009954, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.008/1.008, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.798e-05, allocations: 5.266 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006469/0.006487, allocations: 2.571 MB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.01093, allocations: 1.111 MB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.01103, allocations: 7.938 kB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002711/0.0113, allocations: 63.44 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004108/0.01171, allocations: 187.8 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.01203, allocations: 183.6 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004615/0.01249, allocations: 0.5256 MB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.01266, allocations: 61.11 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.01299, allocations: 323.3 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.01321, allocations: 231.5 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.01328, allocations: 44 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.01345, allocations: 139.8 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.997e-05/0.01355, allocations: 119.6 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.01365, allocations: 151.6 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004169/0.01407, allocations: 442.5 kB / 279 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.01408, allocations: 4 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01408, allocations: 0 / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.01408, allocations: 0 / 279 MB, free: 11.32 MB / 266.7 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.0008315/0.01492, allocations: 0.7296 MB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.01496, allocations: 19.97 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.0152, allocations: 84.69 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.0155, allocations: 268.7 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.01576, allocations: 144 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.01581, allocations: 36.33 kB / 280.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.01625, allocations: 360.8 kB / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.01626, allocations: 192 / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.01629, allocations: 20.11 kB / 280.7 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.0163, allocations: 8 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.01666, allocations: 263.6 kB / 280.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009661/0.01762, allocations: 0.7759 MB / 281.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/0.01801, allocations: 254 kB / 282 MB, free: 8.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.01819, allocations: 137 kB / 282.1 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.01822, allocations: 8.5 kB / 282.1 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.01824, allocations: 41.89 kB / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.122e-06/0.01825, allocations: 0 / 282.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002391/0.02064, allocations: 1.488 MB / 283.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.02067, allocations: 81.61 kB / 283.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.02085, allocations: 278.6 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.02089, allocations: 41.69 kB / 284 MB, free: 6.051 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.228e-05/0.02097, allocations: 184 kB / 284.2 MB, free: 5.867 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.02108, allocations: 190.3 kB / 284.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.02119, allocations: 99.83 kB / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.02134, allocations: 0.5118 MB / 285 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.02151, allocations: 100.9 kB / 285.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.0217, allocations: 194.1 kB / 285.3 MB, free: 4.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.022, allocations: 229.3 kB / 285.5 MB, free: 4.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.022, allocations: 0 / 285.5 MB, free: 4.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005439/0.02255, allocations: 441.7 kB / 285.9 MB, free: 4.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.02256, allocations: 4 kB / 285.9 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.02256, allocations: 4 kB / 285.9 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.02298, allocations: 229.4 kB / 286.2 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.02314, allocations: 63.89 kB / 286.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.02553, allocations: 2.923 MB / 289.2 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.02565, allocations: 23.92 kB / 289.2 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.02568, allocations: 16 kB / 289.2 MB, free: 0.6875 MB / 266.7 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.0001094/0.02579, allocations: 180.6 kB / 289.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/0.02586, allocations: 51.75 kB / 289.4 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.0259, allocations: 51.34 kB / 289.5 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.0259, allocations: 4 kB / 289.5 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.02591, allocations: 3.938 kB / 289.5 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.02591, allocations: 3.984 kB / 289.5 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.02702, allocations: 0.9715 MB / 290.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.02702, allocations: 0 / 290.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.02719, allocations: 67.89 kB / 290.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003545/0.02755, allocations: 235.4 kB / 290.7 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.02757, allocations: 15.98 kB / 290.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.02963, allocations: 2.857 MB / 293.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.02963, allocations: 0 / 293.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.03042, allocations: 0.701 MB / 294.3 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.03052, allocations: 83.72 kB / 294.4 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.03072, allocations: 12 kB / 294.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.03085, allocations: 19.98 kB / 294.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.03096, allocations: 72.3 kB / 294.5 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.03099, allocations: 19.98 kB / 294.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.0311, allocations: 201.4 kB / 294.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0311, allocations: 0 / 294.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003589/0.03146, allocations: 156 kB / 294.9 MB, free: 10.79 MB / 282.7 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.0007078/0.03217, allocations: 361.8 kB / 295.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006955/0.03286, allocations: 0.5933 MB / 295.8 MB, free: 9.914 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.03287, allocations: 0 / 295.8 MB, free: 9.914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004467/0.03331, allocations: 464 kB / 296.3 MB, free: 9.438 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.0336, allocations: 76 kB / 296.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.03466, allocations: 0.7021 MB / 297 MB, free: 8.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.802e-05/0.03473, allocations: 118.3 kB / 297.2 MB, free: 8.488 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.03486, allocations: 74.92 kB / 297.2 MB, free: 8.414 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.108e-05/0.03495, allocations: 40.47 kB / 297.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.03495, allocations: 0 / 297.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of Templates: time 0.009228/0.04418, allocations: 7.669 MB / 304.9 MB, free: 0.75 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.238372336141765]