Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0008228/0.0008228, allocations: 91.61 kB / 22.18 MB, free: 2.383 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.000837/0.000837, allocations: 157.5 kB / 25.45 MB, free: 9.352 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.8453/0.8453, allocations: 158.6 MB / 187.2 MB, free: 3.047 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.588e-05/2.755e-05, allocations: 2.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002383/0.00241, allocations: 2.288 MB / 302 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.003908, allocations: 0.9723 MB / 302.9 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.004039, allocations: 7.938 kB / 303 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.004228, allocations: 51.5 kB / 303 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004549/0.004683, allocations: 163 kB / 303.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.004945, allocations: 183.6 kB / 303.3 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003426/0.005288, allocations: 486.3 kB / 303.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.005423, allocations: 61.12 kB / 303.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.005693, allocations: 283.4 kB / 304.2 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.005911, allocations: 207.5 kB / 304.4 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.005954, allocations: 40 kB / 304.4 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.006113, allocations: 127.8 kB / 304.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.769e-05/0.006211, allocations: 107.6 kB / 304.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.78e-05/0.006299, allocations: 135.7 kB / 304.8 MB, free: 1.828 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007069/0.007005, allocations: 0.5258 MB / 305.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.007008, allocations: 4 kB / 305.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.007009, allocations: 0 / 305.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.007014, allocations: 0 / 305.3 MB, free: 1.297 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.000831/0.007845, allocations: 0.6181 MB / 305.9 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.007879, allocations: 15.92 kB / 305.9 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.00806, allocations: 48.73 kB / 306 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.008387, allocations: 261 kB / 306.2 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.008488, allocations: 144 kB / 306.4 MB, free: 144 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.008535, allocations: 36.36 kB / 306.4 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.009031, allocations: 435.3 kB / 306.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.009046, allocations: 192 / 306.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.009073, allocations: 20.12 kB / 306.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.00908, allocations: 8 kB / 306.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005436/0.009624, allocations: 458.3 kB / 307.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009847/0.01061, allocations: 0.7961 MB / 308.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005243/0.01113, allocations: 381.2 kB / 308.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002592/0.01139, allocations: 210.2 kB / 308.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.01142, allocations: 8.5 kB / 308.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.01144, allocations: 35.06 kB / 308.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.362e-06/0.01144, allocations: 4 kB / 308.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.002874/0.01431, allocations: 1.922 MB / 310.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.01435, allocations: 85.61 kB / 310.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.01453, allocations: 254.1 kB / 311 MB, free: 11.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.01456, allocations: 37.7 kB / 311 MB, free: 11.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.01462, allocations: 137.2 kB / 311.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.645e-05/0.01472, allocations: 194.3 kB / 311.3 MB, free: 11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-05/0.01481, allocations: 90.11 kB / 311.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.01489, allocations: 338.8 kB / 311.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002477/0.01514, allocations: 200.9 kB / 311.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.01567, allocations: 265.7 kB / 312.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004549/0.01612, allocations: 391.6 kB / 312.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01613, allocations: 0 / 312.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0006957/0.01682, allocations: 0.6043 MB / 313.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.01684, allocations: 4 kB / 313.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.01684, allocations: 0 / 313.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004175/0.01726, allocations: 253.9 kB / 313.4 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.01741, allocations: 71.89 kB / 313.5 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.01984, allocations: 2.755 MB / 316.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.01998, allocations: 28 kB / 316.3 MB, free: 5.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.02001, allocations: 24 kB / 316.3 MB, free: 5.863 MB / 298.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.0001229/0.02013, allocations: 157.8 kB / 316.5 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.02017, allocations: 35.75 kB / 316.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.02022, allocations: 47.3 kB / 316.6 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.02022, allocations: 8 kB / 316.6 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.02023, allocations: 3.938 kB / 316.6 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.02023, allocations: 3.938 kB / 316.6 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.02147, allocations: 1.115 MB / 317.7 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.02147, allocations: 0 / 317.7 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.02163, allocations: 67.89 kB / 317.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003412/0.02197, allocations: 244.6 kB / 318 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.022, allocations: 15.98 kB / 318 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.02436, allocations: 2.677 MB / 320.7 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.02436, allocations: 0 / 320.7 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.02538, allocations: 0.941 MB / 321.6 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.02548, allocations: 71.78 kB / 321.7 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.02551, allocations: 12 kB / 321.7 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.02564, allocations: 31.97 kB / 321.7 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.02575, allocations: 72.48 kB / 321.8 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.02577, allocations: 19.98 kB / 321.8 MB, free: 172 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.02589, allocations: 184.2 kB / 322 MB, free: 15.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02589, allocations: 0 / 322 MB, free: 15.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003566/0.02624, allocations: 151.9 kB / 322.2 MB, free: 15.84 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.000183/0.02643, allocations: 147.1 kB / 322.3 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007894/0.02722, allocations: 0.6796 MB / 323 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.02722, allocations: 0 / 323 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004354/0.02765, allocations: 464.4 kB / 323.4 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.02792, allocations: 47.56 kB / 323.5 MB, free: 14.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009225/0.02885, allocations: 0.7718 MB / 324.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.02896, allocations: 190.9 kB / 324.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.325e-05/0.02904, allocations: 40.47 kB / 324.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02904, allocations: 0 / 324.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of Templates: time 0.00553/0.03457, allocations: 6.083 MB / 330.6 MB, free: 7.348 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.042466778308153]