Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001323, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001483/0.001483, allocations: 191 kB / 16.14 MB, free: 6.715 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.511/1.511, allocations: 205.1 MB / 222 MB, free: 4.781 MB / 174.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.001323/0.001323, allocations: 52.41 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2916, allocations: 46.63 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003614/0.2952, allocations: 2.467 MB / 327.1 MB, free: 0 / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001969/0.2973, allocations: 1.01 MB / 328.2 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.2975, allocations: 7.438 kB / 328.2 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.2979, allocations: 44.62 kB / 328.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005581/0.2984, allocations: 123.7 kB / 328.3 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.2988, allocations: 162.7 kB / 328.5 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.2994, allocations: 454.3 kB / 328.9 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.2996, allocations: 83.2 kB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003186/0.2999, allocations: 188.4 kB / 329.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.3003, allocations: 233.7 kB / 329.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.3003, allocations: 23.78 kB / 329.4 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002569/0.3006, allocations: 99.03 kB / 329.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.3007, allocations: 89.45 kB / 329.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.301, allocations: 173.1 kB / 329.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005699/0.3015, allocations: 483.2 kB / 330.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3015, allocations: 1.438 kB / 330.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3016, allocations: 0 / 330.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.3016, allocations: 4 kB / 330.3 MB, free: 13.83 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001458/0.303, allocations: 0.6647 MB / 330.9 MB, free: 13.26 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.3031, allocations: 12.56 kB / 330.9 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.3034, allocations: 49.8 kB / 331 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.3039, allocations: 321.4 kB / 331.3 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.3041, allocations: 93.11 kB / 331.4 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.975e-05/0.3042, allocations: 32.59 kB / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008382/0.305, allocations: 420.6 kB / 331.8 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.305, allocations: 1.125 kB / 331.8 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.3051, allocations: 19.47 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3051, allocations: 6.781 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.3062, allocations: 472.7 kB / 332.3 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.308, allocations: 0.9693 MB / 333.3 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009081/0.3089, allocations: 417.2 kB / 333.7 MB, free: 10.94 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004677/0.3094, allocations: 226.3 kB / 333.9 MB, free: 10.72 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.3094, allocations: 16.36 kB / 333.9 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3095, allocations: 35 kB / 334 MB, free: 10.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.913e-06/0.3095, allocations: 0 / 334 MB, free: 10.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005312/0.3148, allocations: 2.164 MB / 336.1 MB, free: 8.383 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.3149, allocations: 85.67 kB / 336.2 MB, free: 8.281 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.3152, allocations: 263.1 kB / 336.5 MB, free: 8.016 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.3153, allocations: 37.7 kB / 336.5 MB, free: 7.973 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.3154, allocations: 137.1 kB / 336.7 MB, free: 7.832 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.3155, allocations: 177.4 kB / 336.8 MB, free: 7.656 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.3157, allocations: 90.23 kB / 336.9 MB, free: 7.562 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3159, allocations: 338.8 kB / 337.2 MB, free: 7.223 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.3163, allocations: 205 kB / 337.4 MB, free: 7.02 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.3168, allocations: 240.6 kB / 337.7 MB, free: 6.777 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/0.3176, allocations: 396.3 kB / 338.1 MB, free: 6.387 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3176, allocations: 0 / 338.1 MB, free: 6.387 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00121/0.3188, allocations: 0.6173 MB / 338.7 MB, free: 5.758 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3189, allocations: 7.938 kB / 338.7 MB, free: 5.75 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3189, allocations: 4 kB / 338.7 MB, free: 5.746 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007549/0.3196, allocations: 257.9 kB / 339 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.32, allocations: 63.89 kB / 339 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003886/0.3239, allocations: 2.683 MB / 341.7 MB, free: 2.617 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.3242, allocations: 32.03 kB / 341.7 MB, free: 2.586 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/0.3243, allocations: 15.98 kB / 341.7 MB, free: 2.57 MB / 270.1 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.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.3246, allocations: 157.8 kB / 341.9 MB, free: 2.406 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/0.3247, allocations: 31.62 kB / 341.9 MB, free: 2.375 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3248, allocations: 47.3 kB / 342 MB, free: 2.328 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3248, allocations: 11.94 kB / 342 MB, free: 2.316 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3248, allocations: 0 / 342 MB, free: 2.316 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3248, allocations: 7.984 kB / 342 MB, free: 2.309 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.327, allocations: 1.268 MB / 343.3 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.327, allocations: 8 kB / 343.3 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.3274, allocations: 67.88 kB / 343.3 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006582/0.328, allocations: 240.7 kB / 343.6 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.232e-05/0.3281, allocations: 15.98 kB / 343.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.3316, allocations: 2.596 MB / 346.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3316, allocations: 4.031 kB / 346.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.3333, allocations: 0.9494 MB / 347.1 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.3335, allocations: 152.6 kB / 347.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.43e-05/0.3336, allocations: 12 kB / 347.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.3339, allocations: 31.97 kB / 347.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.3341, allocations: 76.38 kB / 347.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.3341, allocations: 15.98 kB / 347.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002185/0.3343, allocations: 196.6 kB / 347.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3343, allocations: 0 / 347.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006438/0.335, allocations: 152 kB / 347.8 MB, free: 12.3 MB / 286.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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002609/0.3353, allocations: 135.1 kB / 347.9 MB, free: 12.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.3367, allocations: 0.7033 MB / 348.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3367, allocations: 0 / 348.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008101/0.3375, allocations: 479.8 kB / 349.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.338, allocations: 40.36 kB / 349.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.3396, allocations: 0.9323 MB / 350 MB, free: 9.965 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.3401, allocations: 0.7931 MB / 350.8 MB, free: 9.141 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.3403, allocations: 70.92 kB / 350.9 MB, free: 9.066 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3404, allocations: 31.42 kB / 350.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3404, allocations: 0 / 350.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of Templates: time 0.01232/0.3527, allocations: 7.267 MB / 358.2 MB, free: 1.766 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)