Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001128/0.001128, allocations: 88.83 kB / 16.3 MB, free: 5.996 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.001267/0.001267, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.67/1.67, allocations: 205.4 MB / 223.4 MB, free: 5.559 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.0004779/0.000478, allocations: 8 kB / 280.1 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2686, allocations: 47.58 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00234/0.271, allocations: 1.888 MB / 329.6 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.2725, allocations: 0.9217 MB / 330.5 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2727, allocations: 6.75 kB / 330.5 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.2728, allocations: 31.23 kB / 330.5 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004953/0.2733, allocations: 137.7 kB / 330.7 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.2736, allocations: 136.9 kB / 330.8 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.274, allocations: 256.5 kB / 331.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.2742, allocations: 49 kB / 331.1 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.2744, allocations: 158.6 kB / 331.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002693/0.2747, allocations: 188.7 kB / 331.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.586e-05/0.2748, allocations: 17.16 kB / 331.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.275, allocations: 86 kB / 331.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.2751, allocations: 88.53 kB / 331.6 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.204e-05/0.2752, allocations: 70.77 kB / 331.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.2756, allocations: 312.6 kB / 332 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.2756, allocations: 1.031 kB / 332 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2756, allocations: 0 / 332 MB, free: 14.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2756, allocations: 0 / 332 MB, free: 14.25 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.001159/0.2767, allocations: 0.5844 MB / 332.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2768, allocations: 9.969 kB / 332.6 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.2771, allocations: 50.52 kB / 332.6 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.2776, allocations: 294.1 kB / 332.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2777, allocations: 86.83 kB / 333 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.2778, allocations: 25.34 kB / 333 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007278/0.2785, allocations: 385 kB / 333.4 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.2786, allocations: 1.031 kB / 333.4 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.2786, allocations: 9.938 kB / 333.4 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2786, allocations: 6.656 kB / 333.4 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009091/0.2796, allocations: 425.1 kB / 333.9 MB, free: 12.9 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.2817, allocations: 1.255 MB / 335.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.2824, allocations: 359.7 kB / 335.5 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.2824, allocations: 12.14 kB / 335.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.2824, allocations: 34.56 kB / 335.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.824e-06/0.2825, allocations: 0 / 335.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004766/0.2872, allocations: 1.949 MB / 337.5 MB, free: 9.438 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.2873, allocations: 84.86 kB / 337.5 MB, free: 9.336 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.2876, allocations: 242.2 kB / 337.8 MB, free: 9.086 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.2877, allocations: 37.7 kB / 337.8 MB, free: 9.043 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.231e-05/0.2877, allocations: 132.7 kB / 337.9 MB, free: 8.91 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.2879, allocations: 153.8 kB / 338.1 MB, free: 8.758 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/0.2879, allocations: 8 kB / 338.1 MB, free: 8.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.288, allocations: 334.8 kB / 338.4 MB, free: 8.414 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.2884, allocations: 176.7 kB / 338.6 MB, free: 8.242 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.2888, allocations: 229.9 kB / 338.8 MB, free: 7.996 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/0.2891, allocations: 168.7 kB / 339 MB, free: 7.836 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.2892, allocations: 0 / 339 MB, free: 7.836 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001027/0.2902, allocations: 0.5591 MB / 339.5 MB, free: 7.266 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2902, allocations: 8 kB / 339.6 MB, free: 7.258 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2902, allocations: 0 / 339.6 MB, free: 7.258 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007302/0.291, allocations: 248.7 kB / 339.8 MB, free: 7.012 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.2912, allocations: 51.91 kB / 339.8 MB, free: 6.961 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.295, allocations: 2.715 MB / 342.6 MB, free: 4.113 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.2953, allocations: 23.98 kB / 342.6 MB, free: 4.09 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.2954, allocations: 23.98 kB / 342.6 MB, free: 4.066 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.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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.2956, allocations: 153.8 kB / 342.8 MB, free: 3.906 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.2956, allocations: 27.72 kB / 342.8 MB, free: 3.879 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.211e-05/0.2957, allocations: 46.98 kB / 342.8 MB, free: 3.832 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.2958, allocations: 4 kB / 342.8 MB, free: 3.828 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.2958, allocations: 3.953 kB / 342.8 MB, free: 3.824 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.2958, allocations: 7.984 kB / 342.8 MB, free: 3.816 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.2977, allocations: 1.085 MB / 343.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2977, allocations: 0 / 343.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.2979, allocations: 51.84 kB / 344 MB, free: 2.621 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006817/0.2986, allocations: 240.8 kB / 344.2 MB, free: 2.383 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.2986, allocations: 12 kB / 344.2 MB, free: 2.371 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.3026, allocations: 2.651 MB / 346.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3026, allocations: 0 / 346.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.3041, allocations: 0.8298 MB / 347.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/0.3043, allocations: 136.8 kB / 347.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.324e-05/0.3044, allocations: 11.98 kB / 347.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.3047, allocations: 27.98 kB / 347.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.3048, allocations: 75.73 kB / 348 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.3049, allocations: 16 kB / 348 MB, free: 14.46 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002138/0.3051, allocations: 181.5 kB / 348.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3051, allocations: 4 kB / 348.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006607/0.3058, allocations: 140 kB / 348.3 MB, free: 14.14 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 (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.0002445/0.306, allocations: 135.2 kB / 348.4 MB, free: 14 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.3073, allocations: 0.6252 MB / 349 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3073, allocations: 4 kB / 349.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.308, allocations: 433.5 kB / 349.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.3083, allocations: 32 kB / 349.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.3097, allocations: 0.8397 MB / 350.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.3101, allocations: 0.792 MB / 351.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.3103, allocations: 54.95 kB / 351.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.968e-05/0.3104, allocations: 23.42 kB / 351.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3104, allocations: 0 / 351.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of Templates: time 0.01143/0.3219, allocations: 6.366 MB / 357.6 MB, free: 4.754 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) Environment - environmentSimulation: