Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0009329/0.0009329, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001424/0.002357, allocations: 453.8 kB / 10.46 MB, free: 236 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.0009079/0.0009079, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001056/0.001964, allocations: 483.5 kB / 11.83 MB, free: 2.336 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.9655/0.9655, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1622/1.128, allocations: 49.5 MB / 220.7 MB, free: 1.355 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.935e-05, allocations: 5.406 kB / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003088/0.003108, allocations: 2.398 MB / 224.4 MB, free: 13.66 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005493/0.008601, allocations: 0.9642 MB / 225.3 MB, free: 12.68 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.008732, allocations: 8 kB / 225.3 MB, free: 12.68 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.009046, allocations: 47.58 kB / 225.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003952/0.009441, allocations: 139 kB / 225.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.009755, allocations: 175.6 kB / 225.7 MB, free: 12.32 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004079/0.01016, allocations: 422.6 kB / 226.1 MB, free: 11.91 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.01029, allocations: 46.86 kB / 226.2 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00343/0.01372, allocations: 275.4 kB / 226.4 MB, free: 11.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.014, allocations: 179.6 kB / 226.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-05/0.01405, allocations: 32 kB / 226.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.01432, allocations: 131.8 kB / 226.8 MB, free: 11.26 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.01443, allocations: 67.8 kB / 226.8 MB, free: 11.19 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.01453, allocations: 87.88 kB / 226.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.01496, allocations: 322.9 kB / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.518e-05/0.01497, allocations: 4 kB / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01498, allocations: 0 / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.01499, allocations: 0 / 227.2 MB, free: 10.79 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009807/0.01597, allocations: 0.5854 MB / 227.8 MB, free: 10.18 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.016, allocations: 12.03 kB / 227.8 MB, free: 10.16 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003386/0.01939, allocations: 153.9 kB / 228 MB, free: 9.996 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.01974, allocations: 210 kB / 228.2 MB, free: 9.762 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.02012, allocations: 140 kB / 228.3 MB, free: 9.602 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.516e-05/0.02017, allocations: 32.33 kB / 228.4 MB, free: 9.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.0206, allocations: 299.8 kB / 228.6 MB, free: 9.25 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.02062, allocations: 12.11 kB / 228.7 MB, free: 9.238 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.02065, allocations: 12.12 kB / 228.7 MB, free: 9.227 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.02066, allocations: 12 kB / 228.7 MB, free: 9.215 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.02094, allocations: 175.2 kB / 228.9 MB, free: 9.047 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.02216, allocations: 0.8162 MB / 229.7 MB, free: 8.199 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003348/0.02551, allocations: 182.4 kB / 229.8 MB, free: 8.012 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.02563, allocations: 84.75 kB / 229.9 MB, free: 7.926 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.02566, allocations: 12.7 kB / 229.9 MB, free: 7.914 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.02569, allocations: 42.5 kB / 230 MB, free: 7.863 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 2.445e-06/0.02569, allocations: 0 / 230 MB, free: 7.863 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.002417/0.02811, allocations: 1.176 MB / 231.2 MB, free: 6.629 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.02815, allocations: 63.16 kB / 231.2 MB, free: 6.555 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.02831, allocations: 208 kB / 231.4 MB, free: 6.336 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.02834, allocations: 33.7 kB / 231.5 MB, free: 6.297 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.02841, allocations: 132.8 kB / 231.6 MB, free: 6.164 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.734e-05/0.0285, allocations: 154.7 kB / 231.7 MB, free: 6.012 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.02862, allocations: 86.09 kB / 231.8 MB, free: 5.918 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.948e-05/0.0287, allocations: 338.8 kB / 232.2 MB, free: 5.578 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.02882, allocations: 63.8 kB / 232.2 MB, free: 5.516 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.02896, allocations: 148.3 kB / 232.4 MB, free: 5.348 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.0292, allocations: 201.7 kB / 232.6 MB, free: 5.133 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.0292, allocations: 32 / 232.6 MB, free: 5.133 MB / 234.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004141/0.02962, allocations: 298.1 kB / 232.8 MB, free: 4.832 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.02963, allocations: 4 kB / 232.9 MB, free: 4.828 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.02964, allocations: 4 kB / 232.9 MB, free: 4.824 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005031/0.03014, allocations: 248.5 kB / 233.1 MB, free: 4.578 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.03031, allocations: 55.95 kB / 233.2 MB, free: 4.523 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.03235, allocations: 2.042 MB / 235.2 MB, free: 2.398 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.03248, allocations: 19.98 kB / 235.2 MB, free: 2.379 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/0.03251, allocations: 16.03 kB / 235.2 MB, free: 2.363 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.03288, allocations: 132.6 kB / 235.4 MB, free: 2.223 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.144e-05/0.03294, allocations: 31.97 kB / 235.4 MB, free: 2.191 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.033, allocations: 42.94 kB / 235.4 MB, free: 2.148 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.033, allocations: 7.984 kB / 235.4 MB, free: 2.141 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.03301, allocations: 3.938 kB / 235.4 MB, free: 2.137 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.03301, allocations: 0 / 235.4 MB, free: 2.137 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007577/0.03377, allocations: 0.5864 MB / 236 MB, free: 1.523 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.03377, allocations: 0 / 236 MB, free: 1.523 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.03389, allocations: 47.91 kB / 236.1 MB, free: 1.477 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.232e-05/0.03395, allocations: 39.83 kB / 236.1 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004788/0.03443, allocations: 241.1 kB / 236.4 MB, free: 1.199 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.03446, allocations: 15.98 kB / 236.4 MB, free: 1.184 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.03604, allocations: 2.006 MB / 238.4 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.03604, allocations: 0 / 238.4 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000452/0.03649, allocations: 466.9 kB / 238.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.03652, allocations: 11.98 kB / 238.8 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.03663, allocations: 19.94 kB / 238.9 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.03674, allocations: 63.92 kB / 238.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.03675, allocations: 12 kB / 238.9 MB, free: 14.51 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.295e-05/0.03682, allocations: 72.52 kB / 239 MB, free: 14.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03682, allocations: 0 / 239 MB, free: 14.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003597/0.03718, allocations: 139.9 kB / 239.1 MB, free: 14.3 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002133/0.03739, allocations: 132.2 kB / 239.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.03796, allocations: 437.8 kB / 239.7 MB, free: 13.72 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.03797, allocations: 7.984 kB / 239.7 MB, free: 13.71 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.0383, allocations: 383.7 kB / 240.1 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.0386, allocations: 203 kB / 240.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.04087, allocations: 0.5591 MB / 240.8 MB, free: 12.51 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.04098, allocations: 109.1 kB / 240.9 MB, free: 12.38 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.106e-05/0.04107, allocations: 30.98 kB / 241 MB, free: 12.35 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.0412, allocations: 91.34 kB / 241.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of SimCode: time 1.132e-06/0.0412, allocations: 4 kB / 241.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of Templates: time 0.009029/0.05023, allocations: 7.367 MB / 248.4 MB, free: 4.902 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.936116296797991]