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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 108.3 kB / 17.7 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 183.8 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009954/0.0009954, allocations: 51.92 kB / 351.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2919, allocations: 49.43 MB / 401.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003768/0.2957, allocations: 2.743 MB / 404.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2977, allocations: 1.073 MB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.2979, allocations: 4 kB / 405.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.2982, allocations: 79.36 kB / 405.2 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006126/0.2989, allocations: 194.8 kB / 405.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.2994, allocations: 239.6 kB / 405.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006138/0.3, allocations: 0.6508 MB / 406.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.3003, allocations: 115.4 kB / 406.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003656/0.3007, allocations: 299.1 kB / 406.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003763/0.301, allocations: 346.8 kB / 407 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.06e-05/0.3011, allocations: 52 kB / 407.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.3014, allocations: 135.9 kB / 407.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.3016, allocations: 151.5 kB / 407.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002152/0.3018, allocations: 250.8 kB / 407.6 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.3025, allocations: 0.6475 MB / 408.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3025, allocations: 0 / 408.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3025, allocations: 0 / 408.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.3025, allocations: 0 / 408.3 MB, free: 1.938 MB / 318.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.00154/0.3041, allocations: 0.7954 MB / 409.1 MB, free: 1.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3041, allocations: 11.89 kB / 409.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.3044, allocations: 64.36 kB / 409.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005175/0.305, allocations: 366.4 kB / 409.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.3051, allocations: 96.95 kB / 409.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.3052, allocations: 44.28 kB / 409.6 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.3062, allocations: 0.5645 MB / 410.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.3063, allocations: 4 kB / 410.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.3063, allocations: 12 kB / 410.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.3063, allocations: 15.98 kB / 410.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.3076, allocations: 0.6323 MB / 410.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.3099, allocations: 1.287 MB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.311, allocations: 0.545 MB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005974/0.3117, allocations: 318.4 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/0.3117, allocations: 12.69 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.3118, allocations: 47.05 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.294e-06/0.3118, allocations: 0 / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006772/0.3185, allocations: 2.863 MB / 415.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.3187, allocations: 89.61 kB / 416 MB, free: 9.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.3191, allocations: 334.9 kB / 416.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.941e-05/0.3192, allocations: 45.7 kB / 416.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3193, allocations: 161.6 kB / 416.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.3195, allocations: 224.8 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.3197, allocations: 118.3 kB / 416.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3198, allocations: 346.8 kB / 417.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.3204, allocations: 297.2 kB / 417.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006318/0.321, allocations: 350.5 kB / 417.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.3221, allocations: 0.5266 MB / 418.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3221, allocations: 3.938 kB / 418.4 MB, free: 7.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001738/0.3239, allocations: 0.8811 MB / 419.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3239, allocations: 7.938 kB / 419.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3239, allocations: 0 / 419.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.325, allocations: 479.3 kB / 419.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003921/0.3254, allocations: 83.88 kB / 419.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.3267, allocations: 1.087 MB / 420.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.3273, allocations: 60.03 kB / 421 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.3273, allocations: 27.98 kB / 421 MB, free: 4.781 MB / 334.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.0002631/0.3276, allocations: 185.6 kB / 421.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.3277, allocations: 39.53 kB / 421.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.3279, allocations: 67.77 kB / 421.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3279, allocations: 4 kB / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3279, allocations: 0 / 421.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3279, allocations: 7.984 kB / 421.3 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.3311, allocations: 1.753 MB / 423 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3311, allocations: 0 / 423 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.3315, allocations: 79.88 kB / 423.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009502/0.3324, allocations: 457 kB / 423.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/0.3325, allocations: 19.98 kB / 423.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.3337, allocations: 1.032 MB / 424.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3337, allocations: 0 / 424.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.3362, allocations: 1.306 MB / 425.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.3365, allocations: 180.6 kB / 426.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.265e-05/0.3366, allocations: 20.06 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.337, allocations: 56 kB / 426.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.3372, allocations: 92.36 kB / 426.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.515e-05/0.3373, allocations: 19.98 kB / 426.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002919/0.3376, allocations: 245.9 kB / 426.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3376, allocations: 0 / 426.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.3381, allocations: 140 kB / 426.7 MB, free: 14.95 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.0002867/0.3384, allocations: 160.5 kB / 426.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.34, allocations: 0.708 MB / 427.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.34, allocations: 0 / 427.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007808/0.3408, allocations: 404 kB / 427.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.3413, allocations: 44.88 kB / 428 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.3438, allocations: 1.143 MB / 429.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.3442, allocations: 0.8251 MB / 429.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.3444, allocations: 43.41 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3444, allocations: 3.938 kB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Templates: time 0.009881/0.3543, allocations: 7.19 MB / 437.2 MB, free: 4.387 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (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) 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) "" 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