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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 104.6 kB / 19.61 MB, free: 2.707 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 195.5 kB / 22.76 MB, free: 5.48 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 251.4 MB, free: 13.42 MB / 206.1 MB [Timeout remaining time 88] 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.001658/0.001658, allocations: 55.91 kB / 369.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2902, allocations: 52.13 MB / 421.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004218/0.2944, allocations: 2.755 MB / 424 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.2964, allocations: 1.084 MB / 425.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.2966, allocations: 4 kB / 425.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002712/0.2969, allocations: 83.34 kB / 425.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005737/0.2974, allocations: 186.9 kB / 425.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.2979, allocations: 239.5 kB / 425.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006759/0.2986, allocations: 0.6546 MB / 426.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2988, allocations: 87.45 kB / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003944/0.2992, allocations: 287.1 kB / 426.6 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004484/0.2997, allocations: 358.8 kB / 427 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.322e-05/0.2997, allocations: 52 kB / 427 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002596/0.3, allocations: 143.8 kB / 427.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.3002, allocations: 143.5 kB / 427.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.3005, allocations: 254.8 kB / 427.6 MB, free: 9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007612/0.3012, allocations: 0.6437 MB / 428.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3012, allocations: 4 kB / 428.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3012, allocations: 0 / 428.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.3012, allocations: 4 kB / 428.2 MB, free: 8.348 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.001666/0.3029, allocations: 0.8065 MB / 429 MB, free: 7.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.3029, allocations: 11.89 kB / 429 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.3033, allocations: 72.59 kB / 429.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006804/0.304, allocations: 370.6 kB / 429.5 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.3041, allocations: 92.95 kB / 429.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.3042, allocations: 44.38 kB / 429.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.3054, allocations: 0.5567 MB / 430.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.3054, allocations: 0 / 430.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.385e-05/0.3055, allocations: 19.98 kB / 430.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.3055, allocations: 12 kB / 430.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.3068, allocations: 0.6402 MB / 430.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002496/0.3093, allocations: 1.283 MB / 432.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.3105, allocations: 0.5182 MB / 432.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/0.3111, allocations: 290.4 kB / 432.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.391e-05/0.3112, allocations: 12.5 kB / 432.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.3112, allocations: 43.3 kB / 433 MB, free: 3.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.054e-06/0.3112, allocations: 0 / 433 MB, free: 3.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006992/0.3182, allocations: 2.857 MB / 435.8 MB, free: 440 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.3183, allocations: 93.55 kB / 435.9 MB, free: 328 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.3187, allocations: 334.9 kB / 436.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.767e-05/0.3188, allocations: 41.7 kB / 436.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3189, allocations: 169.7 kB / 436.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.3191, allocations: 234.1 kB / 436.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.3194, allocations: 122.3 kB / 436.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3195, allocations: 346.8 kB / 437.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.3202, allocations: 293.2 kB / 437.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006673/0.3208, allocations: 358.4 kB / 437.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.3219, allocations: 0.5265 MB / 438.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3219, allocations: 0 / 438.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001805/0.3237, allocations: 0.8735 MB / 439.2 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3237, allocations: 7.938 kB / 439.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.3238, allocations: 0 / 439.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.3249, allocations: 479.2 kB / 439.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.3253, allocations: 83.88 kB / 439.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.3266, allocations: 1.079 MB / 440.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.3271, allocations: 55.97 kB / 440.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.3272, allocations: 27.92 kB / 440.9 MB, free: 11.25 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.0002846/0.3275, allocations: 185.7 kB / 441.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.3276, allocations: 47.72 kB / 441.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.3277, allocations: 63.77 kB / 441.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3278, allocations: 4 kB / 441.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.3278, allocations: 4.062 kB / 441.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3278, allocations: 3.984 kB / 441.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003383/0.3312, allocations: 1.753 MB / 443 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.3312, allocations: 0 / 443 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.3315, allocations: 79.88 kB / 443 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.3325, allocations: 449 kB / 443.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.388e-05/0.3326, allocations: 19.98 kB / 443.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.3339, allocations: 1.04 MB / 444.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3339, allocations: 0 / 444.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.3365, allocations: 1.287 MB / 445.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.3368, allocations: 184.8 kB / 446 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.202e-05/0.3369, allocations: 20 kB / 446 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.3373, allocations: 47.94 kB / 446.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.3375, allocations: 92.48 kB / 446.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.673e-05/0.3376, allocations: 19.98 kB / 446.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003172/0.3379, allocations: 245.9 kB / 446.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3379, allocations: 0 / 446.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005361/0.3384, allocations: 143.9 kB / 446.6 MB, free: 5.441 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.0003137/0.3387, allocations: 154.7 kB / 446.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.3403, allocations: 0.6689 MB / 447.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3403, allocations: 0 / 447.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.3412, allocations: 364 kB / 447.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.3417, allocations: 55.73 kB / 447.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.3445, allocations: 1.158 MB / 448.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.3451, allocations: 0.8174 MB / 449.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3452, allocations: 47.41 kB / 449.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3452, allocations: 0 / 449.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of Templates: time 0.01179/0.357, allocations: 7.281 MB / 457.1 MB, free: 10.85 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