Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008579/0.0008579, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003797/0.003797, allocations: 160 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8427/0.8427, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.523e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002662/0.002687, allocations: 2.346 MB / 328.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.003922, allocations: 1.014 MB / 329.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.004025, allocations: 7.938 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.004271, allocations: 63.39 kB / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003348/0.004605, allocations: 152.6 kB / 329.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.004874, allocations: 171.5 kB / 329.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.005212, allocations: 486.4 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.005344, allocations: 52.83 kB / 330.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.005551, allocations: 267.6 kB / 330.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.005784, allocations: 219.5 kB / 330.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.005828, allocations: 36 kB / 330.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.00599, allocations: 123.9 kB / 330.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.606e-05/0.006086, allocations: 107.7 kB / 330.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.367e-05/0.00617, allocations: 127.7 kB / 330.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.0066, allocations: 0.5414 MB / 331.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.006605, allocations: 0 / 331.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.006607, allocations: 0 / 331.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.006612, allocations: 0 / 331.5 MB, free: 9.75 MB / 298.7 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.0008146/0.007427, allocations: 0.5907 MB / 332.1 MB, free: 9.129 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.007462, allocations: 8.031 kB / 332.1 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.007675, allocations: 56.67 kB / 332.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.008044, allocations: 242.6 kB / 332.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.00815, allocations: 144 kB / 332.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.008192, allocations: 24.38 kB / 332.5 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.008655, allocations: 412.9 kB / 332.9 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.008671, allocations: 4.188 kB / 333 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.008697, allocations: 16.12 kB / 333 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.008703, allocations: 8 kB / 333 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.009193, allocations: 410.2 kB / 333.4 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.01049, allocations: 1.084 MB / 334.5 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/0.01094, allocations: 319.5 kB / 334.8 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.01115, allocations: 164.7 kB / 334.9 MB, free: 6.145 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.01118, allocations: 4.719 kB / 334.9 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.0112, allocations: 38.56 kB / 335 MB, free: 6.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.516e-06/0.01121, allocations: 3.984 kB / 335 MB, free: 6.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.00295/0.01415, allocations: 1.667 MB / 336.6 MB, free: 4.363 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.0142, allocations: 88.8 kB / 336.7 MB, free: 4.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.0144, allocations: 250.1 kB / 337 MB, free: 4.004 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.01442, allocations: 33.7 kB / 337 MB, free: 3.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.01449, allocations: 144.9 kB / 337.2 MB, free: 3.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.409e-05/0.01459, allocations: 154.7 kB / 337.3 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.341e-05/0.01468, allocations: 86.12 kB / 337.4 MB, free: 3.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.386e-05/0.01476, allocations: 342.8 kB / 337.7 MB, free: 3.227 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.01498, allocations: 168.9 kB / 337.9 MB, free: 3.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.01523, allocations: 252.2 kB / 338.1 MB, free: 2.793 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.01564, allocations: 336.2 kB / 338.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.01564, allocations: 0 / 338.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006609/0.0163, allocations: 0.5372 MB / 339 MB, free: 1.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.01632, allocations: 11.92 kB / 339 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.01633, allocations: 7.938 kB / 339 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.01682, allocations: 296.8 kB / 339.3 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.01696, allocations: 51.89 kB / 339.4 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002432/0.01939, allocations: 2.717 MB / 342.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.01953, allocations: 28 kB / 342.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000252/0.01979, allocations: 20 kB / 342.1 MB, free: 14.66 MB / 314.7 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.0001418/0.01993, allocations: 153.9 kB / 342.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.01998, allocations: 35.75 kB / 342.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.02002, allocations: 39 kB / 342.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.02003, allocations: 7.984 kB / 342.4 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.02003, allocations: 3.938 kB / 342.4 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.02003, allocations: 0 / 342.4 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.02116, allocations: 0.9723 MB / 343.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.02116, allocations: 4 kB / 343.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.02128, allocations: 51.89 kB / 343.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003982/0.02168, allocations: 276.7 kB / 343.7 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.02171, allocations: 15.98 kB / 343.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.02393, allocations: 2.673 MB / 346.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.02393, allocations: 4 kB / 346.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009217/0.02485, allocations: 0.8041 MB / 347.2 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.02495, allocations: 71.81 kB / 347.2 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.02499, allocations: 11.98 kB / 347.2 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.02511, allocations: 23.98 kB / 347.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.02523, allocations: 67.86 kB / 347.3 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.889e-05/0.02525, allocations: 15.98 kB / 347.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000136/0.02538, allocations: 184.2 kB / 347.5 MB, free: 9.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02538, allocations: 0 / 347.5 MB, free: 9.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004264/0.02581, allocations: 139.9 kB / 347.7 MB, free: 8.961 MB / 314.7 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.0007193/0.02653, allocations: 397 kB / 348 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008536/0.02738, allocations: 0.6065 MB / 348.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02738, allocations: 0 / 348.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.0278, allocations: 425.7 kB / 349.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.02809, allocations: 39.02 kB / 349.1 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.02929, allocations: 0.6737 MB / 349.8 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.02942, allocations: 171.8 kB / 349.9 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.62e-05/0.02951, allocations: 40.47 kB / 350 MB, free: 6.707 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02951, allocations: 0 / 350 MB, free: 6.707 MB / 314.7 MB Notification: Performance of Templates: time 0.005751/0.03526, allocations: 6.071 MB / 356.1 MB, free: 0.6367 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.581415301188827]