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.001202/0.001202, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001433/0.001433, allocations: 179.1 kB / 19.33 MB, free: 3.777 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.435/1.435, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001316/0.001316, allocations: 51.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08963, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004286/0.09396, allocations: 2.732 MB / 378.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.09615, allocations: 1.124 MB / 379.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.09644, allocations: 8 kB / 379.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.09676, allocations: 71.36 kB / 379.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007269/0.0975, allocations: 190.8 kB / 379.9 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.09806, allocations: 243.6 kB / 380.2 MB, free: 224 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1751/0.2732, allocations: 0.649 MB / 380.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.2736, allocations: 120.2 kB / 380.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007295/0.2743, allocations: 290.3 kB / 381.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006621/0.275, allocations: 348 kB / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.2752, allocations: 52.34 kB / 381.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004033/0.2756, allocations: 139.3 kB / 381.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.2759, allocations: 152.2 kB / 381.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000421/0.2763, allocations: 248.3 kB / 382.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.2774, allocations: 0.6419 MB / 382.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2774, allocations: 3.531 kB / 382.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2774, allocations: 0.5312 kB / 382.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.697e-05/0.2774, allocations: 0 / 382.8 MB, free: 10.22 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.002192/0.2796, allocations: 0.7927 MB / 383.6 MB, free: 9.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2797, allocations: 13.05 kB / 383.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/0.2801, allocations: 63.94 kB / 383.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/0.2808, allocations: 368.5 kB / 384 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2809, allocations: 100.2 kB / 384.1 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.281, allocations: 46.34 kB / 384.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.2822, allocations: 0.5592 MB / 384.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.2823, allocations: 1.812 kB / 384.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.2823, allocations: 18.69 kB / 384.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.2823, allocations: 10.47 kB / 384.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.2837, allocations: 0.6382 MB / 385.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.2864, allocations: 1.289 MB / 386.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.2876, allocations: 0.5389 MB / 387.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006394/0.2882, allocations: 324.6 kB / 387.5 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.2883, allocations: 6.5 kB / 387.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.2883, allocations: 46.31 kB / 387.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 3.106e-06/0.2883, allocations: 3.844 kB / 387.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006898/0.2952, allocations: 2.862 MB / 390.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.2953, allocations: 84.91 kB / 390.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004982/0.2958, allocations: 341.7 kB / 390.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.78e-05/0.2959, allocations: 46.98 kB / 390.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.296, allocations: 161.6 kB / 391.1 MB, free: 6.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.2962, allocations: 224.6 kB / 391.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.2964, allocations: 119.5 kB / 391.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.457e-05/0.2965, allocations: 352.8 kB / 391.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005898/0.2971, allocations: 287.9 kB / 392 MB, free: 5.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006496/0.2978, allocations: 352.1 kB / 392.4 MB, free: 5.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.2989, allocations: 0.5232 MB / 392.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2989, allocations: 2.312 kB / 392.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00203/0.3009, allocations: 0.8847 MB / 393.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.301, allocations: 6.469 kB / 393.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.301, allocations: 4.594 kB / 393.8 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.3021, allocations: 468 kB / 394.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.3025, allocations: 93.39 kB / 394.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.3036, allocations: 1.072 MB / 395.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.3042, allocations: 61.91 kB / 395.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-05/0.3042, allocations: 21.06 kB / 395.5 MB, free: 3.988 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.000261/0.3045, allocations: 189.2 kB / 395.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3046, allocations: 44.67 kB / 395.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.3048, allocations: 67.97 kB / 395.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.3048, allocations: 6.875 kB / 395.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.3048, allocations: 3.938 kB / 395.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3048, allocations: 4.609 kB / 395.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/0.3081, allocations: 1.752 MB / 397.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3081, allocations: 5.312 kB / 397.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.3085, allocations: 78.62 kB / 397.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009882/0.3095, allocations: 450.8 kB / 398.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.058e-05/0.3096, allocations: 23.27 kB / 398.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.3108, allocations: 1.042 MB / 399.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3108, allocations: 1.25 kB / 399.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.3133, allocations: 1.305 MB / 400.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002723/0.3136, allocations: 179.1 kB / 400.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.3137, allocations: 22.41 kB / 400.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004632/0.3141, allocations: 56.16 kB / 400.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.3144, allocations: 84.45 kB / 400.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-05/0.3144, allocations: 20.88 kB / 400.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002944/0.3147, allocations: 249.4 kB / 401 MB, free: 1.164 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3147, allocations: 3.938 kB / 401 MB, free: 1.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000595/0.3153, allocations: 143.2 kB / 401.2 MB, free: 1.141 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.0002605/0.3156, allocations: 144.3 kB / 401.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.3172, allocations: 0.7168 MB / 402 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3172, allocations: 1.438 kB / 402 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008474/0.3181, allocations: 393 kB / 402.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.3186, allocations: 52.45 kB / 402.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.3212, allocations: 1.142 MB / 403.6 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.3217, allocations: 0.8202 MB / 404.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.3219, allocations: 49.66 kB / 404.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3219, allocations: 0 / 404.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of Templates: time 0.01108/0.333, allocations: 7.24 MB / 411.7 MB, free: 10.57 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