Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001805/0.001805, allocations: 84.69 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.001931/0.001931, allocations: 166.5 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.41/1.41, 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 298.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.711e-05/3.902e-05, allocations: 2.281 kB / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004231/0.00427, allocations: 2.284 MB / 301.2 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.006284, allocations: 0.9722 MB / 302.2 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.006427, allocations: 4 kB / 302.2 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.006684, allocations: 55.45 kB / 302.3 MB, free: 5.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005849/0.007269, allocations: 159 kB / 302.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.007641, allocations: 183.6 kB / 302.6 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005305/0.008171, allocations: 486.2 kB / 303.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.008353, allocations: 65.06 kB / 303.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003982/0.008752, allocations: 287.4 kB / 303.4 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003156/0.009067, allocations: 211.5 kB / 303.6 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.009143, allocations: 36 kB / 303.7 MB, free: 4 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.009389, allocations: 119.9 kB / 303.8 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.009563, allocations: 115.6 kB / 303.9 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.009732, allocations: 127.7 kB / 304 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006748/0.01041, allocations: 0.5258 MB / 304.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.01041, allocations: 8 kB / 304.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.01041, allocations: 0 / 304.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.01042, allocations: 3.938 kB / 304.5 MB, free: 3.105 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001438/0.01186, allocations: 0.6064 MB / 305.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.0119, allocations: 15.98 kB / 305.2 MB, free: 2.453 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003393/0.01224, allocations: 52.73 kB / 305.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.01279, allocations: 265 kB / 305.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.01298, allocations: 144 kB / 305.6 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.041e-05/0.01306, allocations: 32.38 kB / 305.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008791/0.01394, allocations: 439.1 kB / 306.1 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.01396, allocations: 192 / 306.1 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-05/0.01401, allocations: 24.12 kB / 306.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.01402, allocations: 11.98 kB / 306.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.01507, allocations: 466.2 kB / 306.6 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.01685, allocations: 0.7846 MB / 307.4 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009516/0.0178, allocations: 377.4 kB / 307.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.01829, allocations: 214.2 kB / 307.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.01833, allocations: 4.5 kB / 307.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.01837, allocations: 39.06 kB / 308 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.01837, allocations: 0 / 308 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005673/0.02404, allocations: 1.929 MB / 309.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.02414, allocations: 85.61 kB / 310 MB, free: 13.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.02455, allocations: 242.2 kB / 310.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.0246, allocations: 37.7 kB / 310.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.02475, allocations: 149.1 kB / 310.4 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.02495, allocations: 190.4 kB / 310.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.02515, allocations: 90.17 kB / 310.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.02536, allocations: 334.8 kB / 311 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.02585, allocations: 196.9 kB / 311.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.02639, allocations: 273.6 kB / 311.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009062/0.02729, allocations: 391.6 kB / 311.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.0273, allocations: 3.984 kB / 311.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001326/0.02862, allocations: 0.5926 MB / 312.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.02865, allocations: 8 kB / 312.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.02866, allocations: 3.938 kB / 312.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008166/0.02947, allocations: 261.9 kB / 312.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003264/0.0298, allocations: 63.89 kB / 312.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.03416, allocations: 2.751 MB / 315.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.03449, allocations: 27.97 kB / 315.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.03455, allocations: 19.98 kB / 315.6 MB, free: 7.68 MB / 302.1 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.0002672/0.03482, allocations: 157.8 kB / 315.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-05/0.03491, allocations: 31.81 kB / 315.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.03502, allocations: 51.3 kB / 315.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.03502, allocations: 7.938 kB / 315.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.03503, allocations: 7.922 kB / 315.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.03503, allocations: 7.984 kB / 315.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.03758, allocations: 1.119 MB / 316.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.03759, allocations: 0 / 316.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/0.03795, allocations: 67.88 kB / 317 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008056/0.03876, allocations: 240.6 kB / 317.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.753e-05/0.03881, allocations: 12 kB / 317.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004068/0.04287, allocations: 2.681 MB / 319.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.04288, allocations: 4.031 kB / 319.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.04483, allocations: 0.941 MB / 320.9 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.04501, allocations: 71.78 kB / 321 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.795e-05/0.04508, allocations: 12 kB / 321 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003151/0.0454, allocations: 27.97 kB / 321 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.0456, allocations: 80.42 kB / 321.1 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.04564, allocations: 19.98 kB / 321.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002456/0.04589, allocations: 176.2 kB / 321.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04589, allocations: 4 kB / 321.3 MB, free: 1.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006936/0.04658, allocations: 151.9 kB / 321.4 MB, free: 1.645 MB / 302.1 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.0003223/0.0469, allocations: 143.2 kB / 321.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.04849, allocations: 0.6756 MB / 322.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.0485, allocations: 0 / 322.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/0.04942, allocations: 472.5 kB / 322.7 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.04991, allocations: 35.97 kB / 322.7 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1781/0.2281, allocations: 0.7342 MB / 323.5 MB, free: 33.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.2283, allocations: 192.7 kB / 323.7 MB, free: 33.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003215/0.2287, allocations: 56.73 kB / 323.7 MB, free: 33.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.2288, allocations: 38.67 kB / 323.7 MB, free: 33.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.733e-06/0.2288, allocations: 0 / 323.7 MB, free: 33.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01714/0.2459, allocations: 7.028 MB / 330.8 MB, free: 32.76 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.8151828199625015]