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.00096/0.00096, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.001502/0.001502, allocations: 149.4 kB / 25.59 MB, free: 8.109 MB / 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 0.9645/0.9645, allocations: 173.4 MB / 202.2 MB, free: 8.312 MB / 186.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.603e-06/1.603e-06, allocations: 0 / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.456e-05, allocations: 2.312 kB / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004029/0.004054, allocations: 2.43 MB / 271.6 MB, free: 7.355 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.006102, allocations: 0.9381 MB / 272.5 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.006304, allocations: 4.562 kB / 272.5 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.006557, allocations: 57.17 kB / 272.6 MB, free: 6.359 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006734/0.007231, allocations: 164 kB / 272.8 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.007678, allocations: 185.5 kB / 272.9 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006173/0.008295, allocations: 482.3 kB / 273.4 MB, free: 5.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.008498, allocations: 69.81 kB / 273.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005013/0.008999, allocations: 284 kB / 273.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000388/0.009387, allocations: 215.5 kB / 274 MB, free: 4.984 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.378e-05/0.009471, allocations: 36 kB / 274 MB, free: 4.949 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002395/0.00971, allocations: 123.8 kB / 274.1 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.009844, allocations: 107.7 kB / 274.2 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.009994, allocations: 135.6 kB / 274.4 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005364/0.01053, allocations: 394.8 kB / 274.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.01053, allocations: 0 / 274.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01054, allocations: 7.938 kB / 274.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.01054, allocations: 3.938 kB / 274.8 MB, free: 4.191 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.001147/0.01169, allocations: 0.6908 MB / 275.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.01173, allocations: 8.031 kB / 275.5 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003586/0.01209, allocations: 92.66 kB / 275.6 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.01251, allocations: 257.6 kB / 275.8 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.01264, allocations: 140 kB / 275.9 MB, free: 2.926 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.01271, allocations: 36.33 kB / 276 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.01326, allocations: 316.8 kB / 276.3 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.01328, allocations: 12.16 kB / 276.3 MB, free: 2.551 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.633e-05/0.01331, allocations: 12.12 kB / 276.3 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.01333, allocations: 8 kB / 276.3 MB, free: 2.531 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004192/0.01375, allocations: 220.2 kB / 276.5 MB, free: 2.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.01508, allocations: 0.7143 MB / 277.2 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.01554, allocations: 229.6 kB / 277.5 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.01572, allocations: 109.1 kB / 277.6 MB, free: 1.234 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.01575, allocations: 8.5 kB / 277.6 MB, free: 1.227 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.01579, allocations: 41.89 kB / 277.6 MB, free: 1.172 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.01579, allocations: 3.938 kB / 277.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.005159/0.02095, allocations: 1.336 MB / 279 MB, free: 15.78 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.021, allocations: 89.59 kB / 279.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.0212, allocations: 254.4 kB / 279.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.02124, allocations: 37.7 kB / 279.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.02134, allocations: 187.8 kB / 279.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.02149, allocations: 198.3 kB / 279.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.02164, allocations: 91.8 kB / 279.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.02182, allocations: 0.5156 MB / 280.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.02198, allocations: 76.94 kB / 280.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.02219, allocations: 162.1 kB / 280.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.02251, allocations: 213.2 kB / 280.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.02251, allocations: 0 / 280.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005853/0.0231, allocations: 385.7 kB / 281.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.02312, allocations: 8 kB / 281.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.02312, allocations: 0 / 281.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/0.02359, allocations: 202.1 kB / 281.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.0238, allocations: 67.89 kB / 281.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.0266, allocations: 2.816 MB / 284.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.02679, allocations: 23.92 kB / 284.3 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.02683, allocations: 15.98 kB / 284.3 MB, free: 10.25 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.0001567/0.02699, allocations: 188.5 kB / 284.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-05/0.02708, allocations: 43.81 kB / 284.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.088e-05/0.02715, allocations: 55.3 kB / 284.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.02716, allocations: 4 kB / 284.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.02716, allocations: 0 / 284.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.02717, allocations: 0 / 284.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.02852, allocations: 0.882 MB / 285.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.02852, allocations: 0 / 285.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.02876, allocations: 63.89 kB / 285.5 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004589/0.02922, allocations: 201.4 kB / 285.7 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.02925, allocations: 12 kB / 285.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/0.0319, allocations: 2.78 MB / 288.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.0319, allocations: 0 / 288.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.03282, allocations: 0.6231 MB / 289.1 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.03296, allocations: 71.73 kB / 289.2 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.03302, allocations: 19.92 kB / 289.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.03323, allocations: 15.98 kB / 289.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.03338, allocations: 72.3 kB / 289.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.471e-05/0.03342, allocations: 20.06 kB / 289.3 MB, free: 5.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.03354, allocations: 187.9 kB / 289.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03354, allocations: 0 / 289.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006412/0.03418, allocations: 151.9 kB / 289.6 MB, free: 4.699 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.0002363/0.03442, allocations: 143.2 kB / 289.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008314/0.03525, allocations: 0.5502 MB / 290.3 MB, free: 3.973 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.03525, allocations: 0 / 290.3 MB, free: 3.973 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.03579, allocations: 436.1 kB / 290.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.03621, allocations: 66.97 kB / 290.8 MB, free: 3.457 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.03755, allocations: 0.6669 MB / 291.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.03766, allocations: 118.3 kB / 291.6 MB, free: 2.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.0378, allocations: 38.97 kB / 291.6 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.03798, allocations: 122.2 kB / 291.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.03798, allocations: 0 / 291.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of Templates: time 0.01104/0.04902, allocations: 7.885 MB / 299.6 MB, free: 10.64 MB / 282.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","",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.944519462995231]