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.7675/0.7675, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001697/0.001697, allocations: 155.4 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.211e-05/1.214e-05, allocations: 0 / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0457/0.04573, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04729/0.09307, allocations: 35.07 MB / 234.1 MB, free: 10.58 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.09332, allocations: 63.97 kB / 234.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01895/0.1123, allocations: 6.598 MB / 240.7 MB, free: 3.902 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1123, allocations: 0 / 240.7 MB, free: 3.902 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1123, allocations: 12 kB / 240.8 MB, free: 3.891 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.0008595/0.1132, allocations: 0.5295 MB / 241.3 MB, free: 3.316 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1133, allocations: 8.031 kB / 241.3 MB, free: 3.309 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.1133, allocations: 31.62 kB / 241.3 MB, free: 3.277 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.1136, allocations: 246.5 kB / 241.6 MB, free: 2.996 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.1137, allocations: 12 kB / 241.6 MB, free: 2.984 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.368e-05/0.1137, allocations: 23.98 kB / 241.6 MB, free: 2.961 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003956/0.1141, allocations: 225.1 kB / 241.8 MB, free: 2.742 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.1146, allocations: 278.5 kB / 242.1 MB, free: 2.457 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.1146, allocations: 8 kB / 242.1 MB, free: 2.449 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.1147, allocations: 0 / 242.1 MB, free: 2.449 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.051e-05/0.1147, allocations: 8 kB / 242.1 MB, free: 2.441 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.1161, allocations: 0.7967 MB / 242.9 MB, free: 1.594 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005417/0.1166, allocations: 334.4 kB / 243.2 MB, free: 1.258 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.1169, allocations: 168.8 kB / 243.4 MB, free: 1.09 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1169, allocations: 4 kB / 243.4 MB, free: 1.086 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.117, allocations: 43.16 kB / 243.4 MB, free: 1.035 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 1.523e-06/0.117, allocations: 0 / 243.4 MB, free: 1.035 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.1122/0.2292, allocations: 1.345 MB / 244.8 MB, free: 42.92 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.2292, allocations: 82.69 kB / 244.9 MB, free: 42.83 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.2294, allocations: 158.9 kB / 245 MB, free: 42.74 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.2294, allocations: 28.88 kB / 245.1 MB, free: 42.71 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.695e-05/0.2295, allocations: 135.9 kB / 245.2 MB, free: 42.62 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.2296, allocations: 131.7 kB / 245.3 MB, free: 42.55 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.2297, allocations: 1.375 kB / 245.3 MB, free: 42.55 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 5.762e-05/0.2297, allocations: 334.9 kB / 245.6 MB, free: 42.24 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.2299, allocations: 151.9 kB / 245.8 MB, free: 42.23 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.2302, allocations: 187.7 kB / 246 MB, free: 42.21 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.2305, allocations: 156.7 kB / 246.1 MB, free: 42.2 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2305, allocations: 1.438 kB / 246.1 MB, free: 42.2 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007607/0.2312, allocations: 460.8 kB / 246.6 MB, free: 42.15 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2313, allocations: 9.172 kB / 246.6 MB, free: 42.15 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2313, allocations: 7.016 kB / 246.6 MB, free: 42.14 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.2317, allocations: 151.9 kB / 246.7 MB, free: 42.14 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002975/0.232, allocations: 71.44 kB / 246.8 MB, free: 42.14 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/0.2343, allocations: 2.183 MB / 249 MB, free: 40.77 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.2346, allocations: 26.7 kB / 249 MB, free: 40.77 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.2346, allocations: 24.05 kB / 249 MB, free: 40.77 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.00015/0.2348, allocations: 114.7 kB / 249.2 MB, free: 40.66 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.2349, allocations: 25.02 kB / 249.2 MB, free: 40.65 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.663e-05/0.2349, allocations: 32.88 kB / 249.2 MB, free: 40.62 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-06/0.235, allocations: 8.609 kB / 249.2 MB, free: 40.62 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.235, allocations: 0 / 249.2 MB, free: 40.62 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.235, allocations: 3.453 kB / 249.2 MB, free: 40.62 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.2366, allocations: 0.9986 MB / 250.2 MB, free: 40.09 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.2367, allocations: 0 / 250.2 MB, free: 40.09 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.237, allocations: 67.34 kB / 250.3 MB, free: 40.09 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003525/0.2373, allocations: 144.7 kB / 250.4 MB, free: 40.05 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.2374, allocations: 6.906 kB / 250.4 MB, free: 40.05 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001948/0.2393, allocations: 2.103 MB / 252.5 MB, free: 38.43 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2393, allocations: 0 / 252.5 MB, free: 38.43 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.2404, allocations: 0.7566 MB / 253.3 MB, free: 38.05 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.2406, allocations: 150 kB / 253.4 MB, free: 37.93 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.393e-05/0.2406, allocations: 1.875 kB / 253.4 MB, free: 37.93 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.2409, allocations: 31.11 kB / 253.5 MB, free: 37.92 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.241, allocations: 68.84 kB / 253.5 MB, free: 37.91 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.2411, allocations: 18.06 kB / 253.6 MB, free: 37.91 MB / 186.7 MB Notification: Performance of sorting global known variables: time 9.376e-05/0.2412, allocations: 131.7 kB / 253.7 MB, free: 37.82 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2412, allocations: 0 / 253.7 MB, free: 37.82 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000551/0.2417, allocations: 97.12 kB / 253.8 MB, free: 37.82 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.0001786/0.2419, allocations: 134.2 kB / 253.9 MB, free: 37.72 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000768/0.2427, allocations: 0.4987 MB / 254.4 MB, free: 37.48 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2427, allocations: 7.953 kB / 254.4 MB, free: 37.48 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004417/0.2432, allocations: 364.2 kB / 254.8 MB, free: 37.27 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.2434, allocations: 23.91 kB / 254.8 MB, free: 37.26 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009418/0.2444, allocations: 0.5233 MB / 255.3 MB, free: 36.97 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.2446, allocations: 0.7797 MB / 256.1 MB, free: 36.27 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001735/0.2448, allocations: 50.14 kB / 256.2 MB, free: 36.27 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.849e-05/0.2449, allocations: 34.7 kB / 256.2 MB, free: 36.26 MB / 186.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2449, allocations: 0 / 256.2 MB, free: 36.26 MB / 186.7 MB Notification: Performance of Templates: time 0.008717/0.2536, allocations: 5.116 MB / 261.3 MB, free: 34.52 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)