Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001074/0.001074, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001063/0.001063, allocations: 191 kB / 18 MB, free: 5.219 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.423/1.423, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001199/0.0012, allocations: 47.94 kB / 327.8 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09607, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003678/0.09982, allocations: 2.431 MB / 376.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1015, allocations: 1.003 MB / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1016, allocations: 7.938 kB / 377.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.1019, allocations: 51.56 kB / 378 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004617/0.1023, allocations: 159.1 kB / 378.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1027, allocations: 179.6 kB / 378.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003802/0.103, allocations: 470.5 kB / 378.8 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1032, allocations: 96.89 kB / 378.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2458/0.3491, allocations: 197.8 kB / 379 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006417/0.3498, allocations: 249 kB / 379.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.3499, allocations: 37.28 kB / 379.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003428/0.3503, allocations: 126.7 kB / 379.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.3504, allocations: 110.5 kB / 379.5 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.3507, allocations: 180 kB / 379.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007238/0.3514, allocations: 0.4958 MB / 380.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3514, allocations: 2.812 kB / 380.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3514, allocations: 0 / 380.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.3514, allocations: 1.312 kB / 380.2 MB, free: 9.777 MB / 318.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.001269/0.3527, allocations: 0.6654 MB / 380.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3527, allocations: 9.625 kB / 380.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/0.3531, allocations: 50.83 kB / 380.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.3536, allocations: 327.6 kB / 381.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.3538, allocations: 91.09 kB / 381.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-05/0.3538, allocations: 35.62 kB / 381.4 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009604/0.3548, allocations: 413.7 kB / 381.8 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.3548, allocations: 5.812 kB / 381.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.3549, allocations: 13.41 kB / 381.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.3549, allocations: 10.78 kB / 381.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.3561, allocations: 475.2 kB / 382.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3578, allocations: 0.9661 MB / 383.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008675/0.3587, allocations: 411.4 kB / 383.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000461/0.3592, allocations: 231 kB / 383.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.3592, allocations: 10.39 kB / 383.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3593, allocations: 42.36 kB / 383.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.3593, allocations: 0 / 383.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005199/0.3645, allocations: 2.166 MB / 386.1 MB, free: 7.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.3645, allocations: 85.23 kB / 386.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.3649, allocations: 256.5 kB / 386.4 MB, free: 7.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3649, allocations: 41.61 kB / 386.5 MB, free: 7.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.955e-05/0.365, allocations: 134.7 kB / 386.6 MB, free: 7.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.3651, allocations: 186.5 kB / 386.8 MB, free: 6.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.3653, allocations: 89.19 kB / 386.9 MB, free: 6.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.205e-05/0.3654, allocations: 339 kB / 387.2 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.3659, allocations: 202.2 kB / 387.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004728/0.3663, allocations: 245.5 kB / 387.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.3671, allocations: 388.1 kB / 388 MB, free: 6.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3672, allocations: 0 / 388 MB, free: 6.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001222/0.3684, allocations: 0.6195 MB / 388.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.3684, allocations: 5.406 kB / 388.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3684, allocations: 9.219 kB / 388.7 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007531/0.3692, allocations: 258.9 kB / 388.9 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.3695, allocations: 69.83 kB / 389 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003635/0.3732, allocations: 2.923 MB / 391.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.3735, allocations: 32.56 kB / 391.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/0.3736, allocations: 18.91 kB / 392 MB, free: 3.746 MB / 318.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.0001854/0.3738, allocations: 154 kB / 392.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.528e-05/0.3738, allocations: 36.72 kB / 392.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.374, allocations: 50.55 kB / 392.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.374, allocations: 5.844 kB / 392.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.374, allocations: 0 / 392.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.374, allocations: 3.422 kB / 392.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.3762, allocations: 1.268 MB / 393.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3762, allocations: 0 / 393.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.3765, allocations: 62.92 kB / 393.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006774/0.3772, allocations: 248.8 kB / 393.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.3773, allocations: 17.59 kB / 393.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/0.3806, allocations: 2.852 MB / 396.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3806, allocations: 0 / 396.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.3824, allocations: 0.9585 MB / 397.6 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.3825, allocations: 146.9 kB / 397.7 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.3826, allocations: 12.19 kB / 397.8 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.3829, allocations: 34.09 kB / 397.8 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3831, allocations: 65.91 kB / 397.8 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.3831, allocations: 16.91 kB / 397.9 MB, free: 28 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.3834, allocations: 204.8 kB / 398.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3834, allocations: 0 / 398.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007397/0.3842, allocations: 153.8 kB / 398.2 MB, free: 15.89 MB / 334.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.0002655/0.3845, allocations: 138.1 kB / 398.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.3861, allocations: 0.706 MB / 399.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3861, allocations: 0 / 399.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009201/0.3871, allocations: 480.3 kB / 399.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.3876, allocations: 47.38 kB / 399.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.3893, allocations: 0.7924 MB / 400.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.3898, allocations: 0.7977 MB / 401.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.3901, allocations: 65.2 kB / 401.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.3902, allocations: 34.31 kB / 401.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3902, allocations: 0 / 401.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01473/0.4049, allocations: 7.877 MB / 409.1 MB, free: 10.85 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)