Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0007059/0.0007059, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001014/0.00172, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006861/0.0006861, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008569/0.001543, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.04/1.04, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09881/1.139, allocations: 53.86 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.542e-05, allocations: 2.312 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003858/0.003883, allocations: 2.593 MB / 247.8 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.005709, allocations: 1.138 MB / 248.9 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.00584, allocations: 7.938 kB / 248.9 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.006069, allocations: 71.36 kB / 249 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000405/0.006474, allocations: 183.7 kB / 249.2 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.006827, allocations: 187.5 kB / 249.4 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.007356, allocations: 0.514 MB / 249.9 MB, free: 8.871 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.007525, allocations: 71.02 kB / 250 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.007992, allocations: 360.1 kB / 250.3 MB, free: 8.445 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.008273, allocations: 227.5 kB / 250.5 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.008335, allocations: 44 kB / 250.6 MB, free: 8.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.008574, allocations: 131.8 kB / 250.7 MB, free: 8.051 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.008687, allocations: 83.8 kB / 250.8 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.008809, allocations: 103.8 kB / 250.9 MB, free: 7.867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.009295, allocations: 390.7 kB / 251.3 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.009306, allocations: 0 / 251.3 MB, free: 7.484 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.009307, allocations: 0 / 251.3 MB, free: 7.484 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.009318, allocations: 0 / 251.3 MB, free: 7.484 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008874/0.01021, allocations: 0.6826 MB / 251.9 MB, free: 6.777 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.01024, allocations: 12.62 kB / 252 MB, free: 6.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.01052, allocations: 154 kB / 252.1 MB, free: 6.598 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.01078, allocations: 237.9 kB / 252.3 MB, free: 6.336 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.079e-05/0.01087, allocations: 144 kB / 252.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.01092, allocations: 36.27 kB / 252.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003438/0.01126, allocations: 337.5 kB / 252.8 MB, free: 5.785 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.01127, allocations: 0 / 252.8 MB, free: 5.785 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.0113, allocations: 16 kB / 252.9 MB, free: 5.77 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.01131, allocations: 8 kB / 252.9 MB, free: 5.762 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.01155, allocations: 195.2 kB / 253.1 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007563/0.01231, allocations: 0.5829 MB / 253.6 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/0.01264, allocations: 189.2 kB / 253.8 MB, free: 4.773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.01281, allocations: 98.27 kB / 253.9 MB, free: 4.676 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/0.01284, allocations: 8.5 kB / 253.9 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.01287, allocations: 39.06 kB / 254 MB, free: 4.621 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.01287, allocations: 0 / 254 MB, free: 4.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.002886/0.01576, allocations: 1.333 MB / 255.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.01579, allocations: 63.84 kB / 255.4 MB, free: 3.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.01594, allocations: 209.1 kB / 255.6 MB, free: 2.938 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.01597, allocations: 45.58 kB / 255.6 MB, free: 2.887 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.01602, allocations: 129.1 kB / 255.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.01614, allocations: 194.3 kB / 255.9 MB, free: 2.566 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.143e-05/0.01623, allocations: 90.14 kB / 256 MB, free: 2.473 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.01636, allocations: 338.8 kB / 256.4 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.01648, allocations: 71.8 kB / 256.4 MB, free: 2.062 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.01659, allocations: 137.7 kB / 256.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.01679, allocations: 205.2 kB / 256.8 MB, free: 1.707 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01679, allocations: 0 / 256.8 MB, free: 1.707 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003139/0.0171, allocations: 306.8 kB / 257.1 MB, free: 1.395 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.01711, allocations: 4 kB / 257.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.01711, allocations: 0 / 257.1 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.01754, allocations: 222.6 kB / 257.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.0177, allocations: 79.88 kB / 257.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.01937, allocations: 2.082 MB / 259.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.01947, allocations: 19.98 kB / 259.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.01949, allocations: 12 kB / 259.5 MB, free: 14.9 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 9.109e-05/0.01959, allocations: 144.3 kB / 259.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/0.01964, allocations: 35.97 kB / 259.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.01968, allocations: 47.31 kB / 259.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.01968, allocations: 7.938 kB / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.01969, allocations: 0 / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.01969, allocations: 8.016 kB / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007212/0.02041, allocations: 0.6714 MB / 260.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.02041, allocations: 4 kB / 260.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.02058, allocations: 71.94 kB / 260.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.02066, allocations: 55.75 kB / 260.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003169/0.02098, allocations: 224.1 kB / 260.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.021, allocations: 15.98 kB / 260.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/0.02268, allocations: 2.015 MB / 262.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.02269, allocations: 4 kB / 262.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.02318, allocations: 0.5181 MB / 263.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.02322, allocations: 15.94 kB / 263.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.02334, allocations: 19.98 kB / 263.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.02345, allocations: 72.34 kB / 263.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.02346, allocations: 15.98 kB / 263.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.859e-05/0.02352, allocations: 71.03 kB / 263.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02352, allocations: 0 / 263.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003186/0.02384, allocations: 151.9 kB / 263.6 MB, free: 10.61 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.001003/0.02485, allocations: 0.4906 MB / 264.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004852/0.02533, allocations: 478 kB / 264.6 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.02534, allocations: 4 kB / 264.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003185/0.02566, allocations: 400.4 kB / 265 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.02596, allocations: 273.9 kB / 265.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.02874, allocations: 0.6821 MB / 265.9 MB, free: 8.379 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.701e-05/0.02883, allocations: 114.3 kB / 266 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.02895, allocations: 67.08 kB / 266.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.0291, allocations: 107.3 kB / 266.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.0291, allocations: 0 / 266.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of Templates: time 0.1174/0.1465, allocations: 8.474 MB / 274.7 MB, free: 21.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.831190354190767]