Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001494, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.932/0.932, allocations: 177 MB / 205.1 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.396e-05/2.596e-05, allocations: 2.312 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004596/0.004621, allocations: 2.535 MB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.006872, allocations: 1.104 MB / 277 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.007097, allocations: 4 kB / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000344/0.007441, allocations: 71.34 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006075/0.008049, allocations: 183 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00391/0.01196, allocations: 191.6 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009918/0.01295, allocations: 0.5256 MB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.01317, allocations: 61.11 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005647/0.01374, allocations: 311.4 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.01409, allocations: 239.4 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.75e-05/0.01418, allocations: 40 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003342/0.01451, allocations: 143.8 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.01465, allocations: 123.6 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.0148, allocations: 143.7 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006581/0.01546, allocations: 446.5 kB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.01546, allocations: 0 / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01546, allocations: 0 / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.01547, allocations: 0 / 279.4 MB, free: 11.15 MB / 266.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.00118/0.01665, allocations: 0.7411 MB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.0167, allocations: 11.98 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000393/0.01709, allocations: 92.67 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.01754, allocations: 264.7 kB / 280.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.01769, allocations: 140 kB / 280.6 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.956e-05/0.01776, allocations: 40.27 kB / 280.7 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005915/0.01835, allocations: 336.8 kB / 281 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.01837, allocations: 4.188 kB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.01841, allocations: 20.12 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.01842, allocations: 8 kB / 281 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.01887, allocations: 216.3 kB / 281.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.0199, allocations: 0.7375 MB / 282 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003249/0.02023, allocations: 221.7 kB / 282.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.02035, allocations: 101.1 kB / 282.3 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.02038, allocations: 12.48 kB / 282.3 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.02041, allocations: 41.89 kB / 282.3 MB, free: 8.031 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.483e-06/0.02041, allocations: 0 / 282.3 MB, free: 8.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002044/0.02245, allocations: 1.34 MB / 283.7 MB, free: 6.633 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.02249, allocations: 85.55 kB / 283.8 MB, free: 6.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.02263, allocations: 266.6 kB / 284 MB, free: 6.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.02266, allocations: 37.7 kB / 284.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.02273, allocations: 187.9 kB / 284.2 MB, free: 6.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.908e-05/0.02283, allocations: 194.3 kB / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.02293, allocations: 99.78 kB / 284.5 MB, free: 5.723 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.02305, allocations: 0.5156 MB / 285.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.02316, allocations: 80.94 kB / 285.1 MB, free: 5.113 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.0233, allocations: 162.1 kB / 285.3 MB, free: 4.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.02352, allocations: 201.3 kB / 285.5 MB, free: 4.738 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.02352, allocations: 0 / 285.5 MB, free: 4.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0004258/0.02395, allocations: 385.7 kB / 285.9 MB, free: 4.348 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.02396, allocations: 7.125 kB / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.02397, allocations: 0 / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003674/0.02433, allocations: 229.4 kB / 286.1 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.02448, allocations: 67.89 kB / 286.2 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/0.02647, allocations: 2.818 MB / 289 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.0266, allocations: 23.92 kB / 289 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.02663, allocations: 20.02 kB / 289 MB, free: 1.074 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.0001242/0.02676, allocations: 180.5 kB / 289.2 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.02683, allocations: 51.81 kB / 289.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-05/0.02692, allocations: 47.3 kB / 289.3 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.02692, allocations: 4 kB / 289.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.02692, allocations: 0 / 289.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.02693, allocations: 3.984 kB / 289.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009982/0.02792, allocations: 0.9017 MB / 290.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.02793, allocations: 3.938 kB / 290.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.02809, allocations: 59.95 kB / 290.3 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003204/0.02841, allocations: 227.3 kB / 290.5 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.02843, allocations: 15.97 kB / 290.5 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.03058, allocations: 2.779 MB / 293.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.03058, allocations: 0 / 293.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007184/0.0313, allocations: 0.6228 MB / 293.9 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.03142, allocations: 75.73 kB / 294 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.03146, allocations: 15.94 kB / 294 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.03161, allocations: 28.05 kB / 294 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.03175, allocations: 72.34 kB / 294.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.03177, allocations: 15.98 kB / 294.1 MB, free: 11.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.03187, allocations: 189.3 kB / 294.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03187, allocations: 0 / 294.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004405/0.03232, allocations: 151.9 kB / 294.4 MB, free: 11.46 MB / 282.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.0007213/0.03304, allocations: 356.9 kB / 294.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006314/0.03367, allocations: 0.5502 MB / 295.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.03367, allocations: 0 / 295.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.03405, allocations: 448 kB / 295.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.03435, allocations: 83.39 kB / 295.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.03547, allocations: 0.6942 MB / 296.6 MB, free: 9.355 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.47e-05/0.03556, allocations: 110.3 kB / 296.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.03569, allocations: 54.94 kB / 296.7 MB, free: 9.172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.03584, allocations: 130.2 kB / 296.8 MB, free: 9.043 MB / 282.7 MB Notification: Performance of SimCode: time 7.12e-07/0.03584, allocations: 0 / 296.8 MB, free: 9.043 MB / 282.7 MB Notification: Performance of Templates: time 0.009783/0.04563, allocations: 8.355 MB / 305.2 MB, free: 0.7305 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8684922116808593]