Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001673/0.001673, allocations: 99.97 kB / 21.18 MB, free: 0.6562 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.001834/0.001834, allocations: 185.5 kB / 24.46 MB, free: 3.977 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.484/1.484, allocations: 225.7 MB / 253.3 MB, free: 12.84 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 51.94 kB / 371.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2767, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004151/0.2809, allocations: 2.57 MB / 426.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.283, allocations: 1.049 MB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.2832, allocations: 4 kB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.2835, allocations: 75.36 kB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006301/0.2841, allocations: 186.8 kB / 427.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.2846, allocations: 251.2 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006572/0.2853, allocations: 0.643 MB / 428.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.2855, allocations: 91.84 kB / 428.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003898/0.2859, allocations: 295.2 kB / 429 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.2863, allocations: 326.9 kB / 429.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.544e-05/0.2864, allocations: 52 kB / 429.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.2867, allocations: 139.8 kB / 429.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001919/0.2869, allocations: 139.6 kB / 429.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.2871, allocations: 215.1 kB / 429.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007841/0.2879, allocations: 0.6516 MB / 430.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2879, allocations: 0 / 430.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2879, allocations: 0 / 430.5 MB, free: 7.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.2879, allocations: 4 kB / 430.5 MB, free: 7.82 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001656/0.2896, allocations: 0.739 MB / 431.2 MB, free: 7.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.2896, allocations: 8.031 kB / 431.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.29, allocations: 72.59 kB / 431.3 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006674/0.2906, allocations: 312.7 kB / 431.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.2908, allocations: 144.4 kB / 431.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.2909, allocations: 44.38 kB / 431.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.292, allocations: 0.5857 MB / 432.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.292, allocations: 8 kB / 432.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.953e-05/0.292, allocations: 16 kB / 432.4 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.292, allocations: 8 kB / 432.4 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2933, allocations: 0.6245 MB / 433 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.2957, allocations: 1.056 MB / 434.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2968, allocations: 0.5096 MB / 434.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006139/0.2974, allocations: 298.1 kB / 434.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.2975, allocations: 4.5 kB / 434.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.2975, allocations: 47 kB / 434.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.335e-06/0.2975, allocations: 0 / 434.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006716/0.3043, allocations: 2.556 MB / 437.5 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.3043, allocations: 89.7 kB / 437.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.3047, allocations: 309.8 kB / 437.9 MB, free: 200 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.959e-05/0.3048, allocations: 41.7 kB / 437.9 MB, free: 152 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3049, allocations: 165.8 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.3052, allocations: 242 kB / 438.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.3054, allocations: 114.3 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3056, allocations: 346.8 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006461/0.3062, allocations: 293.2 kB / 439 MB, free: 14.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007008/0.3069, allocations: 380.2 kB / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.308, allocations: 0.5229 MB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.308, allocations: 0 / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001865/0.3099, allocations: 0.8698 MB / 440.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3099, allocations: 6.5 kB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3099, allocations: 4 kB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.3111, allocations: 479.2 kB / 441.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.3115, allocations: 87.81 kB / 441.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.313, allocations: 1.084 MB / 442.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.3134, allocations: 60.03 kB / 442.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.314e-05/0.3135, allocations: 27.98 kB / 442.5 MB, free: 11.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002898/0.3138, allocations: 173.7 kB / 442.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.886e-05/0.3139, allocations: 39.77 kB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.3141, allocations: 63.73 kB / 442.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.3141, allocations: 12 kB / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3141, allocations: 0 / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3141, allocations: 3.984 kB / 442.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.3175, allocations: 1.567 MB / 444.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3175, allocations: 0 / 444.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.3179, allocations: 79.88 kB / 444.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009947/0.3189, allocations: 452.5 kB / 444.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.3189, allocations: 15.98 kB / 444.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.3203, allocations: 1.04 MB / 446 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3203, allocations: 3.984 kB / 446 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.3229, allocations: 1.297 MB / 447.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.3232, allocations: 103.7 kB / 447.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.295e-05/0.3233, allocations: 20 kB / 447.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000423/0.3237, allocations: 51.88 kB / 447.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.324, allocations: 92.47 kB / 447.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.725e-05/0.324, allocations: 19.98 kB / 447.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002899/0.3243, allocations: 229.2 kB / 447.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3243, allocations: 0 / 447.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005235/0.3249, allocations: 147.9 kB / 447.9 MB, free: 5.941 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002776/0.3251, allocations: 147.6 kB / 448.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.3268, allocations: 0.6702 MB / 448.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3268, allocations: 8.062 kB / 448.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008329/0.3276, allocations: 348.6 kB / 449.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.3281, allocations: 56.53 kB / 449.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.3309, allocations: 1.156 MB / 450.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.3311, allocations: 214 kB / 450.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3313, allocations: 47.41 kB / 450.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3313, allocations: 0 / 450.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of Templates: time 0.01195/0.3432, allocations: 7.336 MB / 457.9 MB, free: 11.93 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 8.746577081736177]