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.001759/0.001759, allocations: 84.34 kB / 20.96 MB, free: 3.453 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.00206/0.00206, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 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 1.508/1.508, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.903e-06/1.903e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.174e-05/3.364e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004448/0.004482, allocations: 2.342 MB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.006988, allocations: 0.9985 MB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.007178, allocations: 4 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.007501, allocations: 67.38 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004889/0.00799, allocations: 148.1 kB / 275.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.008413, allocations: 171.6 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005818/0.008995, allocations: 482.5 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.009139, allocations: 48.89 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.009505, allocations: 271.5 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.009845, allocations: 211.5 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.404e-05/0.009919, allocations: 40 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002515/0.01017, allocations: 119.8 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.01032, allocations: 111.7 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.01049, allocations: 131.7 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000712/0.0112, allocations: 0.5334 MB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.01121, allocations: 4 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01121, allocations: 4 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.01122, allocations: 0 / 278 MB, free: 12.16 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0013/0.01252, allocations: 0.5752 MB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.01255, allocations: 16.03 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003944/0.01295, allocations: 76.69 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.01349, allocations: 254.8 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.01368, allocations: 144 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.01376, allocations: 28.38 kB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008307/0.01459, allocations: 408.9 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.01462, allocations: 8.141 kB / 279.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.01466, allocations: 12.12 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.01468, allocations: 11.98 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009557/0.01563, allocations: 418.2 kB / 279.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.01787, allocations: 1.076 MB / 281 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000799/0.01867, allocations: 334.4 kB / 281.3 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004189/0.01909, allocations: 165.5 kB / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.01912, allocations: 8 kB / 281.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.01917, allocations: 42.52 kB / 281.5 MB, free: 8.449 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.01917, allocations: 0 / 281.5 MB, free: 8.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.005631/0.0248, allocations: 1.668 MB / 283.2 MB, free: 6.723 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.02488, allocations: 92.8 kB / 283.3 MB, free: 6.613 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003688/0.02525, allocations: 250.2 kB / 283.5 MB, free: 6.359 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.561e-05/0.0253, allocations: 41.69 kB / 283.5 MB, free: 6.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.02543, allocations: 136.8 kB / 283.7 MB, free: 6.172 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.0256, allocations: 158.8 kB / 283.8 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.02577, allocations: 90.12 kB / 283.9 MB, free: 5.922 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.02597, allocations: 334.8 kB / 284.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.0264, allocations: 172.9 kB / 284.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.02692, allocations: 256.3 kB / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/0.02775, allocations: 336.2 kB / 285 MB, free: 4.797 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.02775, allocations: 0 / 285 MB, free: 4.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00135/0.0291, allocations: 0.5568 MB / 285.5 MB, free: 4.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.02912, allocations: 7.938 kB / 285.6 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-06/0.02913, allocations: 0 / 285.6 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009361/0.03006, allocations: 297.4 kB / 285.8 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.03033, allocations: 55.91 kB / 285.9 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004636/0.03497, allocations: 2.746 MB / 288.6 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.03525, allocations: 24 kB / 288.7 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/0.03531, allocations: 23.98 kB / 288.7 MB, free: 0.9844 MB / 266.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.0002158/0.03553, allocations: 149.8 kB / 288.8 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.03565, allocations: 51.81 kB / 288.9 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.03599, allocations: 42.98 kB / 288.9 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.03599, allocations: 4 kB / 288.9 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.03599, allocations: 0 / 288.9 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.036, allocations: 3.984 kB / 288.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1073/0.1433, allocations: 0.9582 MB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.1433, allocations: 1.094 kB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.1436, allocations: 47.97 kB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007537/0.1443, allocations: 281.3 kB / 290.2 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/0.1444, allocations: 15.02 kB / 290.2 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/0.1477, allocations: 2.689 MB / 292.9 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1477, allocations: 4.266 kB / 292.9 MB, free: 26.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.1492, allocations: 0.815 MB / 293.7 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.1493, allocations: 76.11 kB / 293.8 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/0.1494, allocations: 9.844 kB / 293.8 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.1497, allocations: 25.47 kB / 293.8 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.1499, allocations: 71.23 kB / 293.9 MB, free: 26.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.1499, allocations: 17.17 kB / 293.9 MB, free: 26.25 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002036/0.1501, allocations: 182.9 kB / 294.1 MB, free: 26.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1501, allocations: 0 / 294.1 MB, free: 26.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006158/0.1507, allocations: 137.8 kB / 294.2 MB, free: 26.13 MB / 266.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.0017/0.1524, allocations: 411.2 kB / 294.6 MB, free: 26.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.1536, allocations: 0.6006 MB / 295.3 MB, free: 25.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1536, allocations: 1.125 kB / 295.3 MB, free: 25.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006874/0.1543, allocations: 414.7 kB / 295.7 MB, free: 25.53 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.1548, allocations: 76.02 kB / 295.7 MB, free: 25.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.156, allocations: 0.6588 MB / 296.4 MB, free: 25.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.1561, allocations: 176 kB / 296.6 MB, free: 25.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.1564, allocations: 68.89 kB / 296.6 MB, free: 25.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1565, allocations: 39.23 kB / 296.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1565, allocations: 0 / 296.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of Templates: time 0.01141/0.1679, allocations: 7.043 MB / 303.7 MB, free: 22.77 MB / 266.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.636172650963999]