Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001295/0.001295, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001268/0.001268, allocations: 171.6 kB / 25.33 MB, free: 8.598 MB / 18.57 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.9357/0.9357, allocations: 158.6 MB / 187.2 MB, free: 2.926 MB / 170.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 251 MB, free: 7.535 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.68e-05, allocations: 2.312 kB / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002863/0.00289, allocations: 2.452 MB / 253.5 MB, free: 5.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.004577, allocations: 0.9917 MB / 254.5 MB, free: 4.055 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.004812, allocations: 7.938 kB / 254.5 MB, free: 4.047 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002727/0.005085, allocations: 47.52 kB / 254.5 MB, free: 4 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006384/0.005723, allocations: 166.9 kB / 254.7 MB, free: 3.836 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.006055, allocations: 187.5 kB / 254.9 MB, free: 3.652 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005026/0.006557, allocations: 490.3 kB / 255.4 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.006779, allocations: 53.14 kB / 255.4 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006811/0.00746, allocations: 291.4 kB / 255.7 MB, free: 2.836 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.007866, allocations: 207.5 kB / 255.9 MB, free: 2.633 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.007975, allocations: 40 kB / 255.9 MB, free: 2.594 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003016/0.008277, allocations: 123.8 kB / 256.1 MB, free: 2.473 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.008434, allocations: 111.6 kB / 256.2 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.008612, allocations: 135.7 kB / 256.3 MB, free: 2.23 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006596/0.009272, allocations: 402.6 kB / 256.7 MB, free: 1.832 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.009276, allocations: 0 / 256.7 MB, free: 1.832 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.009277, allocations: 0 / 256.7 MB, free: 1.832 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.009287, allocations: 0 / 256.7 MB, free: 1.832 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001378/0.01066, allocations: 0.6947 MB / 257.4 MB, free: 1.102 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.01072, allocations: 11.98 kB / 257.4 MB, free: 1.09 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003686/0.01109, allocations: 88.67 kB / 257.5 MB, free: 1.004 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005257/0.01161, allocations: 272.5 kB / 257.7 MB, free: 0.707 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.01176, allocations: 140 kB / 257.9 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.01184, allocations: 36.38 kB / 257.9 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009488/0.01279, allocations: 352.9 kB / 258.3 MB, free: 148 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.0128, allocations: 192 / 258.3 MB, free: 148 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.01283, allocations: 20.12 kB / 258.3 MB, free: 128 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.01284, allocations: 8 kB / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004152/0.01326, allocations: 271.6 kB / 258.6 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.01483, allocations: 0.7681 MB / 259.3 MB, free: 15.05 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004828/0.01531, allocations: 261.8 kB / 259.6 MB, free: 14.79 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.0155, allocations: 145.1 kB / 259.7 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.01554, allocations: 8.5 kB / 259.7 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.01556, allocations: 42.08 kB / 259.8 MB, free: 14.58 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.844e-06/0.01557, allocations: 7.938 kB / 259.8 MB, free: 14.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.00259/0.01816, allocations: 1.523 MB / 261.3 MB, free: 12.99 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.0182, allocations: 81.61 kB / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.0184, allocations: 281.5 kB / 261.7 MB, free: 12.6 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.01843, allocations: 41.69 kB / 261.7 MB, free: 12.55 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.147e-05/0.01851, allocations: 179.9 kB / 261.9 MB, free: 12.37 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.01862, allocations: 190.4 kB / 262.1 MB, free: 12.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.01874, allocations: 103.8 kB / 262.2 MB, free: 12.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.01888, allocations: 0.5118 MB / 262.7 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.01907, allocations: 104.9 kB / 262.8 MB, free: 11.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.01927, allocations: 190.2 kB / 263 MB, free: 11.24 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.01958, allocations: 245.2 kB / 263.2 MB, free: 11 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01958, allocations: 0 / 263.2 MB, free: 11 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005494/0.02013, allocations: 449.7 kB / 263.6 MB, free: 10.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.02015, allocations: 8.031 kB / 263.6 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.02015, allocations: 0 / 263.6 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004583/0.02061, allocations: 212.7 kB / 263.9 MB, free: 10.33 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.02079, allocations: 67.89 kB / 263.9 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002499/0.02329, allocations: 2.904 MB / 266.8 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.02343, allocations: 23.98 kB / 266.8 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.02346, allocations: 16 kB / 266.9 MB, free: 7.199 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 0.0001355/0.02359, allocations: 180.1 kB / 267 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.947e-05/0.02366, allocations: 47.81 kB / 267.1 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.386e-05/0.02372, allocations: 51.3 kB / 267.1 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.02372, allocations: 4 kB / 267.1 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.02373, allocations: 3.938 kB / 267.1 MB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.02373, allocations: 8.016 kB / 267.1 MB, free: 6.898 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.02488, allocations: 0.9792 MB / 268.1 MB, free: 5.871 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.02489, allocations: 3.984 kB / 268.1 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.02506, allocations: 55.91 kB / 268.2 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003582/0.02542, allocations: 215.4 kB / 268.4 MB, free: 5.598 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.02545, allocations: 11.98 kB / 268.4 MB, free: 5.586 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.02755, allocations: 2.85 MB / 271.3 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.02756, allocations: 0 / 271.3 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007969/0.02835, allocations: 0.7205 MB / 272 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.02846, allocations: 71.78 kB / 272 MB, free: 1.801 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.02849, allocations: 12 kB / 272.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.02862, allocations: 19.92 kB / 272.1 MB, free: 1.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.02875, allocations: 76.3 kB / 272.2 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.02877, allocations: 19.98 kB / 272.2 MB, free: 1.676 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001185/0.02889, allocations: 191.1 kB / 272.4 MB, free: 1.488 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02889, allocations: 0 / 272.4 MB, free: 1.488 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.02931, allocations: 155.9 kB / 272.5 MB, free: 1.336 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.0002159/0.02952, allocations: 147.1 kB / 272.7 MB, free: 1.184 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007197/0.03024, allocations: 0.5924 MB / 273.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.03025, allocations: 0 / 273.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.03066, allocations: 476.1 kB / 273.7 MB, free: 88 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.03096, allocations: 59.72 kB / 273.8 MB, free: 28 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.03216, allocations: 0.6904 MB / 274.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.03226, allocations: 114.3 kB / 274.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.03238, allocations: 54.92 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.505e-05/0.03245, allocations: 32.48 kB / 274.7 MB, free: 15.08 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.03246, allocations: 4 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of Templates: time 0.008932/0.04139, allocations: 7.212 MB / 281.9 MB, free: 7.883 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.924230302218348]