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/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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.001784/0.001784, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002605/0.002605, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.508/1.508, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001202/0.001202, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.278, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004852/0.2829, allocations: 2.417 MB / 327.7 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.2856, allocations: 1.002 MB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.2858, allocations: 3.719 kB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002737/0.2861, allocations: 56.31 kB / 328.8 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007707/0.2869, allocations: 158 kB / 328.9 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.2875, allocations: 180.8 kB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007212/0.2882, allocations: 470.9 kB / 329.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.2885, allocations: 89.53 kB / 329.7 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003918/0.2889, allocations: 207.2 kB / 329.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.2894, allocations: 243.5 kB / 330.1 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.115e-05/0.2895, allocations: 41.75 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002554/0.2898, allocations: 115.1 kB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.2899, allocations: 108.8 kB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.2901, allocations: 182.6 kB / 330.5 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005906/0.2907, allocations: 0.4891 MB / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2907, allocations: 1.125 kB / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2908, allocations: 0 / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2908, allocations: 0 / 331 MB, free: 13.64 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.001685/0.2925, allocations: 0.669 MB / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.2925, allocations: 9.25 kB / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/0.293, allocations: 56.89 kB / 331.8 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/0.2936, allocations: 317.9 kB / 332.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.2938, allocations: 93.58 kB / 332.2 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.2939, allocations: 36.22 kB / 332.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.295, allocations: 412.4 kB / 332.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.2951, allocations: 1.062 kB / 332.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.2951, allocations: 15.34 kB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.2952, allocations: 7.031 kB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.2967, allocations: 487.3 kB / 333.1 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.2987, allocations: 0.9735 MB / 334.1 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000923/0.2997, allocations: 408.5 kB / 334.5 MB, free: 10.56 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004519/0.3001, allocations: 230.1 kB / 334.7 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.3002, allocations: 8.438 kB / 334.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.3002, allocations: 39 kB / 334.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3002, allocations: 0 / 334.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005214/0.3054, allocations: 2.16 MB / 336.9 MB, free: 8.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.273e-05/0.3056, allocations: 81.67 kB / 337 MB, free: 7.906 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/0.306, allocations: 259.1 kB / 337.2 MB, free: 7.645 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.3061, allocations: 41.7 kB / 337.3 MB, free: 7.598 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.3062, allocations: 141 kB / 337.4 MB, free: 7.453 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.3064, allocations: 185.4 kB / 337.6 MB, free: 7.27 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.3066, allocations: 94.14 kB / 337.7 MB, free: 7.172 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.3068, allocations: 334.8 kB / 338 MB, free: 6.836 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.3073, allocations: 197 kB / 338.2 MB, free: 6.641 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005054/0.3078, allocations: 248.6 kB / 338.5 MB, free: 6.391 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008628/0.3087, allocations: 392.3 kB / 338.8 MB, free: 6.004 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3087, allocations: 0 / 338.8 MB, free: 6.004 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001355/0.3101, allocations: 0.6135 MB / 339.5 MB, free: 5.379 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.3101, allocations: 11.94 kB / 339.5 MB, free: 5.367 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3101, allocations: 7.922 kB / 339.5 MB, free: 5.359 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008268/0.311, allocations: 253.8 kB / 339.7 MB, free: 5.109 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003113/0.3113, allocations: 71.89 kB / 339.8 MB, free: 5.039 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/0.3155, allocations: 2.928 MB / 342.7 MB, free: 1.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.3158, allocations: 32 kB / 342.7 MB, free: 1.945 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.3159, allocations: 16 kB / 342.8 MB, free: 1.93 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.0002232/0.3161, allocations: 161.8 kB / 342.9 MB, free: 1.762 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.193e-05/0.3162, allocations: 31.56 kB / 343 MB, free: 1.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.3163, allocations: 51.31 kB / 343 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3163, allocations: 4 kB / 343 MB, free: 1.676 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.3164, allocations: 4 kB / 343 MB, free: 1.672 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3164, allocations: 3.984 kB / 343 MB, free: 1.668 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.3186, allocations: 1.264 MB / 344.3 MB, free: 348 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3186, allocations: 0 / 344.3 MB, free: 348 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.319, allocations: 71.92 kB / 344.3 MB, free: 276 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006528/0.3196, allocations: 236.6 kB / 344.6 MB, free: 36 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.3197, allocations: 15.98 kB / 344.6 MB, free: 20 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/0.3234, allocations: 2.846 MB / 347.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3234, allocations: 0 / 347.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.3251, allocations: 0.9611 MB / 348.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.3253, allocations: 152.6 kB / 348.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.092e-05/0.3254, allocations: 15.94 kB / 348.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.3257, allocations: 27.97 kB / 348.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.3259, allocations: 68.33 kB / 348.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.512e-05/0.3259, allocations: 19.98 kB / 348.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.3261, allocations: 200.7 kB / 348.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3261, allocations: 0 / 348.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006519/0.3268, allocations: 152 kB / 349 MB, free: 11.41 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.0002181/0.327, allocations: 143.2 kB / 349.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3285, allocations: 0.7307 MB / 349.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3285, allocations: 0 / 349.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.3293, allocations: 471.7 kB / 350.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3297, allocations: 48.42 kB / 350.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.3311, allocations: 0.8057 MB / 351.2 MB, free: 9.164 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.3315, allocations: 0.7929 MB / 352 MB, free: 8.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.3317, allocations: 66.94 kB / 352.1 MB, free: 8.27 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.3318, allocations: 35.42 kB / 352.1 MB, free: 8.234 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3318, allocations: 0 / 352.1 MB, free: 8.234 MB / 286.1 MB Notification: Performance of Templates: time 0.01315/0.345, allocations: 7.762 MB / 359.9 MB, free: 476 kB / 286.1 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)