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.001677/0.001677, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002798/0.002798, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.545/1.545, allocations: 230.5 MB / 258.1 MB, free: 8.004 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.002172/0.002172, allocations: 63.89 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3082, allocations: 53.42 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004405/0.3126, allocations: 2.474 MB / 434.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.3148, allocations: 1.088 MB / 436 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.3149, allocations: 0 / 436 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.3153, allocations: 55.52 kB / 436 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005179/0.3158, allocations: 158.8 kB / 436.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004333/0.3162, allocations: 163.7 kB / 436.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005845/0.3168, allocations: 470.7 kB / 436.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.317, allocations: 52.89 kB / 436.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.3173, allocations: 203.5 kB / 437.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003955/0.3177, allocations: 247.2 kB / 437.3 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.887e-05/0.3177, allocations: 36 kB / 437.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002937/0.318, allocations: 139.9 kB / 437.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.3182, allocations: 107.7 kB / 437.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.3184, allocations: 175.2 kB / 437.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006982/0.3191, allocations: 499.5 kB / 438.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3191, allocations: 0 / 438.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3191, allocations: 3.938 kB / 438.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3191, allocations: 4 kB / 438.3 MB, free: 0.9023 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.001329/0.3204, allocations: 0.5984 MB / 438.9 MB, free: 280 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3205, allocations: 8.031 kB / 438.9 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/0.3208, allocations: 56.69 kB / 438.9 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005987/0.3214, allocations: 244 kB / 439.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/0.3216, allocations: 140 kB / 439.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.3217, allocations: 32.38 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007848/0.3225, allocations: 390.7 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.3225, allocations: 4 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.3225, allocations: 8 kB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.3225, allocations: 8 kB / 439.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00091/0.3234, allocations: 422.2 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.3257, allocations: 1.2 MB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.3265, allocations: 329.1 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.3269, allocations: 164.8 kB / 441.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.255e-05/0.3269, allocations: 12.14 kB / 441.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.327, allocations: 39.28 kB / 441.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.914e-06/0.327, allocations: 3.938 kB / 441.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005117/0.3321, allocations: 1.667 MB / 443.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.3322, allocations: 84.86 kB / 443.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.3325, allocations: 250.8 kB / 443.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.3326, allocations: 33.7 kB / 443.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.3327, allocations: 140.8 kB / 444 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3328, allocations: 154.7 kB / 444.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.333, allocations: 90.06 kB / 444.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3332, allocations: 330.8 kB / 444.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004091/0.3336, allocations: 172.8 kB / 444.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004419/0.334, allocations: 221.9 kB / 445 MB, free: 9.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007579/0.3348, allocations: 335.2 kB / 445.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3348, allocations: 0 / 445.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001238/0.336, allocations: 0.5435 MB / 445.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.336, allocations: 8 kB / 445.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.336, allocations: 0 / 445.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008836/0.3369, allocations: 301.3 kB / 446.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.3372, allocations: 51.91 kB / 446.2 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004387/0.3416, allocations: 2.799 MB / 449 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.3419, allocations: 28.03 kB / 449 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.342, allocations: 16 kB / 449.1 MB, free: 5.66 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.0002451/0.3422, allocations: 161.7 kB / 449.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-05/0.3423, allocations: 27.81 kB / 449.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.3424, allocations: 46.92 kB / 449.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/0.3424, allocations: 19.92 kB / 449.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3424, allocations: 0 / 449.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3424, allocations: 0 / 449.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.3445, allocations: 1.07 MB / 450.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3445, allocations: 0 / 450.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.3448, allocations: 51.95 kB / 450.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000783/0.3456, allocations: 273.1 kB / 450.7 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.3456, allocations: 19.98 kB / 450.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004317/0.3499, allocations: 2.747 MB / 453.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3499, allocations: 0 / 453.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.3517, allocations: 0.7962 MB / 454.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.3519, allocations: 71.77 kB / 454.3 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.3519, allocations: 15.94 kB / 454.3 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.3522, allocations: 24.09 kB / 454.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3524, allocations: 71.81 kB / 454.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.3525, allocations: 15.98 kB / 454.5 MB, free: 68 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.3527, allocations: 180.5 kB / 454.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3527, allocations: 0 / 454.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007127/0.3534, allocations: 135.9 kB / 454.8 MB, free: 15.76 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.001494/0.3549, allocations: 383.7 kB / 455.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.3565, allocations: 0.5939 MB / 455.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.3565, allocations: 0 / 455.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008542/0.3573, allocations: 413.9 kB / 456.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004913/0.3578, allocations: 51.88 kB / 456.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.3595, allocations: 0.7432 MB / 456.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.3601, allocations: 0.7762 MB / 457.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.3602, allocations: 47.39 kB / 457.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3602, allocations: 0 / 457.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Templates: time 0.01172/0.3719, allocations: 5.938 MB / 463.7 MB, free: 6.848 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: 8.641436509089544]