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.001407/0.001407, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001563/0.001563, allocations: 183.7 kB / 23.7 MB, free: 4.191 MB / 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.514/1.514, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.00171/0.00171, allocations: 55.91 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2418, allocations: 52.19 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003703/0.2455, allocations: 2.302 MB / 425.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.2472, allocations: 0.9208 MB / 426.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.2474, allocations: 4 kB / 426.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.2476, allocations: 51.52 kB / 426.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005059/0.2481, allocations: 163 kB / 426.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.2485, allocations: 183.6 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005127/0.249, allocations: 474.4 kB / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.2491, allocations: 65.12 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.2494, allocations: 211.4 kB / 427.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.2497, allocations: 227.2 kB / 427.6 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.237e-05/0.2498, allocations: 43.98 kB / 427.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.2501, allocations: 123.9 kB / 427.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2502, allocations: 103.7 kB / 427.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.2504, allocations: 159.3 kB / 428 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.251, allocations: 0.4965 MB / 428.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.251, allocations: 7.938 kB / 428.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.251, allocations: 0 / 428.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.251, allocations: 4 kB / 428.6 MB, free: 8.949 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.001288/0.2523, allocations: 0.6026 MB / 429.2 MB, free: 8.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2523, allocations: 12.03 kB / 429.2 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.2526, allocations: 56.69 kB / 429.2 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.2532, allocations: 250.9 kB / 429.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.2533, allocations: 144 kB / 429.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.2534, allocations: 36.38 kB / 429.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008416/0.2542, allocations: 442.7 kB / 430.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.2542, allocations: 3.953 kB / 430.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.2543, allocations: 12 kB / 430.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2543, allocations: 4 kB / 430.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.2553, allocations: 466.3 kB / 430.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.257, allocations: 0.7884 MB / 431.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008555/0.2579, allocations: 373 kB / 431.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.2583, allocations: 214 kB / 431.9 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.2584, allocations: 8.438 kB / 431.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.2584, allocations: 42.94 kB / 432 MB, free: 5.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.893e-06/0.2584, allocations: 0 / 432 MB, free: 5.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005453/0.2639, allocations: 1.929 MB / 433.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.2639, allocations: 85.61 kB / 434 MB, free: 3.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.2643, allocations: 233 kB / 434.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.2643, allocations: 37.7 kB / 434.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.2644, allocations: 145.1 kB / 434.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.2646, allocations: 186.4 kB / 434.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.2647, allocations: 94.17 kB / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2649, allocations: 338.8 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.2654, allocations: 196.9 kB / 435.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.2659, allocations: 269.6 kB / 435.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008688/0.2668, allocations: 399.3 kB / 435.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2668, allocations: 32 / 435.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001361/0.2681, allocations: 0.6004 MB / 436.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2682, allocations: 8 kB / 436.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2682, allocations: 0 / 436.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000779/0.2689, allocations: 259.7 kB / 436.7 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/0.2693, allocations: 63.89 kB / 436.8 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004319/0.2736, allocations: 2.77 MB / 439.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.2739, allocations: 27.97 kB / 439.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.274, allocations: 16 kB / 439.6 MB, free: 13.54 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.0002267/0.2742, allocations: 163.9 kB / 439.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.2743, allocations: 39.81 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.2744, allocations: 47.3 kB / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2744, allocations: 4 kB / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2744, allocations: 0 / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.2744, allocations: 4 kB / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/0.2768, allocations: 1.11 MB / 440.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2768, allocations: 32 / 440.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.2771, allocations: 71.89 kB / 441 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007043/0.2778, allocations: 236.7 kB / 441.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.2779, allocations: 15.98 kB / 441.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004036/0.2819, allocations: 2.678 MB / 443.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2819, allocations: 0 / 443.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.2838, allocations: 0.9451 MB / 444.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.284, allocations: 75.77 kB / 444.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.199e-05/0.2841, allocations: 12 kB / 445 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.2844, allocations: 27.97 kB / 445 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.2846, allocations: 80.17 kB / 445.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.2846, allocations: 19.94 kB / 445.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.2849, allocations: 187.1 kB / 445.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2849, allocations: 0 / 445.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006369/0.2855, allocations: 155.9 kB / 445.4 MB, free: 7.523 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.0002729/0.2858, allocations: 135.2 kB / 445.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.2873, allocations: 0.6752 MB / 446.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2874, allocations: 0 / 446.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009302/0.2883, allocations: 460.1 kB / 446.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.2887, allocations: 43.97 kB / 446.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.2905, allocations: 0.8008 MB / 447.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2907, allocations: 194.8 kB / 447.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.2909, allocations: 66.94 kB / 447.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.2911, allocations: 31.42 kB / 447.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2911, allocations: 0 / 447.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of Templates: time 0.01526/0.3063, allocations: 7.351 MB / 455.2 MB, free: 13.76 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.7411604933440685]