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.0007386/0.0007386, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009191/0.001658, allocations: 449.7 kB / 10.37 MB, free: 324 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.00065/0.00065, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008047/0.001455, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.013/1.013, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09084/1.104, allocations: 53.86 MB / 243.7 MB, free: 14.91 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.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.893e-06/1.893e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.338e-05/1.527e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003445/0.00346, allocations: 2.512 MB / 247.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.005117, allocations: 1.057 MB / 248.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.005226, allocations: 4 kB / 248.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.005435, allocations: 67.42 kB / 248.6 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.005765, allocations: 159.1 kB / 248.8 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.006074, allocations: 163.6 kB / 249 MB, free: 9.684 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.00653, allocations: 474.5 kB / 249.4 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.006658, allocations: 58.78 kB / 249.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003504/0.007008, allocations: 303.5 kB / 249.8 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.007283, allocations: 199.6 kB / 250 MB, free: 8.668 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.193e-05/0.007345, allocations: 43.94 kB / 250 MB, free: 8.625 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.007575, allocations: 123.9 kB / 250.1 MB, free: 8.504 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.007682, allocations: 71.8 kB / 250.2 MB, free: 8.434 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.007808, allocations: 95.81 kB / 250.3 MB, free: 8.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004563/0.008264, allocations: 354.8 kB / 250.6 MB, free: 7.992 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.459e-05/0.008279, allocations: 4 kB / 250.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.008281, allocations: 3.984 kB / 250.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.008299, allocations: 0 / 250.6 MB, free: 7.984 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009999/0.009299, allocations: 0.628 MB / 251.3 MB, free: 7.332 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.009331, allocations: 8.625 kB / 251.3 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.009642, allocations: 150 kB / 251.4 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.009993, allocations: 222.8 kB / 251.7 MB, free: 6.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.01011, allocations: 140 kB / 251.8 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.01017, allocations: 28.38 kB / 251.8 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.01063, allocations: 315.7 kB / 252.1 MB, free: 6.387 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.01064, allocations: 192 / 252.1 MB, free: 6.387 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.01067, allocations: 20.12 kB / 252.1 MB, free: 6.367 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.01068, allocations: 12 kB / 252.2 MB, free: 6.355 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/0.01104, allocations: 183.2 kB / 252.3 MB, free: 6.176 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.01247, allocations: 0.8161 MB / 253.1 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.0128, allocations: 166.5 kB / 253.3 MB, free: 5.156 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.01294, allocations: 81.48 kB / 253.4 MB, free: 5.074 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.01298, allocations: 19.89 kB / 253.4 MB, free: 5.055 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.013, allocations: 34.55 kB / 253.4 MB, free: 5.012 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.013, allocations: 0 / 253.4 MB, free: 5.012 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002415/0.01542, allocations: 1.14 MB / 254.6 MB, free: 3.816 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.01545, allocations: 59.41 kB / 254.6 MB, free: 3.746 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.01563, allocations: 204.1 kB / 254.8 MB, free: 3.531 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.01567, allocations: 37.7 kB / 254.9 MB, free: 3.488 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.709e-05/0.01573, allocations: 132.8 kB / 255 MB, free: 3.355 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.636e-05/0.01583, allocations: 154.7 kB / 255.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.01594, allocations: 82.14 kB / 255.2 MB, free: 3.113 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.01604, allocations: 346.7 kB / 255.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.01616, allocations: 59.8 kB / 255.6 MB, free: 2.707 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.01632, allocations: 144.3 kB / 255.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.01658, allocations: 197.7 kB / 256 MB, free: 2.332 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01658, allocations: 0 / 256 MB, free: 2.332 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004379/0.01702, allocations: 290.1 kB / 256.3 MB, free: 2.035 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.01703, allocations: 8 kB / 256.3 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.01704, allocations: 3.938 kB / 256.3 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004527/0.01749, allocations: 225.3 kB / 256.5 MB, free: 1.801 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.01769, allocations: 67.94 kB / 256.6 MB, free: 1.734 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.01941, allocations: 2.029 MB / 258.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.01951, allocations: 19.98 kB / 258.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.01954, allocations: 19.97 kB / 258.6 MB, free: 15.58 MB / 266.7 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 9.326e-05/0.01963, allocations: 136.6 kB / 258.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.01968, allocations: 35.97 kB / 258.8 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.01972, allocations: 42.94 kB / 258.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.01972, allocations: 4 kB / 258.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.01972, allocations: 0 / 258.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01973, allocations: 3.984 kB / 258.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.02038, allocations: 0.5709 MB / 259.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.02038, allocations: 4 kB / 259.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.02052, allocations: 63.88 kB / 259.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.633e-05/0.02059, allocations: 47.75 kB / 259.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003177/0.02091, allocations: 212 kB / 259.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.02093, allocations: 15.98 kB / 259.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.02251, allocations: 2.026 MB / 261.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.02252, allocations: 0 / 261.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.02295, allocations: 469.7 kB / 262.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.02298, allocations: 4 kB / 262.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.02309, allocations: 23.92 kB / 262.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.97e-05/0.02318, allocations: 59.88 kB / 262.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.0232, allocations: 16.05 kB / 262.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.817e-05/0.02326, allocations: 69.8 kB / 262.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02326, allocations: 0 / 262.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003192/0.02358, allocations: 131.9 kB / 262.5 MB, free: 11.52 MB / 266.7 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.0011/0.02468, allocations: 0.5024 MB / 263 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004718/0.02515, allocations: 437.2 kB / 263.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.02516, allocations: 8.25 kB / 263.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.02543, allocations: 350.5 kB / 263.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.02566, allocations: 103 kB / 263.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.0279, allocations: 0.5693 MB / 264.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.109e-05/0.02796, allocations: 113.2 kB / 264.6 MB, free: 9.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.02807, allocations: 58.94 kB / 264.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.0282, allocations: 103.2 kB / 264.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0282, allocations: 0 / 264.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of Templates: time 0.008826/0.03703, allocations: 7.785 MB / 272.5 MB, free: 1.672 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6361884232610464]