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.0009025/0.0009025, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001125/0.002027, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007218/0.0007218, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001418/0.00214, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8446/0.8446, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1333/0.9778, allocations: 49.48 MB / 220.5 MB, free: 1.457 MB / 218.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 1.372e-06/1.372e-06, allocations: 0 / 221.8 MB, free: 184 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.112e-05/1.249e-05, allocations: 2.312 kB / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00229/0.002302, allocations: 2.464 MB / 224.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.003643, allocations: 1.019 MB / 225.3 MB, free: 12.66 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.003773, allocations: 7.938 kB / 225.3 MB, free: 12.66 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.003984, allocations: 51.56 kB / 225.4 MB, free: 12.61 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003711/0.004355, allocations: 162.9 kB / 225.5 MB, free: 12.45 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.004628, allocations: 183.6 kB / 225.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.005011, allocations: 474.3 kB / 226.2 MB, free: 11.8 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.005133, allocations: 62.88 kB / 226.2 MB, free: 11.74 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.005435, allocations: 315.3 kB / 226.5 MB, free: 11.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.005644, allocations: 207.5 kB / 226.7 MB, free: 11.23 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.005689, allocations: 36 kB / 226.8 MB, free: 11.2 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.005889, allocations: 127.9 kB / 226.9 MB, free: 11.07 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.005978, allocations: 87.72 kB / 227 MB, free: 10.98 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.717e-05/0.006065, allocations: 103.8 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004828/0.006548, allocations: 338.9 kB / 227.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.487e-05/0.006562, allocations: 4 kB / 227.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.006563, allocations: 0 / 227.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.006578, allocations: 0 / 227.4 MB, free: 10.55 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.000914/0.007492, allocations: 0.6438 MB / 228.1 MB, free: 9.879 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.007536, allocations: 8.031 kB / 228.1 MB, free: 9.871 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.007808, allocations: 154 kB / 228.2 MB, free: 9.703 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.008091, allocations: 225.8 kB / 228.4 MB, free: 9.453 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.653e-05/0.008177, allocations: 140 kB / 228.6 MB, free: 9.293 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.014e-05/0.008218, allocations: 28.38 kB / 228.6 MB, free: 9.266 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003398/0.008557, allocations: 337.9 kB / 228.9 MB, free: 8.914 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.008571, allocations: 4.141 kB / 228.9 MB, free: 8.91 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.008596, allocations: 16.12 kB / 229 MB, free: 8.895 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.008605, allocations: 8 kB / 229 MB, free: 8.887 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002325/0.008838, allocations: 187.2 kB / 229.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008346/0.009672, allocations: 0.5752 MB / 229.7 MB, free: 8.109 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/0.01002, allocations: 205.2 kB / 229.9 MB, free: 7.902 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.01013, allocations: 98.25 kB / 230 MB, free: 7.805 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.01017, allocations: 12.5 kB / 230 MB, free: 7.793 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.0102, allocations: 39 kB / 230.1 MB, free: 7.746 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.0102, allocations: 4 kB / 230.1 MB, free: 7.742 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.002195/0.0124, allocations: 1.283 MB / 231.4 MB, free: 6.406 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.01242, allocations: 59.91 kB / 231.4 MB, free: 6.336 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.01254, allocations: 208 kB / 231.6 MB, free: 6.117 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.01257, allocations: 37.7 kB / 231.7 MB, free: 6.074 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.01262, allocations: 129.1 kB / 231.8 MB, free: 5.945 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.01272, allocations: 190.4 kB / 232 MB, free: 5.758 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.722e-05/0.01282, allocations: 90.09 kB / 232.1 MB, free: 5.664 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/0.01291, allocations: 354.6 kB / 232.4 MB, free: 5.309 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.386e-05/0.013, allocations: 71.73 kB / 232.5 MB, free: 5.234 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.01313, allocations: 133.7 kB / 232.6 MB, free: 5.09 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.01333, allocations: 209.2 kB / 232.8 MB, free: 4.879 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.01333, allocations: 4 kB / 232.8 MB, free: 4.875 MB / 234.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003382/0.01366, allocations: 302.9 kB / 233.1 MB, free: 4.57 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.01368, allocations: 7.984 kB / 233.1 MB, free: 4.562 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.01369, allocations: 4 kB / 233.1 MB, free: 4.559 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000331/0.01402, allocations: 197.9 kB / 233.3 MB, free: 4.363 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.01418, allocations: 71.89 kB / 233.4 MB, free: 4.293 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.01579, allocations: 2.056 MB / 235.4 MB, free: 2.148 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.0159, allocations: 23.92 kB / 235.5 MB, free: 2.125 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.01592, allocations: 12 kB / 235.5 MB, free: 2.113 MB / 234.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 9.352e-05/0.01602, allocations: 144.6 kB / 235.6 MB, free: 1.961 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.901e-05/0.01607, allocations: 39.97 kB / 235.7 MB, free: 1.922 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.578e-05/0.01611, allocations: 47.3 kB / 235.7 MB, free: 1.879 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.01612, allocations: 7.984 kB / 235.7 MB, free: 1.871 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01612, allocations: 0 / 235.7 MB, free: 1.871 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.01612, allocations: 7.922 kB / 235.7 MB, free: 1.863 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007376/0.01686, allocations: 0.6598 MB / 236.4 MB, free: 1.172 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01686, allocations: 0 / 236.4 MB, free: 1.172 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.01704, allocations: 83.88 kB / 236.5 MB, free: 1.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-05/0.01711, allocations: 43.77 kB / 236.5 MB, free: 1.047 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/0.0174, allocations: 188.6 kB / 236.7 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.01742, allocations: 11.98 kB / 236.7 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.01913, allocations: 2.028 MB / 238.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.01913, allocations: 4 kB / 238.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004656/0.0196, allocations: 0.5113 MB / 239.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.01963, allocations: 12 kB / 239.3 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.01974, allocations: 20.05 kB / 239.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.52e-05/0.01984, allocations: 76.3 kB / 239.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.01986, allocations: 11.98 kB / 239.4 MB, free: 14.08 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.422e-05/0.01991, allocations: 63.62 kB / 239.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01991, allocations: 0 / 239.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003255/0.02024, allocations: 155.9 kB / 239.6 MB, free: 13.86 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.000154/0.02039, allocations: 124.3 kB / 239.7 MB, free: 13.73 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.02086, allocations: 472.7 kB / 240.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.02087, allocations: 4 kB / 240.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.02115, allocations: 374 kB / 240.5 MB, free: 12.87 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.02138, allocations: 95.7 kB / 240.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.02425, allocations: 0.665 MB / 241.3 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.976e-05/0.02432, allocations: 118.3 kB / 241.4 MB, free: 11.94 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.02443, allocations: 43.05 kB / 241.4 MB, free: 11.89 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.02455, allocations: 95.34 kB / 241.5 MB, free: 11.8 MB / 250.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02455, allocations: 0 / 241.5 MB, free: 11.8 MB / 250.7 MB Notification: Performance of Templates: time 0.009188/0.03374, allocations: 7.743 MB / 249.3 MB, free: 4.09 MB / 250.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 -ignoreHideResult -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.576293058693409]