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.001048/0.001048, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003586/0.003586, allocations: 157.7 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8652/0.8652, allocations: 177 MB / 204.9 MB, free: 5.73 MB / 186.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 1.453e-06/1.453e-06, allocations: 0 / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.063e-05/3.208e-05, allocations: 7.062 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003875/0.003908, allocations: 2.417 MB / 328.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.005586, allocations: 1.08 MB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.005745, allocations: 4 kB / 329.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002861/0.006031, allocations: 75.41 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004368/0.006468, allocations: 179.8 kB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.006864, allocations: 179.6 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.007341, allocations: 0.5334 MB / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.007508, allocations: 64.91 kB / 330.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.007989, allocations: 311.4 kB / 330.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003463/0.008335, allocations: 227.5 kB / 330.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.572e-05/0.008391, allocations: 44 kB / 330.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.008642, allocations: 139.8 kB / 331 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.008761, allocations: 123.6 kB / 331.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.008869, allocations: 151.6 kB / 331.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.009506, allocations: 0.5804 MB / 331.8 MB, free: 9.285 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.009511, allocations: 3.938 kB / 331.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.009513, allocations: 0 / 331.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.00952, allocations: 0 / 331.8 MB, free: 9.281 MB / 298.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.001046/0.01057, allocations: 0.6414 MB / 332.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.01061, allocations: 11.98 kB / 332.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.01088, allocations: 72.61 kB / 332.6 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.01131, allocations: 256.8 kB / 332.8 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.01144, allocations: 144 kB / 333 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.967e-05/0.01149, allocations: 40.27 kB / 333 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005473/0.01204, allocations: 451.2 kB / 333.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.01205, allocations: 192 / 333.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.01208, allocations: 16.12 kB / 333.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.01209, allocations: 4 kB / 333.5 MB, free: 7.562 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009177/0.01301, allocations: 462.3 kB / 333.9 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.01418, allocations: 0.8 MB / 334.7 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.01479, allocations: 369.3 kB / 335.1 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002863/0.01508, allocations: 202.3 kB / 335.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.01511, allocations: 8.5 kB / 335.3 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.01514, allocations: 39.06 kB / 335.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.01514, allocations: 0 / 335.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.00322/0.01836, allocations: 1.914 MB / 337.2 MB, free: 3.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.01841, allocations: 89.61 kB / 337.3 MB, free: 3.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.01864, allocations: 255.7 kB / 337.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.01867, allocations: 37.7 kB / 337.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.01876, allocations: 137.2 kB / 337.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.01886, allocations: 198.3 kB / 337.9 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.01898, allocations: 90.17 kB / 338 MB, free: 2.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.852e-05/0.01908, allocations: 342.8 kB / 338.4 MB, free: 2.504 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.01934, allocations: 192.9 kB / 338.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.01964, allocations: 273.6 kB / 338.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005083/0.02015, allocations: 379.6 kB / 339.2 MB, free: 1.656 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.02015, allocations: 0 / 339.2 MB, free: 1.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008052/0.02096, allocations: 0.5965 MB / 339.8 MB, free: 1.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.02098, allocations: 4 kB / 339.8 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.02099, allocations: 0 / 339.8 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005318/0.02152, allocations: 306.6 kB / 340.1 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.02169, allocations: 67.88 kB / 340.1 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.02469, allocations: 2.762 MB / 342.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.02486, allocations: 28.05 kB / 342.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.02489, allocations: 31.86 kB / 343 MB, free: 13.77 MB / 314.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 0.0001609/0.02505, allocations: 161.8 kB / 343.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.434e-05/0.02511, allocations: 27.81 kB / 343.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.02516, allocations: 47.31 kB / 343.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.02516, allocations: 7.984 kB / 343.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.02517, allocations: 7.938 kB / 343.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.02517, allocations: 0 / 343.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.02656, allocations: 1.138 MB / 344.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.02657, allocations: 0 / 344.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.02675, allocations: 71.88 kB / 344.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/0.02718, allocations: 280.7 kB / 344.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.976e-05/0.02721, allocations: 19.98 kB / 344.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.02954, allocations: 2.674 MB / 347.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.02954, allocations: 0 / 347.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.03108, allocations: 0.9332 MB / 348.3 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.0312, allocations: 79.89 kB / 348.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.03124, allocations: 19.98 kB / 348.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.03138, allocations: 31.95 kB / 348.5 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.03153, allocations: 76.3 kB / 348.5 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.03155, allocations: 23.92 kB / 348.6 MB, free: 7.996 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.0317, allocations: 189.5 kB / 348.7 MB, free: 7.812 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0317, allocations: 0 / 348.7 MB, free: 7.812 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000473/0.03218, allocations: 147.9 kB / 348.9 MB, free: 7.668 MB / 314.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.0007751/0.03295, allocations: 410.6 kB / 349.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.03399, allocations: 0.6679 MB / 350 MB, free: 6.707 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.03399, allocations: 0 / 350 MB, free: 6.707 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.03447, allocations: 460.4 kB / 350.4 MB, free: 6.246 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.0348, allocations: 51.97 kB / 350.5 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.03594, allocations: 0.7757 MB / 351.2 MB, free: 5.383 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.0361, allocations: 194.8 kB / 351.4 MB, free: 5.168 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.03621, allocations: 48.41 kB / 351.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.03621, allocations: 0 / 351.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of Templates: time 0.00724/0.04345, allocations: 6.814 MB / 358.3 MB, free: 14.31 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.841609433293343]