Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008276/0.008276, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.59/1.59, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0005161/0.0005162, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3454, allocations: 47.58 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002931/0.3484, allocations: 2.04 MB / 329.1 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.3505, allocations: 0.9413 MB / 330 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.3507, allocations: 7.312 kB / 330 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.3509, allocations: 31.45 kB / 330 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004619/0.3514, allocations: 113 kB / 330.2 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003928/0.3518, allocations: 154.3 kB / 330.3 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006019/0.3524, allocations: 398.4 kB / 330.7 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.3527, allocations: 54.44 kB / 330.7 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.353, allocations: 163.1 kB / 330.9 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003972/0.3534, allocations: 209.5 kB / 331.1 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.307e-05/0.3535, allocations: 17.34 kB / 331.1 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002991/0.3538, allocations: 96.91 kB / 331.2 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.354, allocations: 81.91 kB / 331.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.3542, allocations: 174.7 kB / 331.5 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.355, allocations: 420.2 kB / 331.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.355, allocations: 0.9688 kB / 331.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.469e-06/0.355, allocations: 0 / 331.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.355, allocations: 0 / 331.9 MB, free: 13.82 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00163/0.3567, allocations: 0.5752 MB / 332.5 MB, free: 13.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.126e-05/0.3568, allocations: 8.844 kB / 332.5 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004749/0.3572, allocations: 51.81 kB / 332.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006408/0.3579, allocations: 306.9 kB / 332.8 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.3581, allocations: 92.77 kB / 332.9 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-05/0.3582, allocations: 25.69 kB / 332.9 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.3591, allocations: 384 kB / 333.3 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.3591, allocations: 8.844 kB / 333.3 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.3592, allocations: 11.12 kB / 333.3 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.3592, allocations: 6.25 kB / 333.3 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009883/0.3602, allocations: 422.8 kB / 333.7 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.3624, allocations: 1.251 MB / 335 MB, free: 11.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008743/0.3633, allocations: 366.5 kB / 335.4 MB, free: 10.81 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004815/0.3638, allocations: 188.8 kB / 335.5 MB, free: 10.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.3639, allocations: 8 kB / 335.5 MB, free: 10.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.3639, allocations: 35.28 kB / 335.6 MB, free: 10.57 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 3.847e-06/0.3639, allocations: 0 / 335.6 MB, free: 10.57 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.005037/0.369, allocations: 1.976 MB / 337.6 MB, free: 8.48 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.3691, allocations: 84.86 kB / 337.6 MB, free: 8.379 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.3694, allocations: 234.3 kB / 337.9 MB, free: 8.137 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.3695, allocations: 37.7 kB / 337.9 MB, free: 8.094 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.3696, allocations: 132.7 kB / 338 MB, free: 7.961 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.3697, allocations: 153.9 kB / 338.2 MB, free: 7.809 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.3698, allocations: 49.69 kB / 338.2 MB, free: 7.754 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.37, allocations: 334.8 kB / 338.6 MB, free: 7.418 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.3703, allocations: 168.8 kB / 338.7 MB, free: 7.254 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3708, allocations: 241.8 kB / 339 MB, free: 6.996 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006798/0.3714, allocations: 351.2 kB / 339.3 MB, free: 6.641 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3715, allocations: 0 / 339.3 MB, free: 6.641 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001115/0.3726, allocations: 0.5669 MB / 339.9 MB, free: 6.066 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3726, allocations: 8 kB / 339.9 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3726, allocations: 0 / 339.9 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007446/0.3734, allocations: 244.7 kB / 340.1 MB, free: 5.816 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.3736, allocations: 63.84 kB / 340.2 MB, free: 5.754 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003865/0.3775, allocations: 2.664 MB / 342.8 MB, free: 2.957 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.3778, allocations: 32.05 kB / 342.9 MB, free: 2.926 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.248e-05/0.3779, allocations: 15.98 kB / 342.9 MB, free: 2.91 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0003053/0.3782, allocations: 153.8 kB / 343 MB, free: 2.75 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.905e-05/0.3783, allocations: 35.55 kB / 343.1 MB, free: 2.715 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.3784, allocations: 39 kB / 343.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3785, allocations: 8 kB / 343.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3785, allocations: 0 / 343.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.3785, allocations: 3.984 kB / 343.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.3806, allocations: 1.108 MB / 344.2 MB, free: 1.496 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.361e-06/0.3806, allocations: 0 / 344.2 MB, free: 1.496 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.3809, allocations: 47.91 kB / 344.3 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.3815, allocations: 240.8 kB / 344.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.3816, allocations: 15.98 kB / 344.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003523/0.3851, allocations: 2.589 MB / 347.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3851, allocations: 0 / 347.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.3866, allocations: 0.8335 MB / 348 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.3868, allocations: 152.8 kB / 348.1 MB, free: 13.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.3868, allocations: 12 kB / 348.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.3871, allocations: 27.98 kB / 348.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.3873, allocations: 59.89 kB / 348.2 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.3873, allocations: 12 kB / 348.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.3875, allocations: 185.4 kB / 348.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3875, allocations: 0 / 348.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006473/0.3882, allocations: 136 kB / 348.5 MB, free: 13.02 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002527/0.3885, allocations: 139.2 kB / 348.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3898, allocations: 0.6332 MB / 349.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3898, allocations: 0 / 349.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.3905, allocations: 441.5 kB / 349.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3909, allocations: 31.94 kB / 349.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.3924, allocations: 0.8705 MB / 350.6 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.393, allocations: 0.7764 MB / 351.4 MB, free: 10.06 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.3932, allocations: 62.89 kB / 351.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.401e-05/0.3933, allocations: 27.42 kB / 351.5 MB, free: 9.969 MB / 286.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3933, allocations: 0 / 351.5 MB, free: 9.969 MB / 286.1 MB Notification: Performance of Templates: time 0.01167/0.405, allocations: 6.558 MB / 358.1 MB, free: 3.402 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)