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.001091/0.001091, allocations: 107.1 kB / 17.74 MB, free: 5.32 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.001073/0.001073, allocations: 188.2 kB / 18.67 MB, free: 4.398 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.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 52.06 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2829, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004087/0.2871, allocations: 2.74 MB / 404.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.2892, allocations: 1.065 MB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.2894, allocations: 11.94 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002689/0.2897, allocations: 83.34 kB / 405.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005777/0.2903, allocations: 178.8 kB / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.2907, allocations: 251.5 kB / 405.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005954/0.2914, allocations: 0.6431 MB / 406.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.2916, allocations: 123.4 kB / 406.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003739/0.292, allocations: 299.1 kB / 406.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004096/0.2924, allocations: 338.9 kB / 407.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.88e-05/0.2925, allocations: 52 kB / 407.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.2928, allocations: 139.8 kB / 407.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.293, allocations: 147.6 kB / 407.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.2932, allocations: 254.8 kB / 407.7 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000686/0.2939, allocations: 0.6437 MB / 408.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2939, allocations: 3.938 kB / 408.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2939, allocations: 0 / 408.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.2939, allocations: 0 / 408.3 MB, free: 1.898 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.00166/0.2956, allocations: 0.7953 MB / 409.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2956, allocations: 15.89 kB / 409.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003701/0.296, allocations: 60.36 kB / 409.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.2966, allocations: 370.4 kB / 409.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.2968, allocations: 100.9 kB / 409.7 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.2969, allocations: 48.28 kB / 409.7 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.298, allocations: 0.5567 MB / 410.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.298, allocations: 7.938 kB / 410.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.2981, allocations: 16 kB / 410.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2981, allocations: 8 kB / 410.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.2993, allocations: 0.6402 MB / 410.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.3018, allocations: 1.279 MB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.303, allocations: 0.5505 MB / 412.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006322/0.3036, allocations: 318.4 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.3037, allocations: 12.5 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3037, allocations: 43.06 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.555e-06/0.3037, allocations: 0 / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006758/0.3105, allocations: 2.86 MB / 416 MB, free: 9.922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.3106, allocations: 89.61 kB / 416.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004126/0.311, allocations: 334.9 kB / 416.4 MB, free: 9.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.232e-05/0.3111, allocations: 45.7 kB / 416.4 MB, free: 9.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.3112, allocations: 165.6 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.3114, allocations: 228.8 kB / 416.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.3116, allocations: 110.3 kB / 416.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3118, allocations: 350.8 kB / 417.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005866/0.3124, allocations: 289.2 kB / 417.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006684/0.313, allocations: 354.5 kB / 417.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.3141, allocations: 0.5265 MB / 418.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.3141, allocations: 0 / 418.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00176/0.3159, allocations: 0.8851 MB / 419.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.3159, allocations: 11.92 kB / 419.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3159, allocations: 3.938 kB / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.317, allocations: 471.3 kB / 419.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/0.3174, allocations: 83.88 kB / 419.9 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.3187, allocations: 1.083 MB / 421 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.3193, allocations: 63.95 kB / 421 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.3193, allocations: 23.94 kB / 421 MB, free: 4.746 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.0002734/0.3196, allocations: 193.6 kB / 421.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3197, allocations: 39.53 kB / 421.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3199, allocations: 67.77 kB / 421.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3199, allocations: 4 kB / 421.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.3199, allocations: 4 kB / 421.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3199, allocations: 3.984 kB / 421.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003159/0.3231, allocations: 1.753 MB / 423.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3231, allocations: 0 / 423.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.3235, allocations: 83.88 kB / 423.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009668/0.3245, allocations: 453 kB / 423.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.853e-05/0.3246, allocations: 19.98 kB / 423.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.3258, allocations: 1.032 MB / 424.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.3258, allocations: 4.031 kB / 424.7 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.3283, allocations: 1.306 MB / 426 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.3286, allocations: 180.5 kB / 426.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.896e-05/0.3287, allocations: 16 kB / 426.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.3292, allocations: 56 kB / 426.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.3294, allocations: 84.42 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.3294, allocations: 19.98 kB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002838/0.3297, allocations: 249.9 kB / 426.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3297, allocations: 0 / 426.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005236/0.3302, allocations: 140 kB / 426.7 MB, free: 14.92 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.000259/0.3305, allocations: 155 kB / 426.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3322, allocations: 0.7197 MB / 427.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3322, allocations: 0 / 427.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/0.333, allocations: 388.1 kB / 428 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.3336, allocations: 61.09 kB / 428 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.3362, allocations: 1.143 MB / 429.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.3366, allocations: 0.8251 MB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.3368, allocations: 43.41 kB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3368, allocations: 0 / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Templates: time 0.009895/0.3467, allocations: 7.23 MB / 437.3 MB, free: 4.305 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