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.001579/0.001579, allocations: 84.98 kB / 23 MB, free: 1.504 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.001352/0.001352, allocations: 171.6 kB / 26.39 MB, free: 8.004 MB / 18.57 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 0.8831/0.8831, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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 2.044e-06/2.044e-06, allocations: 3.938 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.097e-05, allocations: 6.25 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004357/0.004388, allocations: 2.425 MB / 254.7 MB, free: 4.82 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.006558, allocations: 0.9878 MB / 255.7 MB, free: 3.812 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.006794, allocations: 7.938 kB / 255.7 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.007057, allocations: 47.56 kB / 255.7 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008122/0.007869, allocations: 159 kB / 255.9 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.00837, allocations: 195.5 kB / 256.1 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006691/0.009039, allocations: 478.3 kB / 256.5 MB, free: 2.941 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.00923, allocations: 57.12 kB / 256.6 MB, free: 2.887 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.009748, allocations: 283.5 kB / 256.9 MB, free: 2.609 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003834/0.01013, allocations: 211.5 kB / 257.1 MB, free: 2.402 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.01024, allocations: 40 kB / 257.1 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002976/0.01054, allocations: 123.9 kB / 257.2 MB, free: 2.242 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.01069, allocations: 115.6 kB / 257.3 MB, free: 2.129 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.01087, allocations: 131.7 kB / 257.5 MB, free: 2 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.01148, allocations: 402.7 kB / 257.9 MB, free: 1.605 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.01149, allocations: 0 / 257.9 MB, free: 1.605 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01149, allocations: 3.938 kB / 257.9 MB, free: 1.602 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.01149, allocations: 0 / 257.9 MB, free: 1.602 MB / 234.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.001213/0.01271, allocations: 0.6946 MB / 258.6 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.01276, allocations: 15.98 kB / 258.6 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003663/0.01312, allocations: 80.69 kB / 258.6 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.01356, allocations: 260.5 kB / 258.9 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.01372, allocations: 140 kB / 259 MB, free: 340 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/0.01378, allocations: 32.31 kB / 259.1 MB, free: 308 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/0.01446, allocations: 332.9 kB / 259.4 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.01448, allocations: 192 / 259.4 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.01453, allocations: 20.11 kB / 259.4 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.01454, allocations: 4 kB / 259.4 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.01498, allocations: 216.2 kB / 259.6 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.01639, allocations: 0.718 MB / 260.4 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.01687, allocations: 233.4 kB / 260.6 MB, free: 14.74 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.01706, allocations: 109.1 kB / 260.7 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.0171, allocations: 8.5 kB / 260.7 MB, free: 14.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.01713, allocations: 41.89 kB / 260.7 MB, free: 14.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.01713, allocations: 4 kB / 260.7 MB, free: 14.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.003332/0.02046, allocations: 1.348 MB / 262.1 MB, free: 13.16 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.02051, allocations: 81.61 kB / 262.2 MB, free: 13.06 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.02072, allocations: 253.5 kB / 262.4 MB, free: 12.79 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.02076, allocations: 41.69 kB / 262.5 MB, free: 12.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.02086, allocations: 191.8 kB / 262.6 MB, free: 12.55 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.02101, allocations: 182.4 kB / 262.8 MB, free: 12.38 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.02117, allocations: 99.78 kB / 262.9 MB, free: 12.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.02134, allocations: 0.5195 MB / 263.4 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.02153, allocations: 72.94 kB / 263.5 MB, free: 11.67 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.02175, allocations: 166.1 kB / 263.7 MB, free: 11.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.02209, allocations: 209.2 kB / 263.9 MB, free: 11.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.02209, allocations: 0 / 263.9 MB, free: 11.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006905/0.02278, allocations: 381.7 kB / 264.2 MB, free: 10.89 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.0228, allocations: 4 kB / 264.3 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.0228, allocations: 4.031 kB / 264.3 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005893/0.02339, allocations: 204.7 kB / 264.5 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.02364, allocations: 63.89 kB / 264.5 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.02677, allocations: 2.822 MB / 267.3 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.02701, allocations: 23.92 kB / 267.4 MB, free: 7.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-05/0.02706, allocations: 12 kB / 267.4 MB, free: 7.648 MB / 250.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.0001849/0.02724, allocations: 180.5 kB / 267.6 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.02736, allocations: 47.81 kB / 267.6 MB, free: 7.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.276e-05/0.02745, allocations: 47.3 kB / 267.6 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.02746, allocations: 4 kB / 267.6 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.02746, allocations: 0 / 267.6 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.02747, allocations: 8.016 kB / 267.7 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.02905, allocations: 0.8782 MB / 268.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.02906, allocations: 0 / 268.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.02935, allocations: 63.89 kB / 268.6 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005194/0.02986, allocations: 207.4 kB / 268.8 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.02991, allocations: 15.98 kB / 268.8 MB, free: 6.148 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002997/0.03291, allocations: 2.764 MB / 271.6 MB, free: 3.273 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.03291, allocations: 0 / 271.6 MB, free: 3.273 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.03392, allocations: 0.6306 MB / 272.2 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.03408, allocations: 71.81 kB / 272.3 MB, free: 2.547 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.03414, allocations: 15.94 kB / 272.3 MB, free: 2.531 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.03438, allocations: 23.98 kB / 272.3 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.03455, allocations: 72.3 kB / 272.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.03458, allocations: 11.98 kB / 272.4 MB, free: 2.426 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001341/0.03472, allocations: 176.4 kB / 272.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03472, allocations: 0 / 272.6 MB, free: 2.254 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007073/0.03543, allocations: 151.9 kB / 272.7 MB, free: 2.105 MB / 250.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.0002444/0.03567, allocations: 143.2 kB / 272.9 MB, free: 1.957 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0009039/0.03657, allocations: 0.5377 MB / 273.4 MB, free: 1.398 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.03658, allocations: 0 / 273.4 MB, free: 1.398 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/0.03718, allocations: 452.1 kB / 273.8 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.03762, allocations: 71.61 kB / 273.9 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.03919, allocations: 0.6786 MB / 274.6 MB, free: 148 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.0393, allocations: 110.3 kB / 274.7 MB, free: 16 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.03948, allocations: 39.02 kB / 274.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.03966, allocations: 118.2 kB / 274.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of SimCode: time 1.392e-06/0.03966, allocations: 4 kB / 274.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of Templates: time 0.01463/0.05429, allocations: 7.887 MB / 282.7 MB, free: 7.996 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.947049547918141]