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.001767/0.001767, allocations: 84.95 kB / 20.68 MB, free: 1.035 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.001617/0.001617, allocations: 158.2 kB / 23.95 MB, free: 4.168 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.493/1.493, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.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 1.493e-06/1.493e-06, allocations: 0 / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.202e-05/2.352e-05, allocations: 3.688 kB / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003934/0.003957, allocations: 2.338 MB / 327.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.005885, allocations: 1.018 MB / 328.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.005997, allocations: 4.094 kB / 328.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.006261, allocations: 65.36 kB / 328.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004588/0.00672, allocations: 156.9 kB / 328.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.007108, allocations: 162.4 kB / 328.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006821/0.00779, allocations: 483.6 kB / 329.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.007955, allocations: 44.59 kB / 329.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.008372, allocations: 280.1 kB / 329.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003677/0.00874, allocations: 211.1 kB / 329.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.898e-05/0.008819, allocations: 43.59 kB / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.009082, allocations: 124.6 kB / 329.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.009266, allocations: 109.5 kB / 330 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001852/0.009451, allocations: 128.9 kB / 330.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.01019, allocations: 0.5313 MB / 330.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.01019, allocations: 3.984 kB / 330.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.0102, allocations: 0 / 330.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.0102, allocations: 5.156 kB / 330.7 MB, free: 13.11 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001347/0.01155, allocations: 0.5883 MB / 331.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.01159, allocations: 14.14 kB / 331.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003692/0.01196, allocations: 55.42 kB / 331.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/0.01254, allocations: 247.2 kB / 331.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.01273, allocations: 142 kB / 331.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.0128, allocations: 26.88 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008261/0.01362, allocations: 414.4 kB / 332.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.01364, allocations: 2.469 kB / 332.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.01369, allocations: 14.28 kB / 332.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.0137, allocations: 7.188 kB / 332.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009302/0.01463, allocations: 409 kB / 332.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.0168, allocations: 1.088 MB / 333.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007585/0.01756, allocations: 328.4 kB / 334 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/0.01795, allocations: 164 kB / 334.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.01799, allocations: 5.969 kB / 334.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.01802, allocations: 37.12 kB / 334.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 4.048e-06/0.01802, allocations: 4 kB / 334.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005131/0.02315, allocations: 1.661 MB / 335.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.02323, allocations: 90.48 kB / 335.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.02363, allocations: 251.7 kB / 336.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.02368, allocations: 36.27 kB / 336.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.0238, allocations: 142.3 kB / 336.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.02395, allocations: 153.2 kB / 336.5 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.02411, allocations: 87.78 kB / 336.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.0243, allocations: 338.2 kB / 336.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004018/0.0247, allocations: 163.4 kB / 337.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.02518, allocations: 253.4 kB / 337.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007818/0.02597, allocations: 337.5 kB / 337.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.02597, allocations: 4 kB / 337.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001286/0.02726, allocations: 0.5333 MB / 338.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.02728, allocations: 7.938 kB / 338.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.02728, allocations: 4.125 kB / 338.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008769/0.02816, allocations: 300.5 kB / 338.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.02842, allocations: 47.95 kB / 338.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.03288, allocations: 2.725 MB / 341.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.03318, allocations: 28.08 kB / 341.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.03324, allocations: 23.98 kB / 341.3 MB, free: 4.348 MB / 302.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.0002239/0.03346, allocations: 149.8 kB / 341.4 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.166e-05/0.03355, allocations: 35.69 kB / 341.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.03366, allocations: 43 kB / 341.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.03366, allocations: 4 kB / 341.5 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.03367, allocations: 7.938 kB / 341.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.03368, allocations: 3.984 kB / 341.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.03577, allocations: 0.9725 MB / 342.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.03577, allocations: 0 / 342.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.03603, allocations: 47.95 kB / 342.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.03681, allocations: 276.7 kB / 342.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.03685, allocations: 15.98 kB / 342.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004219/0.04107, allocations: 2.683 MB / 345.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.04107, allocations: 0 / 345.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.0429, allocations: 0.8042 MB / 346.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.04307, allocations: 71.81 kB / 346.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.04313, allocations: 8 kB / 346.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/0.04343, allocations: 23.97 kB / 346.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.04363, allocations: 68 kB / 346.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.04366, allocations: 19.98 kB / 346.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002594/0.04392, allocations: 188.2 kB / 346.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.04392, allocations: 3.938 kB / 346.7 MB, free: 14.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.04459, allocations: 131.9 kB / 346.8 MB, free: 14.63 MB / 318.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.001569/0.04616, allocations: 400.4 kB / 347.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.04762, allocations: 0.6096 MB / 347.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.04762, allocations: 256 / 347.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007901/0.04841, allocations: 413.9 kB / 348.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.04887, allocations: 35.98 kB / 348.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.05024, allocations: 0.6402 MB / 348.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.05042, allocations: 171.8 kB / 349.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002291/0.05065, allocations: 70.92 kB / 349.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.05077, allocations: 40.47 kB / 349.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.05077, allocations: 3.938 kB / 349.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of Templates: time 0.01391/0.06468, allocations: 7.012 MB / 356.2 MB, free: 5.359 MB / 318.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/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_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: 4.708362199366093]