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.00138/0.00138, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001474/0.001474, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.523/1.523, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.395e-06/2.395e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.702e-05/3.941e-05, allocations: 5.516 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003971/0.004011, allocations: 2.419 MB / 327.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.006151, allocations: 1.088 MB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.006286, allocations: 7.75 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.006579, allocations: 63.83 kB / 328.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.007103, allocations: 184.4 kB / 328.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.007536, allocations: 184.4 kB / 329 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006296/0.008166, allocations: 0.5262 MB / 329.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.008362, allocations: 64.88 kB / 329.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005026/0.008865, allocations: 317.2 kB / 329.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.009216, allocations: 230.4 kB / 330.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.576e-05/0.009302, allocations: 42.81 kB / 330.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.00958, allocations: 132.9 kB / 330.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.009758, allocations: 121.4 kB / 330.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.009952, allocations: 149.4 kB / 330.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007609/0.01071, allocations: 0.5898 MB / 331.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.01072, allocations: 4 kB / 331.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.01072, allocations: 1.219 kB / 331.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.01072, allocations: 0 / 331.1 MB, free: 12.88 MB / 302.1 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.001401/0.01213, allocations: 0.6404 MB / 331.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.01216, allocations: 8.969 kB / 331.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004225/0.01258, allocations: 63.8 kB / 331.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.01312, allocations: 261.2 kB / 332.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.01331, allocations: 143.6 kB / 332.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.01338, allocations: 35.95 kB / 332.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009059/0.01429, allocations: 445.8 kB / 332.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.01431, allocations: 5.281 kB / 332.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.01435, allocations: 18.2 kB / 332.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.01436, allocations: 8.375 kB / 332.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.01541, allocations: 466.3 kB / 333.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.01714, allocations: 0.7953 MB / 334 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009183/0.01806, allocations: 363.3 kB / 334.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004866/0.01855, allocations: 206.1 kB / 334.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.01858, allocations: 5.469 kB / 334.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.01862, allocations: 37.94 kB / 334.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.01862, allocations: 4 kB / 334.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.0057/0.02432, allocations: 1.913 MB / 336.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/0.0244, allocations: 83.83 kB / 336.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.02474, allocations: 262.2 kB / 336.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.472e-05/0.0248, allocations: 36.55 kB / 336.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.02491, allocations: 139.7 kB / 337 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.02507, allocations: 196.4 kB / 337.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.02525, allocations: 94.02 kB / 337.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.02541, allocations: 334.8 kB / 337.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004895/0.0259, allocations: 196.9 kB / 337.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005361/0.02644, allocations: 269.7 kB / 338.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009284/0.02737, allocations: 383.6 kB / 338.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.02737, allocations: 0 / 338.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001391/0.02876, allocations: 0.5926 MB / 339.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.02878, allocations: 4 kB / 339.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.02879, allocations: 3.984 kB / 339.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008776/0.02967, allocations: 311.5 kB / 339.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.02999, allocations: 67.88 kB / 339.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/0.03421, allocations: 2.765 MB / 342.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.03455, allocations: 27.97 kB / 342.2 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.376e-05/0.0346, allocations: 19.98 kB / 342.3 MB, free: 3.609 MB / 302.1 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.0002336/0.03484, allocations: 165.8 kB / 342.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.707e-05/0.03493, allocations: 31.81 kB / 342.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-05/0.03503, allocations: 47.3 kB / 342.5 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.03504, allocations: 8 kB / 342.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.03505, allocations: 7.875 kB / 342.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.03505, allocations: 3.984 kB / 342.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.03749, allocations: 1.131 MB / 343.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.0375, allocations: 0 / 343.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.03786, allocations: 63.95 kB / 343.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007984/0.03866, allocations: 289.9 kB / 344 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.528e-05/0.0387, allocations: 15.98 kB / 344 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.04271, allocations: 2.685 MB / 346.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.04271, allocations: 8.031 kB / 346.7 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.04476, allocations: 0.9371 MB / 347.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.04496, allocations: 75.77 kB / 347.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.876e-05/0.04504, allocations: 12 kB / 347.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.04539, allocations: 40.03 kB / 347.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.04559, allocations: 76.34 kB / 347.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/0.04563, allocations: 15.98 kB / 347.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002591/0.04589, allocations: 193.5 kB / 348 MB, free: 13.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.04589, allocations: 0 / 348 MB, free: 13.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006783/0.04657, allocations: 147.9 kB / 348.2 MB, free: 13.5 MB / 318.1 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.001478/0.04805, allocations: 411.5 kB / 348.6 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.04963, allocations: 0.6679 MB / 349.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.04963, allocations: 0 / 349.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009031/0.05054, allocations: 460.4 kB / 349.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.05101, allocations: 48.48 kB / 349.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.0526, allocations: 0.7568 MB / 350.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.05281, allocations: 194.8 kB / 350.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002571/0.05306, allocations: 82.88 kB / 350.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.05321, allocations: 44.47 kB / 350.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.05321, allocations: 0 / 350.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of Templates: time 0.0148/0.06801, allocations: 7.501 MB / 358.3 MB, free: 3.473 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.57786862552166]