Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001293/0.001293, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001444/0.001444, allocations: 208.6 kB / 24.49 MB, free: 4.133 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 8.234 MB / 206.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 47.92 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2529, allocations: 53.36 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004449/0.2573, allocations: 2.474 MB / 434.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.2595, allocations: 1.072 MB / 435.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.2597, allocations: 4 kB / 435.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003425/0.2601, allocations: 67.48 kB / 436 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005491/0.2606, allocations: 159.8 kB / 436.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.2611, allocations: 171.7 kB / 436.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00071/0.2618, allocations: 478.7 kB / 436.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.262, allocations: 40.92 kB / 436.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.2624, allocations: 211.5 kB / 437 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004939/0.2629, allocations: 251.2 kB / 437.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.337e-05/0.263, allocations: 36 kB / 437.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.2634, allocations: 127.9 kB / 437.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.2635, allocations: 107.7 kB / 437.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.2637, allocations: 175.2 kB / 437.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006686/0.2644, allocations: 0.4917 MB / 438.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2644, allocations: 4 kB / 438.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2644, allocations: 0 / 438.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2644, allocations: 0 / 438.2 MB, free: 1.113 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.001226/0.2656, allocations: 0.6023 MB / 438.8 MB, free: 492 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2657, allocations: 12.03 kB / 438.8 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.266, allocations: 48.69 kB / 438.9 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.2665, allocations: 239.7 kB / 439.1 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.2667, allocations: 152 kB / 439.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.78e-05/0.2668, allocations: 24.31 kB / 439.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007411/0.2675, allocations: 386.8 kB / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2676, allocations: 0 / 439.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.2676, allocations: 19.98 kB / 439.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2676, allocations: 4 kB / 439.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008562/0.2685, allocations: 418.2 kB / 440.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.2708, allocations: 1.204 MB / 441.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/0.2715, allocations: 330.5 kB / 441.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003725/0.2719, allocations: 164.7 kB / 441.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.2719, allocations: 8 kB / 441.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.272, allocations: 39.22 kB / 441.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.592e-06/0.272, allocations: 0 / 441.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004759/0.2767, allocations: 1.667 MB / 443.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.2768, allocations: 88.84 kB / 443.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.2771, allocations: 251.4 kB / 443.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.2772, allocations: 37.7 kB / 443.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2773, allocations: 140.9 kB / 444 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.2774, allocations: 154.7 kB / 444.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.2776, allocations: 86.06 kB / 444.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002848/0.2779, allocations: 342.8 kB / 444.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.2782, allocations: 160.8 kB / 444.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004755/0.2787, allocations: 233.9 kB / 445 MB, free: 10.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006967/0.2794, allocations: 335.2 kB / 445.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2794, allocations: 0 / 445.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001159/0.2806, allocations: 0.5396 MB / 445.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2806, allocations: 4 kB / 445.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2806, allocations: 4 kB / 445.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008159/0.2814, allocations: 300.7 kB / 446.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.2817, allocations: 55.89 kB / 446.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.2859, allocations: 2.787 MB / 449 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.2861, allocations: 23.98 kB / 449 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.2862, allocations: 23.98 kB / 449 MB, free: 5.863 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.0001838/0.2864, allocations: 153.8 kB / 449.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2865, allocations: 35.8 kB / 449.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.774e-05/0.2866, allocations: 43 kB / 449.2 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.2866, allocations: 4 kB / 449.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.2866, allocations: 3.938 kB / 449.2 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2866, allocations: 3.984 kB / 449.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.2886, allocations: 1.073 MB / 450.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.2886, allocations: 4 kB / 450.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.2888, allocations: 43.95 kB / 450.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007416/0.2896, allocations: 280.6 kB / 450.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.2896, allocations: 15.98 kB / 450.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003995/0.2936, allocations: 2.749 MB / 453.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2936, allocations: 0 / 453.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.2952, allocations: 0.7923 MB / 454.2 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.2954, allocations: 71.77 kB / 454.3 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.2955, allocations: 15.94 kB / 454.3 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.2957, allocations: 19.98 kB / 454.3 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.2959, allocations: 71.8 kB / 454.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.2959, allocations: 20.05 kB / 454.4 MB, free: 288 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00024/0.2961, allocations: 180.5 kB / 454.6 MB, free: 108 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2961, allocations: 0 / 454.6 MB, free: 108 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006196/0.2968, allocations: 140 kB / 454.7 MB, free: 15.96 MB / 366.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.001381/0.2981, allocations: 395.3 kB / 455.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.2995, allocations: 0.5906 MB / 455.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2995, allocations: 4.25 kB / 455.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000731/0.3002, allocations: 413.6 kB / 456.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.3006, allocations: 49.38 kB / 456.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.3021, allocations: 0.7432 MB / 456.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.3027, allocations: 0.7801 MB / 457.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.3028, allocations: 43.39 kB / 457.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3028, allocations: 0 / 457.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of Templates: time 0.009991/0.3128, allocations: 5.938 MB / 463.6 MB, free: 7.078 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.6728834100067616]