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.0007552/0.0007552, allocations: 76.48 kB / 9.933 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001051/0.001806, allocations: 449.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.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.0009849/0.0009849, allocations: 148.9 kB / 11.25 MB, free: 2.93 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001431/0.002416, allocations: 459.6 kB / 11.69 MB, free: 2.477 MB / 13.93 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 0.9991/0.9991, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1013/1.1, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] 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.403e-06/1.403e-06, allocations: 3.938 kB / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.343e-05/1.483e-05, allocations: 2.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002378/0.002393, allocations: 2.477 MB / 242 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.003514, allocations: 0.9788 MB / 243 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.00362, allocations: 7.938 kB / 243 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.003758, allocations: 43.58 kB / 243 MB, free: 15.67 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.004091, allocations: 162.9 kB / 243.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.004296, allocations: 187.5 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.004621, allocations: 478.3 kB / 243.9 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.004742, allocations: 63.09 kB / 243.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002738/0.005016, allocations: 319.3 kB / 244.2 MB, free: 14.47 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.005214, allocations: 211.5 kB / 244.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.005257, allocations: 40 kB / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.005427, allocations: 127.9 kB / 244.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.005514, allocations: 71.8 kB / 244.7 MB, free: 14.03 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.632e-05/0.0056, allocations: 99.81 kB / 244.8 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.005918, allocations: 346.8 kB / 245.1 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.509e-05/0.005933, allocations: 3.984 kB / 245.1 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005934, allocations: 0 / 245.1 MB, free: 13.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.005949, allocations: 0 / 245.1 MB, free: 13.59 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.0007855/0.006734, allocations: 0.64 MB / 245.8 MB, free: 12.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.577e-05/0.00676, allocations: 8.031 kB / 245.8 MB, free: 12.92 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000215/0.006975, allocations: 154 kB / 245.9 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.007223, allocations: 221.8 kB / 246.1 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.445e-05/0.007308, allocations: 144 kB / 246.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.007347, allocations: 36.38 kB / 246.3 MB, free: 12.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.007702, allocations: 321.9 kB / 246.6 MB, free: 11.97 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.007716, allocations: 8.172 kB / 246.6 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.007739, allocations: 16.12 kB / 246.6 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.007747, allocations: 11.94 kB / 246.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.007978, allocations: 195.2 kB / 246.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.008734, allocations: 0.5712 MB / 247.4 MB, free: 11.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.009013, allocations: 201 kB / 247.6 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.009123, allocations: 110.2 kB / 247.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.009152, allocations: 12.44 kB / 247.7 MB, free: 10.83 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.009175, allocations: 39.06 kB / 247.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.363e-06/0.009177, allocations: 0 / 247.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.001902/0.01108, allocations: 1.283 MB / 249 MB, free: 9.449 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.0111, allocations: 59.91 kB / 249.1 MB, free: 9.379 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.01122, allocations: 207.9 kB / 249.3 MB, free: 9.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.01125, allocations: 33.7 kB / 249.3 MB, free: 9.121 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.979e-05/0.0113, allocations: 129.1 kB / 249.5 MB, free: 8.988 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.281e-05/0.01139, allocations: 186.4 kB / 249.7 MB, free: 8.805 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.225e-05/0.01149, allocations: 94.08 kB / 249.7 MB, free: 8.707 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/0.01156, allocations: 342.7 kB / 250.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-05/0.01166, allocations: 75.8 kB / 250.2 MB, free: 8.285 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.01177, allocations: 137.7 kB / 250.3 MB, free: 8.137 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.01195, allocations: 209.2 kB / 250.5 MB, free: 7.922 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.01195, allocations: 0 / 250.5 MB, free: 7.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003046/0.01226, allocations: 306.8 kB / 250.8 MB, free: 7.613 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.01227, allocations: 4 kB / 250.8 MB, free: 7.609 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.01228, allocations: 4.031 kB / 250.8 MB, free: 7.605 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/0.0126, allocations: 194.6 kB / 251 MB, free: 7.414 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.01277, allocations: 83.88 kB / 251.1 MB, free: 7.332 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.01435, allocations: 2.063 MB / 253.1 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.01446, allocations: 23.92 kB / 253.2 MB, free: 5.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.01448, allocations: 15.98 kB / 253.2 MB, free: 5.152 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 9.244e-05/0.01458, allocations: 139.6 kB / 253.3 MB, free: 5.008 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.01462, allocations: 35.91 kB / 253.3 MB, free: 4.973 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.01467, allocations: 51.3 kB / 253.4 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.01467, allocations: 8 kB / 253.4 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.01467, allocations: 4.031 kB / 253.4 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.01468, allocations: 3.938 kB / 253.4 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007326/0.01541, allocations: 0.656 MB / 254.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01541, allocations: 3.938 kB / 254.1 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.01558, allocations: 71.94 kB / 254.1 MB, free: 4.148 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.01566, allocations: 43.73 kB / 254.2 MB, free: 4.105 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000278/0.01593, allocations: 192.7 kB / 254.4 MB, free: 3.914 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.01596, allocations: 15.98 kB / 254.4 MB, free: 3.898 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.0174, allocations: 2.018 MB / 256.4 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.0174, allocations: 0 / 256.4 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004571/0.01786, allocations: 0.5154 MB / 256.9 MB, free: 1.254 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.01789, allocations: 12 kB / 256.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.01801, allocations: 23.98 kB / 257 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.0181, allocations: 68.3 kB / 257 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.01811, allocations: 15.98 kB / 257 MB, free: 1.137 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.327e-05/0.01817, allocations: 68.39 kB / 257.1 MB, free: 1.066 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01817, allocations: 0 / 257.1 MB, free: 1.066 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.01848, allocations: 159.9 kB / 257.3 MB, free: 0.9102 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.0001507/0.01864, allocations: 132.2 kB / 257.4 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004505/0.01909, allocations: 473.4 kB / 257.9 MB, free: 300 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.0191, allocations: 11.98 kB / 257.9 MB, free: 288 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.01939, allocations: 374.1 kB / 258.2 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.01961, allocations: 87.88 kB / 258.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.02237, allocations: 0.6534 MB / 259 MB, free: 15.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.23e-05/0.02244, allocations: 114.3 kB / 259.1 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.02254, allocations: 43.06 kB / 259.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.02266, allocations: 95.34 kB / 259.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02266, allocations: 0 / 259.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Templates: time 0.009009/0.03167, allocations: 7.734 MB / 266.9 MB, free: 7.188 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 -ignoreHideResult -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","",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.737861747853458]