Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.00195/0.00195, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002241/0.002241, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 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 1.491/1.491, allocations: 230.5 MB / 258.1 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 71.89 kB / 379 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.262, allocations: 53.4 MB / 432.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004148/0.2661, allocations: 2.338 MB / 434.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.2681, allocations: 1.01 MB / 435.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2682, allocations: 7.938 kB / 435.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.2685, allocations: 67.48 kB / 435.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004506/0.269, allocations: 149.8 kB / 435.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.2693, allocations: 163.7 kB / 436.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005537/0.2699, allocations: 478.7 kB / 436.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.27, allocations: 40.58 kB / 436.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.2703, allocations: 211.4 kB / 436.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003401/0.2707, allocations: 231.2 kB / 437 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.396e-05/0.2707, allocations: 36 kB / 437.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002554/0.271, allocations: 124 kB / 437.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.2711, allocations: 107.7 kB / 437.3 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.2713, allocations: 159.3 kB / 437.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006281/0.2719, allocations: 0.4933 MB / 437.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2719, allocations: 4 kB / 438 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2719, allocations: 0 / 438 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.272, allocations: 0 / 438 MB, free: 0.9648 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001248/0.2732, allocations: 0.5907 MB / 438.5 MB, free: 352 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.2732, allocations: 15.97 kB / 438.6 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003262/0.2736, allocations: 48.73 kB / 438.6 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005697/0.2741, allocations: 247.9 kB / 438.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.2743, allocations: 144 kB / 439 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.926e-05/0.2744, allocations: 24.38 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008004/0.2752, allocations: 420.4 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2752, allocations: 3.953 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.2753, allocations: 15.94 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2753, allocations: 8 kB / 439.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009122/0.2762, allocations: 406.3 kB / 439.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.2784, allocations: 1.088 MB / 440.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007461/0.2792, allocations: 328.9 kB / 441.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003958/0.2796, allocations: 164.8 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.2796, allocations: 4.719 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.2796, allocations: 34.56 kB / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.244e-06/0.2796, allocations: 0 / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004942/0.2846, allocations: 1.667 MB / 443.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.2846, allocations: 88.86 kB / 443.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.285, allocations: 250.8 kB / 443.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/0.285, allocations: 29.7 kB / 443.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.2851, allocations: 148.8 kB / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.2853, allocations: 158.8 kB / 443.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2854, allocations: 90.06 kB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2856, allocations: 334.8 kB / 444.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004001/0.286, allocations: 164.8 kB / 444.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.2865, allocations: 255.5 kB / 444.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.2872, allocations: 339.2 kB / 444.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2872, allocations: 0 / 444.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001213/0.2884, allocations: 0.5357 MB / 445.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.2884, allocations: 8 kB / 445.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2885, allocations: 4.125 kB / 445.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008631/0.2893, allocations: 297.2 kB / 445.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.2896, allocations: 55.89 kB / 445.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004215/0.2938, allocations: 2.72 MB / 448.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.2941, allocations: 24.05 kB / 448.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.898e-05/0.2941, allocations: 19.98 kB / 448.6 MB, free: 5.887 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.2943, allocations: 157.7 kB / 448.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.83e-05/0.2944, allocations: 35.73 kB / 448.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.96e-05/0.2945, allocations: 39 kB / 448.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2945, allocations: 4 kB / 448.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2945, allocations: 0 / 448.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.2945, allocations: 7.984 kB / 448.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.2965, allocations: 0.9688 MB / 449.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2965, allocations: 0 / 449.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.2968, allocations: 47.89 kB / 449.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007739/0.2975, allocations: 285 kB / 450.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/0.2976, allocations: 15.98 kB / 450.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004079/0.3017, allocations: 2.664 MB / 452.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3017, allocations: 0 / 452.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.3033, allocations: 0.8078 MB / 453.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.3035, allocations: 71.81 kB / 453.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.774e-05/0.3035, allocations: 8 kB / 453.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.3038, allocations: 27.97 kB / 453.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.304, allocations: 63.88 kB / 453.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.304, allocations: 28.05 kB / 453.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.3043, allocations: 180.5 kB / 454 MB, free: 332 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3043, allocations: 4 kB / 454 MB, free: 328 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006471/0.3049, allocations: 135.9 kB / 454.1 MB, free: 192 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001507/0.3064, allocations: 402.5 kB / 454.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.3078, allocations: 0.5938 MB / 455.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3078, allocations: 0 / 455.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.3086, allocations: 414.2 kB / 455.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/0.309, allocations: 49.78 kB / 455.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.3105, allocations: 0.7433 MB / 456.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.3107, allocations: 171.8 kB / 456.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.3108, allocations: 43.41 kB / 456.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3108, allocations: 0 / 456.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of Templates: time 0.009942/0.3207, allocations: 6.043 MB / 462.6 MB, free: 7.785 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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: 7.873026726767421]