Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002389/0.002389, allocations: 99.86 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0028/0.0028, allocations: 149.1 kB / 24.26 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.433e-05, allocations: 2.312 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004065/0.004089, allocations: 2.42 MB / 269.7 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.00599, allocations: 0.9402 MB / 270.7 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.006116, allocations: 7.938 kB / 270.7 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.006327, allocations: 51.52 kB / 270.7 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005377/0.006864, allocations: 162.9 kB / 270.9 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.007255, allocations: 191.6 kB / 271.1 MB, free: 2.977 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006013/0.007856, allocations: 486.3 kB / 271.5 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.008034, allocations: 57.14 kB / 271.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004594/0.008493, allocations: 299.3 kB / 271.9 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.008834, allocations: 203.5 kB / 272.1 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.108e-05/0.008915, allocations: 40 kB / 272.1 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.009165, allocations: 119.9 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.009328, allocations: 107.6 kB / 272.3 MB, free: 1.684 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.009518, allocations: 139.7 kB / 272.5 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007316/0.01025, allocations: 0.5335 MB / 273 MB, free: 1.012 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.01025, allocations: 0 / 273 MB, free: 1.012 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01025, allocations: 0 / 273 MB, free: 1.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.01026, allocations: 0 / 273 MB, free: 1.012 MB / 250.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.001371/0.01163, allocations: 0.7139 MB / 273.7 MB, free: 268 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.01167, allocations: 8.922 kB / 273.7 MB, free: 260 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/0.01205, allocations: 88.67 kB / 273.8 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007647/0.01281, allocations: 247.9 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.01299, allocations: 144 kB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.388e-05/0.01307, allocations: 36.33 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008347/0.0139, allocations: 424.8 kB / 274.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.01392, allocations: 4.188 kB / 274.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.01396, allocations: 20.12 kB / 274.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.01397, allocations: 8 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009731/0.01495, allocations: 414.2 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.01676, allocations: 0.8522 MB / 275.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000834/0.0176, allocations: 353.9 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.01804, allocations: 189.1 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.01809, allocations: 12.5 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.01813, allocations: 41.88 kB / 276.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.944e-06/0.01814, allocations: 4 kB / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.005212/0.02335, allocations: 1.855 MB / 278.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.02342, allocations: 85.61 kB / 278.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.02379, allocations: 301.5 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.02384, allocations: 37.7 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.02399, allocations: 191.8 kB / 279 MB, free: 10.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.0242, allocations: 194.4 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.02439, allocations: 107.8 kB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003125/0.0247, allocations: 0.5274 MB / 279.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004213/0.02512, allocations: 164.9 kB / 280 MB, free: 9.758 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005134/0.02564, allocations: 258.2 kB / 280.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008213/0.02646, allocations: 369.3 kB / 280.6 MB, free: 9.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.02646, allocations: 0 / 280.6 MB, free: 9.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001502/0.02796, allocations: 0.5797 MB / 281.2 MB, free: 8.523 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.02798, allocations: 7.938 kB / 281.2 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.02799, allocations: 0 / 281.2 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007903/0.02878, allocations: 253.4 kB / 281.4 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.02908, allocations: 63.89 kB / 281.5 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00478/0.03386, allocations: 3.415 MB / 284.9 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.03414, allocations: 19.98 kB / 284.9 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.338e-05/0.03419, allocations: 19.98 kB / 284.9 MB, free: 4.625 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.0002478/0.03444, allocations: 196.5 kB / 285.1 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.03456, allocations: 43.81 kB / 285.2 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.03469, allocations: 51.3 kB / 285.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.0347, allocations: 12.03 kB / 285.2 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.0347, allocations: 3.938 kB / 285.2 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.03471, allocations: 3.984 kB / 285.2 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.03712, allocations: 1.155 MB / 286.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.03712, allocations: 0 / 286.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.03743, allocations: 63.89 kB / 286.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/0.03815, allocations: 243.5 kB / 286.7 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.03819, allocations: 15.98 kB / 286.7 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1017/0.1399, allocations: 3.308 MB / 290 MB, free: 30.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1399, allocations: 1.703 kB / 290 MB, free: 30.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.1414, allocations: 0.9462 MB / 291 MB, free: 30.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.1416, allocations: 71.55 kB / 291 MB, free: 30.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.1417, allocations: 15.77 kB / 291.1 MB, free: 30.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.1419, allocations: 22.34 kB / 291.1 MB, free: 30.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1421, allocations: 71.47 kB / 291.1 MB, free: 30.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/0.1421, allocations: 22.86 kB / 291.2 MB, free: 30.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.1423, allocations: 211.3 kB / 291.4 MB, free: 30.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1423, allocations: 0.7812 kB / 291.4 MB, free: 30.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005699/0.1429, allocations: 154.8 kB / 291.5 MB, free: 30.26 MB / 266.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.0002101/0.1431, allocations: 142.9 kB / 291.7 MB, free: 30.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.1443, allocations: 0.7245 MB / 292.4 MB, free: 29.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1443, allocations: 0 / 292.4 MB, free: 29.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.145, allocations: 0.5313 MB / 292.9 MB, free: 29.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.1455, allocations: 59.33 kB / 293 MB, free: 29.76 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.1467, allocations: 0.7468 MB / 293.7 MB, free: 29.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.1468, allocations: 191.7 kB / 293.9 MB, free: 29.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001915/0.147, allocations: 60.98 kB / 294 MB, free: 29.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.1471, allocations: 34.09 kB / 294 MB, free: 29.36 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1471, allocations: 0 / 294 MB, free: 29.36 MB / 266.7 MB Notification: Performance of Templates: time 0.01193/0.159, allocations: 7.171 MB / 301.2 MB, free: 27.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.725996755063534]