Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7465/0.7465, allocations: 110.8 MB / 123.3 MB, free: 10.74 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001649/0.001649, allocations: 139.5 kB / 149.1 MB, free: 0.9531 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.606e-05, allocations: 0 / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04693/0.04697, allocations: 25.18 MB / 205.4 MB, free: 8.434 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0522/0.09923, allocations: 35.73 MB / 241.1 MB, free: 4.648 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.09958, allocations: 67.97 kB / 241.2 MB, free: 4.582 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1388/0.2384, allocations: 6.633 MB / 247.8 MB, free: 42.38 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2384, allocations: 0.9844 kB / 247.8 MB, free: 42.38 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.2384, allocations: 4.656 kB / 247.8 MB, free: 42.38 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008486/0.2393, allocations: 0.5365 MB / 248.4 MB, free: 41.96 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.2393, allocations: 13.53 kB / 248.4 MB, free: 41.96 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.2394, allocations: 30.67 kB / 248.4 MB, free: 41.95 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.2397, allocations: 247.9 kB / 248.6 MB, free: 41.73 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.2398, allocations: 19.09 kB / 248.7 MB, free: 41.73 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.2398, allocations: 28.16 kB / 248.7 MB, free: 41.73 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.2404, allocations: 319.2 kB / 249 MB, free: 41.67 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.2404, allocations: 9.062 kB / 249 MB, free: 41.66 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.2405, allocations: 10.62 kB / 249 MB, free: 41.66 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.22e-05/0.2405, allocations: 13.38 kB / 249 MB, free: 41.66 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.241, allocations: 242.4 kB / 249.3 MB, free: 41.62 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.2425, allocations: 0.8502 MB / 250.1 MB, free: 41.12 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005943/0.2431, allocations: 356.7 kB / 250.5 MB, free: 41 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.2434, allocations: 178.4 kB / 250.6 MB, free: 40.93 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.2435, allocations: 4.516 kB / 250.6 MB, free: 40.93 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.2435, allocations: 37.31 kB / 250.7 MB, free: 40.89 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.2435, allocations: 0 / 250.7 MB, free: 40.89 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.002413/0.246, allocations: 1.44 MB / 252.1 MB, free: 40.08 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.246, allocations: 81.7 kB / 252.2 MB, free: 39.98 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.2463, allocations: 189.9 kB / 252.4 MB, free: 39.85 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.2463, allocations: 32.45 kB / 252.4 MB, free: 39.82 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2464, allocations: 136.8 kB / 252.6 MB, free: 39.7 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.2465, allocations: 145.8 kB / 252.7 MB, free: 39.59 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.2465, allocations: 5.781 kB / 252.7 MB, free: 39.58 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 6.574e-05/0.2466, allocations: 338.9 kB / 253 MB, free: 39.25 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.2469, allocations: 161.5 kB / 253.2 MB, free: 39.2 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.2472, allocations: 197.2 kB / 253.4 MB, free: 39.12 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.2474, allocations: 154.1 kB / 253.5 MB, free: 39.07 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2474, allocations: 0 / 253.5 MB, free: 39.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008044/0.2482, allocations: 0.4994 MB / 254 MB, free: 38.88 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.2483, allocations: 7.797 kB / 254 MB, free: 38.88 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.2483, allocations: 0.9688 kB / 254 MB, free: 38.88 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.2488, allocations: 149.8 kB / 254.2 MB, free: 38.84 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.2491, allocations: 73.56 kB / 254.3 MB, free: 38.82 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.2515, allocations: 2.277 MB / 256.5 MB, free: 37.07 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.2518, allocations: 31.8 kB / 256.6 MB, free: 37.06 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.2519, allocations: 22.81 kB / 256.6 MB, free: 37.06 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.252, allocations: 123.4 kB / 256.7 MB, free: 36.94 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.2521, allocations: 33.86 kB / 256.7 MB, free: 36.92 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.719e-05/0.2522, allocations: 44.97 kB / 256.8 MB, free: 36.88 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2522, allocations: 6.281 kB / 256.8 MB, free: 36.88 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2522, allocations: 0 / 256.8 MB, free: 36.88 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2522, allocations: 3.891 kB / 256.8 MB, free: 36.88 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.2536, allocations: 1.068 MB / 257.9 MB, free: 36.3 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2536, allocations: 3.5 kB / 257.9 MB, free: 36.3 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.2539, allocations: 66.11 kB / 257.9 MB, free: 36.29 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.2543, allocations: 147.1 kB / 258.1 MB, free: 36.25 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.2544, allocations: 17.34 kB / 258.1 MB, free: 36.24 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.2564, allocations: 2.17 MB / 260.3 MB, free: 34.39 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2564, allocations: 3.938 kB / 260.3 MB, free: 34.39 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000943/0.2573, allocations: 0.7837 MB / 261 MB, free: 33.63 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.2575, allocations: 148.2 kB / 261.2 MB, free: 33.49 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.2576, allocations: 15.95 kB / 261.2 MB, free: 33.47 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.2578, allocations: 39.31 kB / 261.2 MB, free: 33.44 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.258, allocations: 69.55 kB / 261.3 MB, free: 33.41 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.013e-05/0.258, allocations: 23.09 kB / 261.3 MB, free: 33.39 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001048/0.2581, allocations: 147.2 kB / 261.5 MB, free: 33.25 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2581, allocations: 4 kB / 261.5 MB, free: 33.25 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006002/0.2587, allocations: 119.3 kB / 261.6 MB, free: 33.13 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000219/0.259, allocations: 135 kB / 261.7 MB, free: 33 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007518/0.2597, allocations: 0.5321 MB / 262.3 MB, free: 32.47 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2598, allocations: 0 / 262.3 MB, free: 32.47 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.2602, allocations: 377.9 kB / 262.6 MB, free: 32.09 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.2605, allocations: 32.06 kB / 262.7 MB, free: 32.05 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009569/0.2614, allocations: 0.5398 MB / 263.2 MB, free: 31.5 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.2617, allocations: 0.784 MB / 264 MB, free: 30.69 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.2618, allocations: 57.92 kB / 264 MB, free: 30.64 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.583e-05/0.2619, allocations: 31.42 kB / 264.1 MB, free: 30.61 MB / 186.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2619, allocations: 0 / 264.1 MB, free: 30.61 MB / 186.7 MB Notification: Performance of Templates: time 0.009141/0.2711, allocations: 5.348 MB / 269.4 MB, free: 25.27 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)