Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001235/0.001235, 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.001572/0.001572, allocations: 194.3 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.505/1.505, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001393/0.001393, allocations: 51.94 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3136, allocations: 46.63 MB / 325.3 MB, free: 2.039 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003608/0.3173, allocations: 2.337 MB / 327.6 MB, free: 196 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.3193, allocations: 0.9515 MB / 328.6 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.3195, allocations: 8.312 kB / 328.6 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.3198, allocations: 47.58 kB / 328.6 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005036/0.3203, allocations: 139.2 kB / 328.8 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.3207, allocations: 176.5 kB / 329 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.3212, allocations: 417 kB / 329.4 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.3214, allocations: 67.62 kB / 329.4 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.3216, allocations: 178.2 kB / 329.6 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/0.322, allocations: 220.1 kB / 329.8 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/0.322, allocations: 32.59 kB / 329.9 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.3223, allocations: 110 kB / 330 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.3224, allocations: 100.8 kB / 330.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.3226, allocations: 164.9 kB / 330.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005469/0.3232, allocations: 436.8 kB / 330.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3232, allocations: 0.8125 kB / 330.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3232, allocations: 0 / 330.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.3232, allocations: 1.062 kB / 330.6 MB, free: 14.11 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.001248/0.3245, allocations: 0.6361 MB / 331.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3245, allocations: 9.406 kB / 331.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/0.3249, allocations: 48.05 kB / 331.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.3253, allocations: 311.2 kB / 331.6 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.3254, allocations: 88.11 kB / 331.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.3255, allocations: 25.66 kB / 331.8 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.3262, allocations: 389.5 kB / 332.1 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.3263, allocations: 5.156 kB / 332.1 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.3263, allocations: 10.41 kB / 332.1 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3263, allocations: 6.844 kB / 332.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009368/0.3273, allocations: 418.5 kB / 332.6 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.3293, allocations: 1.234 MB / 333.8 MB, free: 11.38 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006739/0.33, allocations: 358.5 kB / 334.1 MB, free: 11.02 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.3304, allocations: 192.8 kB / 334.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.3304, allocations: 8.719 kB / 334.3 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.3305, allocations: 38.56 kB / 334.4 MB, free: 10.77 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.744e-06/0.3305, allocations: 0 / 334.4 MB, free: 10.77 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004869/0.3353, allocations: 1.921 MB / 336.3 MB, free: 8.734 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.201e-05/0.3354, allocations: 84.86 kB / 336.4 MB, free: 8.633 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000392/0.3358, allocations: 246.1 kB / 336.6 MB, free: 8.379 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.3359, allocations: 37.69 kB / 336.7 MB, free: 8.336 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.336, allocations: 136.6 kB / 336.8 MB, free: 8.199 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.3362, allocations: 154 kB / 336.9 MB, free: 8.047 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.3364, allocations: 78.12 kB / 337 MB, free: 7.965 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3366, allocations: 338.8 kB / 337.4 MB, free: 7.625 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.337, allocations: 168.8 kB / 337.5 MB, free: 7.461 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000464/0.3375, allocations: 229.9 kB / 337.7 MB, free: 7.215 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/0.3382, allocations: 343.2 kB / 338.1 MB, free: 6.867 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3382, allocations: 4 kB / 338.1 MB, free: 6.863 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001218/0.3395, allocations: 0.5512 MB / 338.6 MB, free: 6.305 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.3395, allocations: 7.984 kB / 338.6 MB, free: 6.297 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.3395, allocations: 4 kB / 338.6 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008226/0.3404, allocations: 252.8 kB / 338.9 MB, free: 6.043 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.3406, allocations: 47.91 kB / 338.9 MB, free: 5.996 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004362/0.345, allocations: 2.889 MB / 341.8 MB, free: 2.969 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.3453, allocations: 32.03 kB / 341.9 MB, free: 2.938 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.3454, allocations: 20 kB / 341.9 MB, free: 2.918 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.0002077/0.3456, allocations: 149.8 kB / 342 MB, free: 2.762 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.3457, allocations: 27.62 kB / 342.1 MB, free: 2.734 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.925e-05/0.3458, allocations: 46.98 kB / 342.1 MB, free: 2.688 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3458, allocations: 4 kB / 342.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3458, allocations: 0 / 342.1 MB, free: 2.684 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3458, allocations: 4 kB / 342.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.3478, allocations: 1.093 MB / 343.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.3478, allocations: 0 / 343.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.348, allocations: 47.91 kB / 343.2 MB, free: 1.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00068/0.3487, allocations: 244.8 kB / 343.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3488, allocations: 11.98 kB / 343.5 MB, free: 1.227 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004292/0.3531, allocations: 2.843 MB / 346.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3531, allocations: 3.938 kB / 346.3 MB, free: 14.24 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.3548, allocations: 0.8141 MB / 347.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002076/0.355, allocations: 136.8 kB / 347.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.3551, allocations: 15.94 kB / 347.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.3553, allocations: 28.09 kB / 347.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.3556, allocations: 59.91 kB / 347.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.3556, allocations: 12 kB / 347.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002617/0.3559, allocations: 181.4 kB / 347.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3559, allocations: 0 / 347.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007367/0.3566, allocations: 140 kB / 347.7 MB, free: 12.82 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.0003452/0.357, allocations: 143.2 kB / 347.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.3585, allocations: 0.6408 MB / 348.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3585, allocations: 0 / 348.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007713/0.3593, allocations: 433.6 kB / 348.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.3598, allocations: 35.92 kB / 349 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.3613, allocations: 0.7028 MB / 349.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.3618, allocations: 0.7761 MB / 350.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.362, allocations: 62.95 kB / 350.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.3621, allocations: 27.42 kB / 350.5 MB, free: 9.926 MB / 286.1 MB Notification: Performance of SimCode: time 1.472e-06/0.3621, allocations: 0 / 350.5 MB, free: 9.926 MB / 286.1 MB Notification: Performance of Templates: time 0.01654/0.3787, allocations: 7.106 MB / 357.6 MB, free: 2.812 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)