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.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.001709/0.001709, allocations: 85.75 kB / 21.43 MB, free: 296 kB / 14.72 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.001958/0.001958, allocations: 164.3 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 298.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.025e-05/3.212e-05, allocations: 2.281 kB / 298.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003893/0.003925, allocations: 2.214 MB / 301.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.00579, allocations: 0.9255 MB / 302.1 MB, free: 5.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.005969, allocations: 7.938 kB / 302.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.006213, allocations: 43.64 kB / 302.1 MB, free: 5.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.006773, allocations: 147 kB / 302.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.007181, allocations: 167.6 kB / 302.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004931/0.007675, allocations: 434.5 kB / 302.9 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.007815, allocations: 44.91 kB / 302.9 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003523/0.008167, allocations: 251.5 kB / 303.1 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000324/0.008491, allocations: 191.6 kB / 303.3 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.257e-05/0.008564, allocations: 32 kB / 303.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.008805, allocations: 119.8 kB / 303.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.008953, allocations: 99.69 kB / 303.6 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.009116, allocations: 119.7 kB / 303.7 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006534/0.009769, allocations: 490.5 kB / 304.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.009772, allocations: 0 / 304.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.009773, allocations: 0 / 304.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.009782, allocations: 3.938 kB / 304.2 MB, free: 3.473 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.001245/0.01103, allocations: 0.5675 MB / 304.7 MB, free: 2.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.01106, allocations: 15.98 kB / 304.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.01139, allocations: 48.73 kB / 304.8 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.01192, allocations: 245.2 kB / 305 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.0121, allocations: 144 kB / 305.2 MB, free: 2.383 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.01217, allocations: 28.38 kB / 305.2 MB, free: 2.355 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008046/0.01298, allocations: 401 kB / 305.6 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.01299, allocations: 192 / 305.6 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-05/0.01304, allocations: 20.11 kB / 305.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.01305, allocations: 4 kB / 305.6 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009449/0.014, allocations: 414.2 kB / 306 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.0162, allocations: 1.065 MB / 307.1 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.01691, allocations: 346.5 kB / 307.4 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004009/0.01731, allocations: 172.8 kB / 307.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.281e-05/0.01735, allocations: 4.719 kB / 307.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.01739, allocations: 38.56 kB / 307.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.084e-06/0.01739, allocations: 0 / 307.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005032/0.02242, allocations: 1.679 MB / 309.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.0225, allocations: 92.8 kB / 309.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.02284, allocations: 246.2 kB / 309.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.02289, allocations: 33.7 kB / 309.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.023, allocations: 132.9 kB / 309.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.02314, allocations: 162.6 kB / 310 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.0233, allocations: 82.17 kB / 310.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.02346, allocations: 334.8 kB / 310.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.02388, allocations: 168.9 kB / 310.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.02435, allocations: 252.2 kB / 310.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/0.02511, allocations: 352.2 kB / 311.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.02512, allocations: 0 / 311.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001198/0.02631, allocations: 0.5451 MB / 311.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.02633, allocations: 7.938 kB / 311.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.02634, allocations: 0 / 311.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007836/0.02712, allocations: 256.6 kB / 311.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.02737, allocations: 47.97 kB / 312 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004174/0.03154, allocations: 2.72 MB / 314.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.03181, allocations: 23.97 kB / 314.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/0.03185, allocations: 16 kB / 314.8 MB, free: 8.453 MB / 302.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.0002075/0.03206, allocations: 153.8 kB / 314.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.33e-05/0.03214, allocations: 27.8 kB / 314.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.631e-05/0.03224, allocations: 46.94 kB / 315 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.03224, allocations: 7.984 kB / 315 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.03225, allocations: 3.938 kB / 315 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.03225, allocations: 64 / 315 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.03417, allocations: 0.9492 MB / 315.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.03417, allocations: 0 / 315.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.0344, allocations: 43.95 kB / 316 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006885/0.03509, allocations: 232.7 kB / 316.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.03513, allocations: 16 kB / 316.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003976/0.03911, allocations: 2.68 MB / 318.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.03911, allocations: 0 / 318.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00162/0.04073, allocations: 0.816 MB / 319.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.04089, allocations: 59.83 kB / 319.8 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.04096, allocations: 12 kB / 319.8 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.04124, allocations: 19.98 kB / 319.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.04142, allocations: 68 kB / 319.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.04146, allocations: 15.98 kB / 319.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.0417, allocations: 176.3 kB / 320.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0417, allocations: 4 kB / 320.1 MB, free: 2.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006713/0.04237, allocations: 143.9 kB / 320.2 MB, free: 2.828 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.0003245/0.0427, allocations: 135.2 kB / 320.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.04426, allocations: 0.6059 MB / 320.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.04427, allocations: 0 / 320.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008818/0.04515, allocations: 417.8 kB / 321.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.0456, allocations: 40.09 kB / 321.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.04721, allocations: 0.6486 MB / 322 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.04744, allocations: 175.7 kB / 322.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.04763, allocations: 50.95 kB / 322.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.477e-05/0.04773, allocations: 28.48 kB / 322.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.04773, allocations: 0 / 322.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of Templates: time 0.149/0.1968, allocations: 6.518 MB / 328.8 MB, free: 33.5 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.69972725585103]