Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007312/0.0007312, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0014/0.002131, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006743/0.0006743, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008805/0.001555, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.03/1.03, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0811/1.111, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.993e-05/2.194e-05, allocations: 5.828 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003934/0.003956, allocations: 2.593 MB / 247.3 MB, free: 11.63 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.006209, allocations: 1.142 MB / 248.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.00643, allocations: 11.94 kB / 248.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.00671, allocations: 67.38 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.007228, allocations: 174.5 kB / 248.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.007679, allocations: 187.5 kB / 248.9 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006026/0.008282, allocations: 0.5179 MB / 249.4 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.008449, allocations: 63.09 kB / 249.5 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006051/0.009055, allocations: 356 kB / 249.8 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003605/0.009415, allocations: 223.5 kB / 250 MB, free: 8.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.918e-05/0.009504, allocations: 47.94 kB / 250.1 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003078/0.009812, allocations: 139.8 kB / 250.2 MB, free: 8.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.00993, allocations: 83.78 kB / 250.3 MB, free: 8.633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.01006, allocations: 103.8 kB / 250.4 MB, free: 8.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005489/0.01061, allocations: 394.7 kB / 250.8 MB, free: 8.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.556e-05/0.01063, allocations: 0 / 250.8 MB, free: 8.145 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01063, allocations: 4 kB / 250.8 MB, free: 8.141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.01064, allocations: 0 / 250.8 MB, free: 8.141 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.001175/0.01182, allocations: 0.6709 MB / 251.4 MB, free: 7.445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.01185, allocations: 12.03 kB / 251.5 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004156/0.01227, allocations: 161.9 kB / 251.6 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.01266, allocations: 241.9 kB / 251.8 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.01277, allocations: 148 kB / 252 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-05/0.01283, allocations: 36.33 kB / 252 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.01321, allocations: 333.5 kB / 252.4 MB, free: 6.441 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.01322, allocations: 0 / 252.4 MB, free: 6.441 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.01324, allocations: 16 kB / 252.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.01325, allocations: 11.98 kB / 252.4 MB, free: 6.414 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.01351, allocations: 187.2 kB / 252.6 MB, free: 6.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008936/0.0144, allocations: 0.5829 MB / 253.1 MB, free: 5.629 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.0147, allocations: 203.3 kB / 253.3 MB, free: 5.426 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.01481, allocations: 94.31 kB / 253.4 MB, free: 5.332 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.01484, allocations: 8.5 kB / 253.4 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.01486, allocations: 39.06 kB / 253.5 MB, free: 5.277 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.533e-06/0.01486, allocations: 0 / 253.5 MB, free: 5.277 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.002025/0.01689, allocations: 1.326 MB / 254.8 MB, free: 3.898 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.01692, allocations: 67.84 kB / 254.9 MB, free: 3.82 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.01705, allocations: 213 kB / 255.1 MB, free: 3.594 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.01708, allocations: 37.7 kB / 255.1 MB, free: 3.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.894e-05/0.01713, allocations: 133.1 kB / 255.3 MB, free: 3.418 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.01722, allocations: 194.2 kB / 255.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.301e-05/0.01732, allocations: 94.12 kB / 255.5 MB, free: 3.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.775e-05/0.01739, allocations: 338.8 kB / 255.9 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.0175, allocations: 67.8 kB / 255.9 MB, free: 2.723 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.01761, allocations: 133.7 kB / 256.1 MB, free: 2.578 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.01781, allocations: 213.2 kB / 256.3 MB, free: 2.363 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01782, allocations: 0 / 256.3 MB, free: 2.363 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003362/0.01815, allocations: 302.8 kB / 256.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.01817, allocations: 4 kB / 256.6 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.01818, allocations: 0 / 256.6 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004054/0.01858, allocations: 226.6 kB / 256.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.01876, allocations: 79.88 kB / 256.9 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.0205, allocations: 2.068 MB / 258.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.02063, allocations: 23.94 kB / 259 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.02066, allocations: 16.03 kB / 259 MB, free: 15.56 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.0001148/0.02078, allocations: 144.6 kB / 259.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.02083, allocations: 35.97 kB / 259.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.02088, allocations: 47.31 kB / 259.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.02089, allocations: 7.938 kB / 259.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.02089, allocations: 0 / 259.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.0209, allocations: 7.984 kB / 259.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007973/0.02169, allocations: 0.6714 MB / 259.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.0217, allocations: 0 / 259.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.02187, allocations: 71.94 kB / 260 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.488e-05/0.02196, allocations: 51.77 kB / 260 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000327/0.02228, allocations: 220.1 kB / 260.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.02231, allocations: 19.98 kB / 260.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.02383, allocations: 2.027 MB / 262.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.02384, allocations: 0 / 262.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.02433, allocations: 0.5063 MB / 262.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.02437, allocations: 20 kB / 262.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.02449, allocations: 23.98 kB / 262.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.02461, allocations: 76.33 kB / 262.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.02463, allocations: 11.98 kB / 262.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.046e-05/0.02469, allocations: 67.03 kB / 263 MB, free: 11.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02469, allocations: 0 / 263 MB, free: 11.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003761/0.02506, allocations: 155.9 kB / 263.1 MB, free: 11.26 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.001034/0.0261, allocations: 0.5029 MB / 263.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005446/0.02664, allocations: 482 kB / 264.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/0.02666, allocations: 7.984 kB / 264.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.02699, allocations: 396.3 kB / 264.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.0273, allocations: 281.2 kB / 264.8 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.0301, allocations: 0.6677 MB / 265.4 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.141e-05/0.03018, allocations: 118.3 kB / 265.5 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.03032, allocations: 63.06 kB / 265.6 MB, free: 8.875 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.03047, allocations: 111.3 kB / 265.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03047, allocations: 0 / 265.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of Templates: time 0.009826/0.0403, allocations: 8.487 MB / 274.2 MB, free: 348 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.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.6579557713121176]