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.001385/0.001385, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001544/0.001544, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9901/0.9901, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.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 1.633e-06/1.633e-06, allocations: 4 kB / 273.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.528e-06/1.116e-05, allocations: 5.969 kB / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002623/0.002635, allocations: 2.585 MB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.004259, allocations: 1.134 MB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.004364, allocations: 7.938 kB / 277.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.004525, allocations: 63.44 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003259/0.004851, allocations: 179.8 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.005174, allocations: 183.5 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.005607, allocations: 0.5256 MB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.005958, allocations: 67.08 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.006298, allocations: 311.5 kB / 278.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.006529, allocations: 243.4 kB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.006577, allocations: 40 kB / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.006763, allocations: 139.8 kB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.992e-05/0.006853, allocations: 123.6 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.00696, allocations: 143.7 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.007379, allocations: 442.5 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.007381, allocations: 0 / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.007382, allocations: 0 / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.007385, allocations: 0 / 279.6 MB, free: 10.97 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.0007704/0.008156, allocations: 0.6086 MB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.008187, allocations: 8.031 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002709/0.008457, allocations: 84.86 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.008723, allocations: 226 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/0.00882, allocations: 144 kB / 280.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.008864, allocations: 32.33 kB / 280.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.009237, allocations: 334 kB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.00925, allocations: 192 / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.009277, allocations: 16.12 kB / 281.1 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.009285, allocations: 8 kB / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002874/0.009573, allocations: 195.2 kB / 281.3 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008692/0.01044, allocations: 0.579 MB / 281.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.01075, allocations: 205.1 kB / 282 MB, free: 8.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.01088, allocations: 98.27 kB / 282.1 MB, free: 8.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.01091, allocations: 12.5 kB / 282.1 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.01093, allocations: 39.05 kB / 282.2 MB, free: 8.277 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.273e-06/0.01093, allocations: 0 / 282.2 MB, free: 8.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002131/0.01307, allocations: 1.283 MB / 283.5 MB, free: 6.945 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.0131, allocations: 89.61 kB / 283.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.01325, allocations: 213.1 kB / 283.8 MB, free: 6.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.01328, allocations: 33.7 kB / 283.8 MB, free: 6.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.01333, allocations: 129.1 kB / 283.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.01343, allocations: 190.3 kB / 284.1 MB, free: 6.258 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.01354, allocations: 94.12 kB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.238e-05/0.01362, allocations: 346.7 kB / 284.5 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.01374, allocations: 67.8 kB / 284.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.01388, allocations: 133.7 kB / 284.7 MB, free: 5.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.01412, allocations: 221.1 kB / 284.9 MB, free: 5.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.01412, allocations: 0 / 284.9 MB, free: 5.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006273/0.01474, allocations: 298.9 kB / 285.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.01476, allocations: 4 kB / 285.2 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01476, allocations: 3.984 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003886/0.01515, allocations: 214.6 kB / 285.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.01534, allocations: 75.88 kB / 285.5 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.0172, allocations: 2.066 MB / 287.6 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.01734, allocations: 27.91 kB / 287.6 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/0.01738, allocations: 19.98 kB / 287.6 MB, free: 2.582 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.0001189/0.0175, allocations: 128.6 kB / 287.8 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.01756, allocations: 39.97 kB / 287.8 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.744e-05/0.01762, allocations: 51.3 kB / 287.9 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.01762, allocations: 8 kB / 287.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01763, allocations: 0 / 287.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.01764, allocations: 7.922 kB / 287.9 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009535/0.01859, allocations: 0.6637 MB / 288.5 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.01859, allocations: 4 kB / 288.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.0188, allocations: 71.89 kB / 288.6 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003535/0.01915, allocations: 216.1 kB / 288.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.01918, allocations: 15.98 kB / 288.8 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1121/0.1313, allocations: 2.006 MB / 290.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1313, allocations: 2.109 kB / 290.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006779/0.1319, allocations: 0.5014 MB / 291.3 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.132, allocations: 46.91 kB / 291.4 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.1321, allocations: 13.03 kB / 291.4 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.1322, allocations: 25.31 kB / 291.4 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.1324, allocations: 69.83 kB / 291.5 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.1324, allocations: 16.45 kB / 291.5 MB, free: 23.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.023e-05/0.1325, allocations: 73.69 kB / 291.6 MB, free: 23.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1325, allocations: 0.75 kB / 291.6 MB, free: 23.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004695/0.133, allocations: 155.8 kB / 291.7 MB, free: 23.67 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.0009817/0.1339, allocations: 474.4 kB / 292.2 MB, free: 23.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000642/0.1346, allocations: 472.9 kB / 292.7 MB, free: 23.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.1346, allocations: 2.125 kB / 292.7 MB, free: 23.42 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.135, allocations: 370.5 kB / 293 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.1352, allocations: 88.86 kB / 293.1 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.1363, allocations: 0.6688 MB / 293.8 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.95e-05/0.1364, allocations: 118.4 kB / 293.9 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000162/0.1365, allocations: 67.05 kB / 294 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.1367, allocations: 102.8 kB / 294.1 MB, free: 22.83 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1367, allocations: 0 / 294.1 MB, free: 22.83 MB / 266.7 MB Notification: Performance of Templates: time 0.01519/0.1519, allocations: 8.234 MB / 302.3 MB, free: 20.6 MB / 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.788069606758654]