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.001732/0.001732, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002232/0.002232, allocations: 208.7 kB / 23.73 MB, free: 4.387 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.646/1.646, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001821/0.001821, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3076, allocations: 53.36 MB / 431.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004296/0.3119, allocations: 2.326 MB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.314, allocations: 1.018 MB / 434.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.3141, allocations: 7.938 kB / 434.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.3144, allocations: 67.48 kB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.3148, allocations: 151.3 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.3152, allocations: 163.7 kB / 435.3 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005487/0.3158, allocations: 470.7 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.316, allocations: 48.91 kB / 435.8 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.3162, allocations: 207.4 kB / 436 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.3165, allocations: 227.2 kB / 436.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.507e-05/0.3166, allocations: 43.94 kB / 436.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.3169, allocations: 120 kB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.317, allocations: 111.7 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.3172, allocations: 155.4 kB / 436.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.3179, allocations: 0.4926 MB / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3179, allocations: 0 / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3179, allocations: 0 / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.3179, allocations: 4 kB / 437.1 MB, free: 1.148 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.001317/0.3192, allocations: 0.5984 MB / 437.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3193, allocations: 8.031 kB / 437.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.3196, allocations: 48.73 kB / 437.8 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.3201, allocations: 247.6 kB / 438 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.3203, allocations: 140 kB / 438.2 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.092e-05/0.3204, allocations: 28.38 kB / 438.2 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008046/0.3212, allocations: 416.5 kB / 438.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.3212, allocations: 7.891 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.3213, allocations: 12 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3213, allocations: 4 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008898/0.3222, allocations: 406.3 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.3244, allocations: 1.092 MB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007373/0.3251, allocations: 320.1 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.3255, allocations: 168.7 kB / 440.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.3255, allocations: 8.719 kB / 440.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.3256, allocations: 42.55 kB / 440.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.3256, allocations: 0 / 440.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005061/0.3306, allocations: 1.664 MB / 442.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.3307, allocations: 84.86 kB / 442.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.3311, allocations: 251.4 kB / 442.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.3311, allocations: 33.7 kB / 442.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.3312, allocations: 148.8 kB / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3314, allocations: 154.8 kB / 443 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.3315, allocations: 90.06 kB / 443.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3317, allocations: 334.8 kB / 443.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.3321, allocations: 164.8 kB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.3326, allocations: 251.5 kB / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007667/0.3334, allocations: 343.2 kB / 444.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3334, allocations: 0 / 444.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001228/0.3346, allocations: 0.5357 MB / 444.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3346, allocations: 4 kB / 444.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.3346, allocations: 8.125 kB / 444.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008625/0.3355, allocations: 300.5 kB / 445 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.3357, allocations: 51.95 kB / 445 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004293/0.34, allocations: 2.717 MB / 447.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.3403, allocations: 28.05 kB / 447.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.3404, allocations: 19.98 kB / 447.8 MB, free: 6.07 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.0002255/0.3406, allocations: 157.6 kB / 447.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.029e-05/0.3407, allocations: 31.81 kB / 448 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.3408, allocations: 43 kB / 448 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3408, allocations: 7.984 kB / 448 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3408, allocations: 0 / 448 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3408, allocations: 3.984 kB / 448 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.3429, allocations: 0.9763 MB / 449 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3429, allocations: 0 / 449 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.3432, allocations: 43.95 kB / 449 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007878/0.3439, allocations: 280.6 kB / 449.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.344, allocations: 15.98 kB / 449.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004126/0.3481, allocations: 2.665 MB / 452 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3481, allocations: 4.031 kB / 452 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3498, allocations: 0.7999 MB / 452.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.35, allocations: 71.8 kB / 452.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.3501, allocations: 12 kB / 452.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.3503, allocations: 27.97 kB / 452.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.3505, allocations: 63.88 kB / 453 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.53e-05/0.3505, allocations: 20.05 kB / 453 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.3508, allocations: 184.4 kB / 453.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3508, allocations: 0 / 453.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006365/0.3514, allocations: 143.9 kB / 453.3 MB, free: 380 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.001517/0.353, allocations: 410.3 kB / 453.7 MB, free: 124 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.3544, allocations: 0.5946 MB / 454.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3544, allocations: 0 / 454.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.3552, allocations: 413.8 kB / 454.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.3556, allocations: 46.45 kB / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.3571, allocations: 0.7181 MB / 455.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.3573, allocations: 171.8 kB / 455.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002325/0.3575, allocations: 70.92 kB / 455.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3577, allocations: 43.34 kB / 455.8 MB, free: 14 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3577, allocations: 0 / 455.8 MB, free: 14 MB / 366.1 MB Notification: Performance of Templates: time 0.01413/0.3718, allocations: 7.237 MB / 463 MB, free: 6.801 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/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: 4.979571674019098]