Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.00119/0.00119, allocations: 84.67 kB / 21.43 MB, free: 3.105 MB / 18.57 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.0009172/0.0009172, allocations: 144.7 kB / 24.68 MB, free: 9.449 MB / 18.57 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 0.8445/0.8445, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 3.938 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.706e-05/1.843e-05, allocations: 6.219 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002187/0.002206, allocations: 2.221 MB / 321.9 MB, free: 3.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.003259, allocations: 0.8894 MB / 322.8 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.338e-05/0.003353, allocations: 4 kB / 322.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.003524, allocations: 39.59 kB / 322.8 MB, free: 2.688 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003752/0.003899, allocations: 147.1 kB / 323 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.004096, allocations: 175.6 kB / 323.1 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002752/0.004371, allocations: 426.6 kB / 323.6 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.004491, allocations: 56.83 kB / 323.6 MB, free: 1.895 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.004676, allocations: 251.5 kB / 323.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.004871, allocations: 183.6 kB / 324 MB, free: 1.469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.004909, allocations: 32 kB / 324.1 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.005047, allocations: 123.7 kB / 324.2 MB, free: 1.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.246e-05/0.005139, allocations: 99.69 kB / 324.3 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.005228, allocations: 119.7 kB / 324.4 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003963/0.005624, allocations: 486.6 kB / 324.9 MB, free: 0.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.005627, allocations: 4 kB / 324.9 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.005628, allocations: 4 kB / 324.9 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.005633, allocations: 0 / 324.9 MB, free: 0.6172 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.0007518/0.006385, allocations: 0.5558 MB / 325.4 MB, free: 32 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.006418, allocations: 12.92 kB / 325.5 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004448/0.006863, allocations: 52.72 kB / 325.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003039/0.007166, allocations: 241.3 kB / 325.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.007272, allocations: 144 kB / 325.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.007313, allocations: 28.33 kB / 325.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.007753, allocations: 408.9 kB / 326.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.007767, allocations: 4.188 kB / 326.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.007792, allocations: 16.06 kB / 326.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.0078, allocations: 8 kB / 326.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.00828, allocations: 418.2 kB / 326.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.009456, allocations: 1.057 MB / 327.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.009877, allocations: 333.5 kB / 328.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.01009, allocations: 176.8 kB / 328.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.01012, allocations: 4 kB / 328.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.01014, allocations: 35.28 kB / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.412e-06/0.01014, allocations: 0 / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002607/0.01275, allocations: 1.684 MB / 330 MB, free: 11.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.01279, allocations: 88.8 kB / 330.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.01296, allocations: 246.2 kB / 330.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.01298, allocations: 37.7 kB / 330.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.688e-05/0.01305, allocations: 132.9 kB / 330.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.757e-05/0.01313, allocations: 158.8 kB / 330.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.632e-05/0.01322, allocations: 86.14 kB / 330.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.0133, allocations: 338.8 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.01351, allocations: 164.9 kB / 331.3 MB, free: 9.973 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.01375, allocations: 264.2 kB / 331.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.01415, allocations: 344.1 kB / 331.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01415, allocations: 0 / 331.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006274/0.01478, allocations: 0.5412 MB / 332.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01479, allocations: 11.92 kB / 332.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.0148, allocations: 3.938 kB / 332.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006661/0.01546, allocations: 249.4 kB / 332.6 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.01559, allocations: 47.91 kB / 332.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.01791, allocations: 2.72 MB / 335.4 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.01803, allocations: 28 kB / 335.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.01806, allocations: 16 kB / 335.5 MB, free: 5.613 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.0001116/0.01817, allocations: 149.8 kB / 335.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.01821, allocations: 31.75 kB / 335.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.01826, allocations: 43.06 kB / 335.7 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01826, allocations: 8 kB / 335.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.01826, allocations: 0 / 335.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01827, allocations: 7.922 kB / 335.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.01931, allocations: 0.9418 MB / 336.6 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.01932, allocations: 0 / 336.6 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.01943, allocations: 47.91 kB / 336.7 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.01979, allocations: 241.1 kB / 336.9 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.01981, allocations: 11.98 kB / 336.9 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002139/0.02195, allocations: 2.669 MB / 339.6 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.02195, allocations: 4.031 kB / 339.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.02309, allocations: 0.8119 MB / 340.4 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.524e-05/0.02317, allocations: 63.92 kB / 340.5 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.0232, allocations: 16 kB / 340.5 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.02332, allocations: 23.97 kB / 340.5 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-05/0.02341, allocations: 59.88 kB / 340.6 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.02343, allocations: 19.98 kB / 340.6 MB, free: 304 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001168/0.02355, allocations: 176.3 kB / 340.8 MB, free: 128 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02355, allocations: 0 / 340.8 MB, free: 128 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003672/0.02391, allocations: 140 kB / 340.9 MB, free: 15.98 MB / 314.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.0001645/0.02408, allocations: 143.1 kB / 341 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007385/0.02482, allocations: 0.6021 MB / 341.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.02482, allocations: 0 / 341.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003776/0.0252, allocations: 422 kB / 342.1 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.02547, allocations: 47.42 kB / 342.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.02627, allocations: 0.6731 MB / 342.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.02637, allocations: 175.8 kB / 342.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.996e-05/0.02644, allocations: 32.48 kB / 343 MB, free: 13.83 MB / 314.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02644, allocations: 0 / 343 MB, free: 13.83 MB / 314.7 MB Notification: Performance of Templates: time 0.005023/0.03147, allocations: 5.374 MB / 348.4 MB, free: 8.461 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.1735064052045345]