Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8349/0.8349, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001738/0.001738, allocations: 143.5 kB / 149.1 MB, free: 0.957 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.184e-05, allocations: 0 / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06091/0.06095, allocations: 25.18 MB / 205.4 MB, free: 8.43 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05547/0.1165, allocations: 36.97 MB / 242.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.1168, allocations: 67.97 kB / 242.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1503/0.2672, allocations: 8.343 MB / 250.8 MB, free: 42.03 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2672, allocations: 7.609 kB / 250.8 MB, free: 42.03 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.2673, allocations: 15.69 kB / 250.8 MB, free: 42.02 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001112/0.2684, allocations: 0.6388 MB / 251.4 MB, free: 41.55 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2684, allocations: 9.344 kB / 251.4 MB, free: 41.55 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.2685, allocations: 42.75 kB / 251.5 MB, free: 41.53 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.2689, allocations: 289.2 kB / 251.8 MB, free: 41.27 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.269, allocations: 27.03 kB / 251.8 MB, free: 41.26 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.539e-05/0.2691, allocations: 33.72 kB / 251.8 MB, free: 41.25 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008642/0.27, allocations: 464.6 kB / 252.3 MB, free: 41.06 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.27, allocations: 5.094 kB / 252.3 MB, free: 41.06 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.124e-05/0.2701, allocations: 20.27 kB / 252.3 MB, free: 41.04 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.213e-05/0.2701, allocations: 13.83 kB / 252.3 MB, free: 41.04 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007055/0.2708, allocations: 426.4 kB / 252.7 MB, free: 40.91 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2729, allocations: 1.165 MB / 253.9 MB, free: 40.21 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.2737, allocations: 495 kB / 254.4 MB, free: 40 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.2741, allocations: 270.5 kB / 254.6 MB, free: 39.89 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.2741, allocations: 7.391 kB / 254.6 MB, free: 39.89 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.2742, allocations: 46.86 kB / 254.7 MB, free: 39.84 MB / 186.7 MB Notification: Performance of pre-optimization done (n=47): time 2.876e-06/0.2742, allocations: 0 / 254.7 MB, free: 39.84 MB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.002984/0.2772, allocations: 1.928 MB / 256.6 MB, free: 38.68 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.2772, allocations: 84.8 kB / 256.7 MB, free: 38.59 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.2775, allocations: 241.2 kB / 256.9 MB, free: 38.43 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.2776, allocations: 41.7 kB / 257 MB, free: 38.38 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.732e-05/0.2776, allocations: 160.7 kB / 257.1 MB, free: 38.23 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.2778, allocations: 185.1 kB / 257.3 MB, free: 38.05 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.2778, allocations: 12 kB / 257.3 MB, free: 38.04 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 7.297e-05/0.2779, allocations: 342.8 kB / 257.7 MB, free: 37.69 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/0.2782, allocations: 253 kB / 257.9 MB, free: 37.44 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.2786, allocations: 305.5 kB / 258.2 MB, free: 37.13 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.2789, allocations: 227.2 kB / 258.4 MB, free: 36.91 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2789, allocations: 0 / 258.4 MB, free: 36.91 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001165/0.2801, allocations: 0.7923 MB / 259.2 MB, free: 36.11 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2801, allocations: 8 kB / 259.2 MB, free: 36.1 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.2801, allocations: 0 / 259.2 MB, free: 36.1 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007899/0.2809, allocations: 464.5 kB / 259.7 MB, free: 35.64 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.2812, allocations: 83.88 kB / 259.8 MB, free: 35.56 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000854/0.2821, allocations: 0.9665 MB / 260.7 MB, free: 34.56 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004289/0.2825, allocations: 80.02 kB / 260.8 MB, free: 34.48 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.707e-05/0.2826, allocations: 31.98 kB / 260.8 MB, free: 34.45 MB / 186.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.2828, allocations: 140.6 kB / 261 MB, free: 34.31 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.2829, allocations: 43.53 kB / 261 MB, free: 34.27 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001414/0.283, allocations: 55.39 kB / 261.1 MB, free: 34.21 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.283, allocations: 4 kB / 261.1 MB, free: 34.21 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.283, allocations: 3.953 kB / 261.1 MB, free: 34.2 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.283, allocations: 0 / 261.1 MB, free: 34.2 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002226/0.2853, allocations: 1.549 MB / 262.6 MB, free: 32.6 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2853, allocations: 0 / 262.6 MB, free: 32.6 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.2856, allocations: 79.88 kB / 262.7 MB, free: 32.52 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007184/0.2863, allocations: 446.5 kB / 263.1 MB, free: 32.08 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/0.2864, allocations: 19.98 kB / 263.2 MB, free: 32.06 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008561/0.2873, allocations: 0.9291 MB / 264.1 MB, free: 31.11 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.2873, allocations: 4.031 kB / 264.1 MB, free: 31.11 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.2888, allocations: 1.142 MB / 265.2 MB, free: 29.94 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002754/0.2891, allocations: 172.5 kB / 265.4 MB, free: 29.75 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.2892, allocations: 20 kB / 265.4 MB, free: 29.73 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.2896, allocations: 71.94 kB / 265.5 MB, free: 29.66 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.2897, allocations: 96.23 kB / 265.6 MB, free: 29.57 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.214e-05/0.2898, allocations: 31.98 kB / 265.6 MB, free: 29.54 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001627/0.29, allocations: 195.1 kB / 265.8 MB, free: 29.34 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.29, allocations: 0 / 265.8 MB, free: 29.34 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000535/0.2905, allocations: 139.9 kB / 266 MB, free: 29.21 MB / 186.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002702/0.2908, allocations: 163 kB / 266.1 MB, free: 29.04 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000946/0.2918, allocations: 0.56 MB / 266.7 MB, free: 28.48 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.2918, allocations: 4.062 kB / 266.7 MB, free: 28.48 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.2923, allocations: 309.2 kB / 267 MB, free: 28.18 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003822/0.2927, allocations: 39.56 kB / 267 MB, free: 28.14 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.294, allocations: 0.6838 MB / 267.7 MB, free: 27.44 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.2942, allocations: 0.8126 MB / 268.5 MB, free: 26.6 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.2944, allocations: 51.27 kB / 268.6 MB, free: 26.54 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2945, allocations: 39.41 kB / 268.6 MB, free: 26.5 MB / 186.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2945, allocations: 4 kB / 268.6 MB, free: 26.5 MB / 186.7 MB Notification: Performance of Templates: time 0.01099/0.3055, allocations: 7.327 MB / 275.9 MB, free: 19.18 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)