Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001289/0.001288, allocations: 101.5 kB / 18.39 MB, free: 4.68 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.001252/0.001252, allocations: 183.1 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 51.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1028, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003949/0.1068, allocations: 2.724 MB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1089, allocations: 1.132 MB / 379.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.109, allocations: 4 kB / 379.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.1093, allocations: 71.36 kB / 379.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00057/0.1099, allocations: 190.8 kB / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.1103, allocations: 243.6 kB / 380.2 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2002/0.3106, allocations: 0.6389 MB / 380.8 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002858/0.3109, allocations: 130.1 kB / 380.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005299/0.3114, allocations: 291.7 kB / 381.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004071/0.3118, allocations: 344.2 kB / 381.5 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.851e-05/0.312, allocations: 52.94 kB / 381.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.3123, allocations: 142.9 kB / 381.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.3125, allocations: 149.1 kB / 381.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002576/0.3128, allocations: 249.8 kB / 382.1 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009516/0.3137, allocations: 0.6442 MB / 382.8 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3137, allocations: 0.5 kB / 382.8 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3137, allocations: 0 / 382.8 MB, free: 9.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.3138, allocations: 0.5312 kB / 382.8 MB, free: 9.59 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.001787/0.3156, allocations: 0.7897 MB / 383.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.3156, allocations: 13.14 kB / 383.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003696/0.316, allocations: 69.38 kB / 383.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.3166, allocations: 366.7 kB / 384 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.3168, allocations: 95.81 kB / 384.1 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.3169, allocations: 44.14 kB / 384.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.318, allocations: 0.5656 MB / 384.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.3181, allocations: 2.75 kB / 384.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.3181, allocations: 19.88 kB / 384.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3181, allocations: 9.5 kB / 384.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.3194, allocations: 0.6343 MB / 385.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.3219, allocations: 1.287 MB / 386.7 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3231, allocations: 0.5411 MB / 387.2 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/0.3237, allocations: 324.4 kB / 387.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.505e-05/0.3238, allocations: 9.891 kB / 387.5 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.3238, allocations: 46.8 kB / 387.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 1.993e-06/0.3238, allocations: 0 / 387.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006807/0.3306, allocations: 2.866 MB / 390.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.3307, allocations: 87.86 kB / 390.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.3312, allocations: 335.6 kB / 390.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.3312, allocations: 44.7 kB / 390.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/0.3313, allocations: 160.7 kB / 391.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.3315, allocations: 229.3 kB / 391.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.3317, allocations: 122.3 kB / 391.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/0.3318, allocations: 350.5 kB / 391.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/0.3323, allocations: 287.9 kB / 392 MB, free: 5.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.333, allocations: 352.8 kB / 392.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.334, allocations: 0.5292 MB / 392.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.334, allocations: 0 / 392.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001841/0.3359, allocations: 0.883 MB / 393.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3359, allocations: 4.812 kB / 393.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3359, allocations: 9.781 kB / 393.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.3371, allocations: 468.1 kB / 394.2 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003867/0.3375, allocations: 85.2 kB / 394.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.3387, allocations: 1.073 MB / 395.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/0.3393, allocations: 59.33 kB / 395.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.16e-05/0.3393, allocations: 27.47 kB / 395.5 MB, free: 3.68 MB / 318.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.0002684/0.3396, allocations: 182 kB / 395.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.3397, allocations: 44.19 kB / 395.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.3399, allocations: 70.95 kB / 395.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.3399, allocations: 12.69 kB / 395.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.3399, allocations: 0 / 395.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.3399, allocations: 3.562 kB / 395.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003205/0.3431, allocations: 1.748 MB / 397.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3431, allocations: 3.938 kB / 397.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003855/0.3435, allocations: 85.84 kB / 397.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000973/0.3445, allocations: 449.1 kB / 398.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.3446, allocations: 23.62 kB / 398.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.3457, allocations: 1.039 MB / 399.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3457, allocations: 2.688 kB / 399.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.3483, allocations: 1.311 MB / 400.4 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.3486, allocations: 181.8 kB / 400.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3487, allocations: 19.52 kB / 400.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/0.3491, allocations: 51.38 kB / 400.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.3494, allocations: 83.8 kB / 400.8 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/0.3494, allocations: 23.25 kB / 400.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.3497, allocations: 250.2 kB / 401 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3497, allocations: 1.281 kB / 401 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006219/0.3503, allocations: 148.7 kB / 401.2 MB, free: 0.8398 MB / 318.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.0002593/0.3506, allocations: 142.2 kB / 401.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.3522, allocations: 0.719 MB / 402 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3523, allocations: 0 / 402 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007919/0.3531, allocations: 388.6 kB / 402.4 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.3536, allocations: 53.2 kB / 402.5 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.3562, allocations: 1.15 MB / 403.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.3566, allocations: 0.8148 MB / 404.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3568, allocations: 45.31 kB / 404.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3568, allocations: 5.094 kB / 404.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Templates: time 0.01139/0.3682, allocations: 7.298 MB / 411.8 MB, free: 10.33 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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