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.001009/0.001009, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001133/0.001133, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004717/0.0004719, allocations: 14.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3082, allocations: 47.58 MB / 326.4 MB, free: 1.539 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002765/0.311, allocations: 1.945 MB / 328.4 MB, free: 20 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.313, allocations: 0.9689 MB / 329.4 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.3132, allocations: 7.469 kB / 329.4 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.3133, allocations: 31.05 kB / 329.4 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.3139, allocations: 152.2 kB / 329.5 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.3142, allocations: 141.3 kB / 329.7 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.3147, allocations: 288.6 kB / 330 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.3149, allocations: 83.56 kB / 330 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/0.3152, allocations: 178.1 kB / 330.2 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.3155, allocations: 209.1 kB / 330.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.3156, allocations: 20.25 kB / 330.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.3158, allocations: 88.77 kB / 330.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.316, allocations: 89.67 kB / 330.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.534e-05/0.3161, allocations: 81.67 kB / 330.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.3165, allocations: 357.9 kB / 331 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3165, allocations: 0 / 331 MB, free: 14.14 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3165, allocations: 0 / 331 MB, free: 14.14 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3165, allocations: 0 / 331 MB, free: 14.14 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.001275/0.3178, allocations: 0.6117 MB / 331.7 MB, free: 13.62 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.3179, allocations: 8.812 kB / 331.7 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003276/0.3182, allocations: 56.58 kB / 331.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005067/0.3187, allocations: 317 kB / 332 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.3189, allocations: 88.27 kB / 332.1 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.047e-05/0.319, allocations: 32.06 kB / 332.1 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008206/0.3198, allocations: 414.4 kB / 332.6 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3198, allocations: 5.344 kB / 332.6 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.3199, allocations: 14.44 kB / 332.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.3199, allocations: 7.281 kB / 332.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.3211, allocations: 489 kB / 333.1 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.3231, allocations: 0.9796 MB / 334 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008635/0.324, allocations: 417.3 kB / 334.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.863e-05/0.3241, allocations: 8.422 kB / 334.5 MB, free: 11.44 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.3241, allocations: 43 kB / 334.5 MB, free: 11.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=49): time 1.744e-06/0.3241, allocations: 3.938 kB / 334.5 MB, free: 11.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=55): time 0.005318/0.3294, allocations: 2.207 MB / 336.7 MB, free: 9.062 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.3295, allocations: 85.66 kB / 336.8 MB, free: 8.961 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.3298, allocations: 263.1 kB / 337 MB, free: 8.695 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.3299, allocations: 33.7 kB / 337.1 MB, free: 8.656 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.755e-05/0.33, allocations: 137.1 kB / 337.2 MB, free: 8.516 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.3302, allocations: 181.4 kB / 337.4 MB, free: 8.336 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.3302, allocations: 12 kB / 337.4 MB, free: 8.324 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.3304, allocations: 338.8 kB / 337.7 MB, free: 7.984 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004341/0.3309, allocations: 205 kB / 337.9 MB, free: 7.785 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.3314, allocations: 252.6 kB / 338.2 MB, free: 7.527 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.3318, allocations: 190.2 kB / 338.4 MB, free: 7.344 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3318, allocations: 0 / 338.4 MB, free: 7.344 MB / 270.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001215/0.333, allocations: 0.629 MB / 339 MB, free: 6.707 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.3331, allocations: 7.953 kB / 339 MB, free: 6.699 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3331, allocations: 0 / 339 MB, free: 6.699 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007345/0.3338, allocations: 258.1 kB / 339.3 MB, free: 6.445 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.3342, allocations: 71.89 kB / 339.3 MB, free: 6.375 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00387/0.338, allocations: 2.738 MB / 342.1 MB, free: 3.504 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.3384, allocations: 39.95 kB / 342.1 MB, free: 3.465 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.3384, allocations: 19.98 kB / 342.1 MB, free: 3.445 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002553/0.3387, allocations: 153.8 kB / 342.3 MB, free: 3.285 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.066e-05/0.3388, allocations: 35.69 kB / 342.3 MB, free: 3.25 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.3389, allocations: 55.3 kB / 342.4 MB, free: 3.195 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3389, allocations: 4 kB / 342.4 MB, free: 3.191 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3389, allocations: 0 / 342.4 MB, free: 3.191 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3389, allocations: 3.984 kB / 342.4 MB, free: 3.188 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3412, allocations: 1.287 MB / 343.7 MB, free: 1.836 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3412, allocations: 4.031 kB / 343.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.3415, allocations: 71.84 kB / 343.7 MB, free: 1.762 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006278/0.3422, allocations: 240.6 kB / 344 MB, free: 1.523 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.644e-05/0.3422, allocations: 15.98 kB / 344 MB, free: 1.508 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003593/0.3458, allocations: 2.655 MB / 346.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3458, allocations: 0 / 346.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.3476, allocations: 0.9902 MB / 347.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.3478, allocations: 148.7 kB / 347.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.3479, allocations: 12 kB / 347.8 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003268/0.3482, allocations: 36.03 kB / 347.8 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.3484, allocations: 84.19 kB / 347.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.3485, allocations: 19.98 kB / 347.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.3487, allocations: 196.6 kB / 348.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3487, allocations: 0 / 348.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006818/0.3494, allocations: 148 kB / 348.3 MB, free: 13.05 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002811/0.3497, allocations: 143.2 kB / 348.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3512, allocations: 0.715 MB / 349.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3512, allocations: 0 / 349.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008451/0.3521, allocations: 487.7 kB / 349.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.3524, allocations: 36.48 kB / 349.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.354, allocations: 0.9333 MB / 350.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004379/0.3545, allocations: 0.8087 MB / 351.4 MB, free: 9.855 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000229/0.3547, allocations: 66.94 kB / 351.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.3548, allocations: 31.42 kB / 351.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3549, allocations: 0 / 351.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of Templates: time 0.01342/0.3683, allocations: 6.92 MB / 358.4 MB, free: 2.828 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: