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.00169/0.00169, allocations: 79.23 kB / 20.68 MB, free: 1.023 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.00172/0.00172, allocations: 145.1 kB / 23.93 MB, free: 4.176 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.409/1.409, allocations: 173.4 MB / 200.4 MB, free: 12.89 MB / 190.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 1.603e-06/1.603e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.285e-05/2.446e-05, allocations: 2.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003278/0.003302, allocations: 2.289 MB / 321.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.004963, allocations: 0.9207 MB / 322.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/0.005198, allocations: 11.94 kB / 322.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.005443, allocations: 54.41 kB / 322.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006589/0.006102, allocations: 162.9 kB / 322.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.006588, allocations: 181.2 kB / 322.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006034/0.007191, allocations: 482.8 kB / 323 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.007354, allocations: 66.81 kB / 323.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005368/0.007891, allocations: 288.8 kB / 323.3 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003907/0.008282, allocations: 213 kB / 323.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.008385, allocations: 38 kB / 323.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002615/0.008646, allocations: 118.3 kB / 323.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.00879, allocations: 114 kB / 323.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.008993, allocations: 131 kB / 323.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.00975, allocations: 0.5389 MB / 324.5 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.009753, allocations: 3.938 kB / 324.5 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.009754, allocations: 0 / 324.5 MB, free: 396 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.009769, allocations: 1.375 kB / 324.5 MB, free: 396 kB / 286.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.001529/0.0113, allocations: 0.6012 MB / 325.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.01134, allocations: 10.08 kB / 325.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003978/0.01174, allocations: 56.02 kB / 325.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006033/0.01234, allocations: 265.2 kB / 325.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.01252, allocations: 142.2 kB / 325.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.887e-05/0.0126, allocations: 33.33 kB / 325.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009786/0.01358, allocations: 440.8 kB / 326 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.0136, allocations: 1.562 kB / 326 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.123e-05/0.01365, allocations: 22.75 kB / 326 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.01366, allocations: 7.609 kB / 326 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.01479, allocations: 466.2 kB / 326.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.01667, allocations: 0.7814 MB / 327.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.0177, allocations: 377.8 kB / 327.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005007/0.0182, allocations: 212.4 kB / 327.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.01823, allocations: 10 kB / 327.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.01827, allocations: 38.3 kB / 327.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.01828, allocations: 1.188 kB / 327.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005932/0.02421, allocations: 1.935 MB / 329.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.439e-05/0.02429, allocations: 89 kB / 329.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.02467, allocations: 243.4 kB / 330.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.466e-05/0.02474, allocations: 36.91 kB / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.02486, allocations: 143.6 kB / 330.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.02507, allocations: 181.6 kB / 330.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.0253, allocations: 93.75 kB / 330.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.02547, allocations: 337.7 kB / 330.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/0.02603, allocations: 194.7 kB / 331.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/0.02665, allocations: 276.2 kB / 331.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000971/0.02762, allocations: 393.2 kB / 331.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.02762, allocations: 0 / 331.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001464/0.02908, allocations: 0.5916 MB / 332.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.0291, allocations: 4.562 kB / 332.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.02911, allocations: 1.188 kB / 332.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008877/0.03, allocations: 261.5 kB / 332.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003359/0.03033, allocations: 62.77 kB / 332.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004436/0.03477, allocations: 2.775 MB / 335.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.03515, allocations: 32.59 kB / 335.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.03521, allocations: 17.56 kB / 335.5 MB, free: 9.719 MB / 302.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.0002635/0.03547, allocations: 161.2 kB / 335.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.572e-05/0.03556, allocations: 33.59 kB / 335.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.03568, allocations: 44.94 kB / 335.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.03569, allocations: 5.938 kB / 335.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.0357, allocations: 3.938 kB / 335.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.03571, allocations: 3.984 kB / 335.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.03815, allocations: 1.12 MB / 336.9 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.03816, allocations: 4 kB / 336.9 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.0386, allocations: 63.36 kB / 337 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007709/0.03938, allocations: 244.3 kB / 337.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.03942, allocations: 15.73 kB / 337.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004066/0.04349, allocations: 2.669 MB / 339.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.04349, allocations: 0 / 339.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.04562, allocations: 0.949 MB / 340.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.0458, allocations: 67.78 kB / 340.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.068e-05/0.04587, allocations: 20.11 kB / 340.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.04618, allocations: 23.98 kB / 340.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.04637, allocations: 72.36 kB / 341 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.04642, allocations: 15.98 kB / 341 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.04666, allocations: 175.2 kB / 341.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.04666, allocations: 0 / 341.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007044/0.04736, allocations: 155.9 kB / 341.3 MB, free: 4.719 MB / 302.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.0003152/0.04767, allocations: 159.1 kB / 341.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.04937, allocations: 0.6679 MB / 342.2 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.04937, allocations: 4 kB / 342.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009616/0.05033, allocations: 468.5 kB / 342.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.0508, allocations: 43.91 kB / 342.7 MB, free: 3.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.05247, allocations: 0.7422 MB / 343.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.05273, allocations: 190.8 kB / 343.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002162/0.05294, allocations: 58.95 kB / 343.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.05306, allocations: 32.48 kB / 343.7 MB, free: 2.293 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.05306, allocations: 0 / 343.7 MB, free: 2.293 MB / 302.1 MB Notification: Performance of Templates: time 0.01589/0.06894, allocations: 7.038 MB / 350.7 MB, free: 11.31 MB / 318.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.496300965547562]