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.001998/0.001998, allocations: 108 kB / 15.61 MB, free: 152 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.0021/0.002101, allocations: 195 kB / 16.53 MB, free: 6.664 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.424/1.424, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001556/0.001556, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2961, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003538/0.2997, allocations: 2.425 MB / 327.7 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.3017, allocations: 0.9976 MB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.3019, allocations: 3.406 kB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.3021, allocations: 60.84 kB / 328.8 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005576/0.3027, allocations: 153.9 kB / 328.9 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.3031, allocations: 185.2 kB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.3036, allocations: 466.7 kB / 329.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.3038, allocations: 93.16 kB / 329.7 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.3041, allocations: 207 kB / 329.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.3044, allocations: 248.1 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.969e-05/0.3045, allocations: 37.97 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.3048, allocations: 114.6 kB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.3049, allocations: 105.1 kB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.3052, allocations: 187.2 kB / 330.5 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005533/0.3057, allocations: 496.3 kB / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3057, allocations: 0 / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3057, allocations: 1.406 kB / 331 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3058, allocations: 4 kB / 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.001396/0.3072, allocations: 0.6638 MB / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3072, allocations: 12.94 kB / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.3076, allocations: 54.42 kB / 331.8 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.308, allocations: 322 kB / 332.1 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.3082, allocations: 89.02 kB / 332.2 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.411e-05/0.3083, allocations: 31.91 kB / 332.2 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007828/0.309, allocations: 420.9 kB / 332.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.3091, allocations: 5.156 kB / 332.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3091, allocations: 18.28 kB / 332.6 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3091, allocations: 7.875 kB / 332.6 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009848/0.3101, allocations: 470.2 kB / 333.1 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.3118, allocations: 0.9774 MB / 334.1 MB, free: 10.97 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009179/0.3127, allocations: 408.6 kB / 334.5 MB, free: 10.57 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000456/0.3132, allocations: 234.1 kB / 334.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.3132, allocations: 8.422 kB / 334.7 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.3133, allocations: 39 kB / 334.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.3133, allocations: 0 / 334.7 MB, free: 10.28 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005821/0.3191, allocations: 2.164 MB / 336.9 MB, free: 8.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.3192, allocations: 81.67 kB / 337 MB, free: 7.906 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.3195, allocations: 259.1 kB / 337.2 MB, free: 7.645 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.439e-05/0.3196, allocations: 37.7 kB / 337.3 MB, free: 7.602 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3197, allocations: 137.1 kB / 337.4 MB, free: 7.461 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.3199, allocations: 181.4 kB / 337.6 MB, free: 7.281 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.3201, allocations: 94.14 kB / 337.7 MB, free: 7.184 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3202, allocations: 338.8 kB / 338 MB, free: 6.844 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000466/0.3207, allocations: 205 kB / 338.2 MB, free: 6.641 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.3212, allocations: 240.6 kB / 338.4 MB, free: 6.398 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009334/0.3221, allocations: 388.3 kB / 338.8 MB, free: 6.016 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3222, allocations: 4.031 kB / 338.8 MB, free: 6.012 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001346/0.3235, allocations: 0.6134 MB / 339.4 MB, free: 5.387 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3235, allocations: 7.938 kB / 339.5 MB, free: 5.379 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3235, allocations: 0 / 339.5 MB, free: 5.379 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007611/0.3243, allocations: 265.9 kB / 339.7 MB, free: 5.117 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.3246, allocations: 67.89 kB / 339.8 MB, free: 5.051 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005241/0.3299, allocations: 2.92 MB / 342.7 MB, free: 1.996 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.3303, allocations: 40 kB / 342.7 MB, free: 1.957 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-05/0.3304, allocations: 19.98 kB / 342.8 MB, free: 1.938 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.0002352/0.3306, allocations: 149.8 kB / 342.9 MB, free: 1.781 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.036e-05/0.3307, allocations: 35.56 kB / 342.9 MB, free: 1.746 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.3309, allocations: 51.3 kB / 343 MB, free: 1.695 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3309, allocations: 4 kB / 343 MB, free: 1.691 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.3309, allocations: 12 kB / 343 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.3309, allocations: 7.922 kB / 343 MB, free: 1.672 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.3333, allocations: 1.26 MB / 344.3 MB, free: 356 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3333, allocations: 0 / 344.3 MB, free: 356 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3336, allocations: 63.89 kB / 344.3 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006957/0.3343, allocations: 244.7 kB / 344.6 MB, free: 44 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.3344, allocations: 19.92 kB / 344.6 MB, free: 24 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003865/0.3383, allocations: 2.842 MB / 347.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3383, allocations: 0 / 347.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.3403, allocations: 0.9611 MB / 348.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.3405, allocations: 144.7 kB / 348.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.3406, allocations: 15.94 kB / 348.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3409, allocations: 35.91 kB / 348.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.3411, allocations: 68.39 kB / 348.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.3411, allocations: 19.98 kB / 348.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000294/0.3414, allocations: 200.6 kB / 348.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3414, allocations: 0 / 348.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.3421, 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.0002892/0.3424, allocations: 139.2 kB / 349.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.344, allocations: 0.7346 MB / 349.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3441, allocations: 0 / 349.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008843/0.345, allocations: 475.8 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.00045/0.3454, allocations: 40.36 kB / 350.4 MB, free: 10 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3471, allocations: 0.8096 MB / 351.2 MB, free: 9.172 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.3475, allocations: 0.7929 MB / 352 MB, free: 8.348 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.3477, allocations: 70.92 kB / 352.1 MB, free: 8.273 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.3478, allocations: 31.42 kB / 352.1 MB, free: 8.242 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3478, allocations: 3.938 kB / 352.1 MB, free: 8.238 MB / 286.1 MB Notification: Performance of Templates: time 0.01434/0.3622, allocations: 7.758 MB / 359.9 MB, free: 484 kB / 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)