Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008675/0.0008675, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008945/0.0008945, allocations: 167 kB / 25.45 MB, free: 8.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8667/0.8667, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 299.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.853e-05/3.069e-05, allocations: 2.281 kB / 299.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002938/0.002969, allocations: 2.214 MB / 301.9 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.00452, allocations: 0.9294 MB / 302.8 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.004692, allocations: 4 kB / 302.8 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.004915, allocations: 43.58 kB / 302.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005939/0.005508, allocations: 147 kB / 303 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.005841, allocations: 171.6 kB / 303.2 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004134/0.006254, allocations: 430.5 kB / 303.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.006408, allocations: 44.91 kB / 303.7 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.006684, allocations: 251.6 kB / 303.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.006928, allocations: 191.6 kB / 304.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.692e-05/0.006975, allocations: 32 kB / 304.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.007163, allocations: 119.8 kB / 304.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.007269, allocations: 95.7 kB / 304.3 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.007371, allocations: 119.7 kB / 304.4 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004954/0.007867, allocations: 494.6 kB / 304.9 MB, free: 1.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.007873, allocations: 0 / 304.9 MB, free: 1.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.007875, allocations: 0 / 304.9 MB, free: 1.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.007883, allocations: 0 / 304.9 MB, free: 1.668 MB / 282.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.0008905/0.008773, allocations: 0.5635 MB / 305.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.008811, allocations: 15.92 kB / 305.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.009033, allocations: 52.72 kB / 305.6 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.009448, allocations: 257.2 kB / 305.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.009564, allocations: 144 kB / 305.9 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.009609, allocations: 24.38 kB / 306 MB, free: 0.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.01013, allocations: 404.9 kB / 306.4 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.01015, allocations: 4.188 kB / 306.4 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.01018, allocations: 12.12 kB / 306.4 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.01019, allocations: 8 kB / 306.4 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005081/0.0107, allocations: 410.2 kB / 306.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01203, allocations: 1.061 MB / 307.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.01249, allocations: 350.3 kB / 308.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.0127, allocations: 164.8 kB / 308.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.01273, allocations: 8.719 kB / 308.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.01276, allocations: 34.56 kB / 308.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.924e-06/0.01277, allocations: 0 / 308.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002937/0.0157, allocations: 1.679 MB / 310.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.01576, allocations: 96.8 kB / 310.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.01596, allocations: 238.2 kB / 310.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.01598, allocations: 37.7 kB / 310.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.911e-05/0.01606, allocations: 136.8 kB / 310.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.185e-05/0.01615, allocations: 154.9 kB / 310.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.933e-05/0.01625, allocations: 82.19 kB / 310.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.01634, allocations: 330.8 kB / 311.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.01655, allocations: 172.8 kB / 311.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.01682, allocations: 260.2 kB / 311.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.01722, allocations: 344.2 kB / 311.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.01722, allocations: 4 kB / 311.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006776/0.0179, allocations: 0.545 MB / 312.4 MB, free: 9.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.01792, allocations: 11.94 kB / 312.5 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.01793, allocations: 0 / 312.5 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004641/0.01839, allocations: 252.7 kB / 312.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.01853, allocations: 47.91 kB / 312.7 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.02106, allocations: 2.717 MB / 315.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.02121, allocations: 24 kB / 315.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.02123, allocations: 16 kB / 315.5 MB, free: 6.652 MB / 298.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.000141/0.02138, allocations: 157.7 kB / 315.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.02142, allocations: 27.8 kB / 315.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.786e-05/0.02147, allocations: 43 kB / 315.7 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.02147, allocations: 4 kB / 315.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.02147, allocations: 8.062 kB / 315.7 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.02148, allocations: 7.922 kB / 315.7 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.0228, allocations: 0.9452 MB / 316.7 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.0228, allocations: 4 kB / 316.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.02292, allocations: 43.91 kB / 316.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003733/0.02329, allocations: 236.7 kB / 317 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.02331, allocations: 19.98 kB / 317 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002264/0.02558, allocations: 2.672 MB / 319.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.02558, allocations: 0 / 319.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008755/0.02646, allocations: 0.8122 MB / 320.5 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-05/0.02655, allocations: 59.84 kB / 320.5 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.02657, allocations: 15.98 kB / 320.5 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.02669, allocations: 20.11 kB / 320.6 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.0268, allocations: 63.88 kB / 320.6 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.02681, allocations: 15.98 kB / 320.6 MB, free: 1.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001236/0.02694, allocations: 180.3 kB / 320.8 MB, free: 1.164 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02694, allocations: 0 / 320.8 MB, free: 1.164 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004114/0.02735, allocations: 139.9 kB / 321 MB, free: 1.027 MB / 298.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.0002189/0.02757, allocations: 143 kB / 321.1 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.02836, allocations: 0.6058 MB / 321.7 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02837, allocations: 0 / 321.7 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004132/0.02878, allocations: 422 kB / 322.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.02906, allocations: 31.97 kB / 322.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009278/0.02998, allocations: 0.6815 MB / 322.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.0301, allocations: 171.7 kB / 323 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.6e-05/0.03018, allocations: 32.48 kB / 323 MB, free: 14.88 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.03018, allocations: 3.938 kB / 323 MB, free: 14.87 MB / 314.7 MB Notification: Performance of Templates: time 0.005424/0.0356, allocations: 5.374 MB / 328.4 MB, free: 9.488 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.472822523675859]