Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 52.02 kB / 368.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2419, allocations: 52.15 MB / 420.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003999/0.2459, allocations: 2.452 MB / 423.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2479, allocations: 0.9753 MB / 424.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.248, allocations: 4 kB / 424.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.2483, allocations: 55.5 kB / 424.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005159/0.2488, allocations: 159.1 kB / 424.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.2492, allocations: 187.6 kB / 424.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005706/0.2498, allocations: 470.5 kB / 425.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.2499, allocations: 64.95 kB / 425.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.2502, allocations: 207.4 kB / 425.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003593/0.2506, allocations: 259.1 kB / 425.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.978e-05/0.2507, allocations: 40 kB / 425.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.2509, allocations: 127.9 kB / 425.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.2511, allocations: 103.7 kB / 425.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.2513, allocations: 187.1 kB / 426.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006539/0.2519, allocations: 0.4955 MB / 426.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2519, allocations: 0 / 426.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2519, allocations: 7.938 kB / 426.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.2519, allocations: 0 / 426.6 MB, free: 9.359 MB / 334.1 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.001425/0.2534, allocations: 0.6817 MB / 427.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.2534, allocations: 12.03 kB / 427.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003346/0.2537, allocations: 52.69 kB / 427.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006734/0.2544, allocations: 319.7 kB / 427.7 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.2546, allocations: 88.61 kB / 427.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.2546, allocations: 28.38 kB / 427.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008648/0.2555, allocations: 417.1 kB / 428.2 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.2555, allocations: 7.938 kB / 428.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.2556, allocations: 16 kB / 428.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.2556, allocations: 8 kB / 428.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.2566, allocations: 470.2 kB / 428.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.2586, allocations: 0.9737 MB / 429.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008717/0.2594, allocations: 377.9 kB / 430 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/0.2599, allocations: 218 kB / 430.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.535e-05/0.26, allocations: 4.438 kB / 430.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.522e-05/0.26, allocations: 43.12 kB / 430.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.26, allocations: 3.938 kB / 430.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005523/0.2655, allocations: 2.153 MB / 432.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.2656, allocations: 85.66 kB / 432.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.266, allocations: 271 kB / 432.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.266, allocations: 41.7 kB / 432.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2662, allocations: 133.3 kB / 433 MB, free: 2.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.2664, allocations: 190.4 kB / 433.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.2665, allocations: 86.25 kB / 433.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2667, allocations: 342.8 kB / 433.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.2671, allocations: 197 kB / 433.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000489/0.2676, allocations: 248.6 kB / 434 MB, free: 1.613 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008682/0.2685, allocations: 392.3 kB / 434.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2685, allocations: 0 / 434.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001437/0.2699, allocations: 0.6097 MB / 435 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.27, allocations: 11.88 kB / 435 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.27, allocations: 0 / 435 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008279/0.2708, allocations: 262.6 kB / 435.3 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.2711, allocations: 67.89 kB / 435.3 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/0.2754, allocations: 2.925 MB / 438.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.2758, allocations: 32.03 kB / 438.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.2758, allocations: 16 kB / 438.3 MB, free: 13.15 MB / 350.1 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.0002242/0.2761, allocations: 161.7 kB / 438.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.2762, allocations: 35.75 kB / 438.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.2763, allocations: 47.3 kB / 438.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2763, allocations: 4 kB / 438.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2763, allocations: 4 kB / 438.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2763, allocations: 3.984 kB / 438.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002367/0.2786, allocations: 1.27 MB / 439.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2787, allocations: 0 / 439.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.279, allocations: 67.89 kB / 439.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007356/0.2797, allocations: 244.7 kB / 440.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.2798, allocations: 11.98 kB / 440.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004211/0.284, allocations: 2.842 MB / 443 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.284, allocations: 7.969 kB / 443 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.286, allocations: 0.9469 MB / 443.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.2862, allocations: 148.9 kB / 444.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/0.2863, allocations: 15.94 kB / 444.1 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.2866, allocations: 27.97 kB / 444.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.2868, allocations: 68.33 kB / 444.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.2868, allocations: 16 kB / 444.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000263/0.2871, allocations: 200.7 kB / 444.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2871, allocations: 4 kB / 444.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006932/0.2878, allocations: 155.9 kB / 444.5 MB, free: 6.656 MB / 350.1 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.0002591/0.288, allocations: 139.9 kB / 444.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.2896, allocations: 0.6721 MB / 445.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2896, allocations: 0 / 445.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.2905, allocations: 455.7 kB / 445.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004454/0.2909, allocations: 51.42 kB / 445.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2926, allocations: 0.8152 MB / 446.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.2931, allocations: 0.7929 MB / 447.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002285/0.2933, allocations: 70.92 kB / 447.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.2934, allocations: 31.42 kB / 447.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2934, allocations: 0 / 447.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of Templates: time 0.01636/0.3098, allocations: 8.185 MB / 455.7 MB, free: 11.38 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.595839370042086]