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.0009275/0.0009275, allocations: 85.91 kB / 22.22 MB, free: 2.281 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.001031/0.001031, allocations: 163.4 kB / 25.61 MB, free: 8.879 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.9814/0.9814, allocations: 177 MB / 205.9 MB, free: 4.461 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.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.543e-06/1.543e-06, allocations: 0 / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.906e-05, allocations: 6.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00287/0.00289, allocations: 2.452 MB / 276.6 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.004432, allocations: 1.029 MB / 277.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.004562, allocations: 4 kB / 277.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.00482, allocations: 64.88 kB / 277.7 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.005258, allocations: 154.6 kB / 277.8 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.005571, allocations: 171.6 kB / 278 MB, free: 432 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.005974, allocations: 482.5 kB / 278.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.006105, allocations: 44.91 kB / 278.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.006346, allocations: 275.5 kB / 278.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.006596, allocations: 211.5 kB / 279 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.764e-05/0.006643, allocations: 44 kB / 279 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.006818, allocations: 119.9 kB / 279.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.006921, allocations: 111.7 kB / 279.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.007019, allocations: 131.7 kB / 279.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.007408, allocations: 410.5 kB / 279.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.007412, allocations: 3.984 kB / 279.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.007413, allocations: 0 / 279.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.007418, allocations: 0 / 279.8 MB, free: 14.62 MB / 266.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.0007843/0.008202, allocations: 0.6906 MB / 280.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.008232, allocations: 8.031 kB / 280.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.008453, allocations: 80.67 kB / 280.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.008766, allocations: 253.6 kB / 280.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.008869, allocations: 140 kB / 280.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.008914, allocations: 36.38 kB / 281 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.009282, allocations: 312.2 kB / 281.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.009297, allocations: 8.172 kB / 281.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.575e-05/0.009323, allocations: 16.06 kB / 281.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.009333, allocations: 11.98 kB / 281.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.009595, allocations: 200.3 kB / 281.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01073, allocations: 1.093 MB / 282.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.01102, allocations: 195.1 kB / 282.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.01113, allocations: 88.3 kB / 282.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.01115, allocations: 12 kB / 282.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.01118, allocations: 45.34 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.333e-06/0.01118, allocations: 0 / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002278/0.01346, allocations: 1.203 MB / 284.1 MB, free: 10 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.0135, allocations: 92.86 kB / 284.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.01365, allocations: 258.1 kB / 284.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.01368, allocations: 33.7 kB / 284.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.01376, allocations: 195.5 kB / 284.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.01385, allocations: 158.7 kB / 284.8 MB, free: 9.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.01395, allocations: 95.73 kB / 284.9 MB, free: 9.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.01408, allocations: 0.5118 MB / 285.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.01418, allocations: 68.94 kB / 285.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.01433, allocations: 169.2 kB / 285.7 MB, free: 8.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.01455, allocations: 214.3 kB / 285.9 MB, free: 8.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.01455, allocations: 3.938 kB / 285.9 MB, free: 8.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004409/0.01499, allocations: 357 kB / 286.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.015, allocations: 4 kB / 286.3 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.01501, allocations: 4.125 kB / 286.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.0154, allocations: 231.3 kB / 286.5 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.01553, allocations: 47.95 kB / 286.5 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.01762, allocations: 2.799 MB / 289.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.01774, allocations: 19.98 kB / 289.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.01777, allocations: 19.98 kB / 289.4 MB, free: 4.52 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 0.000124/0.01789, allocations: 180.5 kB / 289.5 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.738e-05/0.01796, allocations: 39.86 kB / 289.6 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.018, allocations: 42.98 kB / 289.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.01801, allocations: 7.938 kB / 289.6 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.01801, allocations: 0 / 289.6 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.01801, allocations: 4 kB / 289.6 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008478/0.01886, allocations: 0.78 MB / 290.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.01886, allocations: 0 / 290.4 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.01899, allocations: 43.91 kB / 290.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003464/0.01934, allocations: 215.4 kB / 290.7 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.01936, allocations: 15.98 kB / 290.7 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.02125, allocations: 2.775 MB / 293.5 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.02125, allocations: 4 kB / 293.5 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005885/0.02184, allocations: 0.557 MB / 294 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.32e-05/0.02194, allocations: 67.78 kB / 294.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.02197, allocations: 12 kB / 294.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.02209, allocations: 19.98 kB / 294.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.02219, allocations: 63.86 kB / 294.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.02221, allocations: 15.98 kB / 294.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.68e-05/0.0223, allocations: 179.1 kB / 294.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0223, allocations: 0 / 294.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003869/0.02268, allocations: 147.9 kB / 294.5 MB, free: 15.19 MB / 282.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.0007084/0.02339, allocations: 360.3 kB / 294.9 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000565/0.02396, allocations: 0.4999 MB / 295.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.02396, allocations: 0 / 295.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.0243, allocations: 428.3 kB / 295.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.02458, allocations: 63.95 kB / 295.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008648/0.02544, allocations: 0.5981 MB / 296.4 MB, free: 13.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.849e-05/0.02551, allocations: 117 kB / 296.6 MB, free: 13.15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.02563, allocations: 58.94 kB / 296.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.02577, allocations: 122.1 kB / 296.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of SimCode: time 5.82e-07/0.02578, allocations: 0 / 296.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of Templates: time 0.009461/0.03524, allocations: 7.948 MB / 304.7 MB, free: 5.082 MB / 282.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 -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: 3.0084491446614265]