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.001221/0.001221, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.01044/0.01044, allocations: 173 kB / 16.26 MB, free: 6.613 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.519/1.519, 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.0004782/0.0004782, allocations: 8.469 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2964, allocations: 47.57 MB / 327 MB, free: 1.648 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00305/0.2995, allocations: 2.112 MB / 329.1 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.3016, allocations: 1.003 MB / 330.1 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.3018, allocations: 6.875 kB / 330.1 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002216/0.302, allocations: 33.92 kB / 330.2 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005918/0.3026, allocations: 134.5 kB / 330.3 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003602/0.303, allocations: 155.2 kB / 330.5 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.3035, allocations: 450.6 kB / 330.9 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.3037, allocations: 77.38 kB / 331 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.304, allocations: 188.2 kB / 331.2 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.3043, allocations: 221 kB / 331.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.481e-05/0.3044, allocations: 24.03 kB / 331.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.3047, allocations: 97.19 kB / 331.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.3048, allocations: 89.11 kB / 331.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.305, allocations: 193 kB / 331.8 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005399/0.3056, allocations: 467.8 kB / 332.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3056, allocations: 0.8438 kB / 332.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3056, allocations: 0 / 332.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3056, allocations: 1.094 kB / 332.2 MB, free: 13.83 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.00141/0.307, allocations: 0.6158 MB / 332.8 MB, free: 13.29 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3071, allocations: 9.938 kB / 332.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.3074, allocations: 52.77 kB / 332.9 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.3079, allocations: 318.1 kB / 333.2 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.3081, allocations: 89.14 kB / 333.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.456e-05/0.3081, allocations: 36.75 kB / 333.3 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008406/0.309, allocations: 424.4 kB / 333.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.309, allocations: 0 / 333.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.3091, allocations: 11.06 kB / 333.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.3091, allocations: 7.125 kB / 333.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.3102, allocations: 487.5 kB / 334.2 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.3119, allocations: 0.9929 MB / 335.2 MB, free: 11.12 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008409/0.3128, allocations: 421.2 kB / 335.7 MB, free: 10.71 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.3133, allocations: 242.1 kB / 335.9 MB, free: 10.47 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.3133, allocations: 8.438 kB / 335.9 MB, free: 10.46 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.3134, allocations: 35 kB / 335.9 MB, free: 10.42 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.993e-06/0.3134, allocations: 0 / 335.9 MB, free: 10.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.006038/0.3194, allocations: 2.23 MB / 338.2 MB, free: 8.074 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.3195, allocations: 85.67 kB / 338.2 MB, free: 7.973 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.3199, allocations: 263 kB / 338.5 MB, free: 7.707 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.32, allocations: 41.64 kB / 338.5 MB, free: 7.66 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3201, allocations: 137.2 kB / 338.7 MB, free: 7.52 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.3203, allocations: 185.2 kB / 338.9 MB, free: 7.336 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/0.3204, allocations: 49.69 kB / 338.9 MB, free: 7.281 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3205, allocations: 334.8 kB / 339.2 MB, free: 6.945 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/0.321, allocations: 205 kB / 339.4 MB, free: 6.746 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.3215, allocations: 252.6 kB / 339.7 MB, free: 6.488 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009118/0.3224, allocations: 416.4 kB / 340.1 MB, free: 6.078 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3224, allocations: 0 / 340.1 MB, free: 6.078 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001328/0.3237, allocations: 0.6251 MB / 340.7 MB, free: 5.441 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.3238, allocations: 7.938 kB / 340.7 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3238, allocations: 0 / 340.7 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008043/0.3246, allocations: 261.8 kB / 341 MB, free: 5.176 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.3249, allocations: 67.89 kB / 341 MB, free: 5.109 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003984/0.3289, allocations: 2.698 MB / 343.7 MB, free: 2.281 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003902/0.3293, allocations: 35.97 kB / 343.8 MB, free: 2.246 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/0.3294, allocations: 19.98 kB / 343.8 MB, free: 2.227 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.0002618/0.3297, allocations: 161.9 kB / 344 MB, free: 2.059 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.978e-05/0.3298, allocations: 31.62 kB / 344 MB, free: 2.027 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.3299, allocations: 55.23 kB / 344 MB, free: 1.973 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3299, allocations: 11.94 kB / 344 MB, free: 1.961 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3299, allocations: 0 / 344 MB, free: 1.961 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3299, allocations: 3.984 kB / 344.1 MB, free: 1.957 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.3322, allocations: 1.28 MB / 345.3 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3322, allocations: 4.031 kB / 345.3 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.3325, allocations: 63.89 kB / 345.4 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006671/0.3332, allocations: 240.6 kB / 345.6 MB, free: 316 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.3333, allocations: 15.98 kB / 345.6 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00367/0.337, allocations: 2.62 MB / 348.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.337, allocations: 0 / 348.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.3388, allocations: 0.9807 MB / 349.2 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.3391, allocations: 152.6 kB / 349.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.823e-05/0.3391, allocations: 15.94 kB / 349.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.3394, allocations: 40.03 kB / 349.5 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.3396, allocations: 68.33 kB / 349.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.3397, allocations: 19.98 kB / 349.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.34, allocations: 200.5 kB / 349.7 MB, free: 12.03 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.34, allocations: 0 / 349.7 MB, free: 12.03 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000671/0.3407, allocations: 148 kB / 349.9 MB, free: 11.88 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.0002761/0.3409, allocations: 147.1 kB / 350 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.3425, allocations: 0.7151 MB / 350.7 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3425, allocations: 0 / 350.7 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008425/0.3434, allocations: 487.7 kB / 351.2 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.3439, allocations: 40.36 kB / 351.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3456, allocations: 0.9723 MB / 352.2 MB, free: 9.477 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3461, allocations: 0.797 MB / 353 MB, free: 8.652 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.3463, allocations: 70.92 kB / 353.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3464, allocations: 31.42 kB / 353.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3464, allocations: 0 / 353.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of Templates: time 0.0144/0.3608, allocations: 7.157 MB / 360.3 MB, free: 1.387 MB / 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)