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.0009395/0.0009395, allocations: 100 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.001037/0.001037, 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.69/1.69, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004769/0.0004771, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 47.59 MB / 326.4 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00267/0.3006, allocations: 1.879 MB / 328.3 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.3023, allocations: 0.9221 MB / 329.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.3025, allocations: 2.75 kB / 329.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.3027, allocations: 35.75 kB / 329.3 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005994/0.3033, allocations: 130 kB / 329.4 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.3037, allocations: 136.1 kB / 329.5 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004458/0.3041, allocations: 259.5 kB / 329.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.3043, allocations: 56.69 kB / 329.9 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.3046, allocations: 155.1 kB / 330 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.305, allocations: 189.5 kB / 330.2 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.251e-05/0.305, allocations: 16.19 kB / 330.2 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.3052, allocations: 90.02 kB / 330.3 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.3054, allocations: 77.09 kB / 330.4 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.3055, allocations: 74.98 kB / 330.4 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.3059, allocations: 313.3 kB / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.306, allocations: 0 / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.306, allocations: 0 / 330.7 MB, free: 14.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.306, allocations: 4 kB / 330.8 MB, free: 14.23 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.001236/0.3072, allocations: 0.585 MB / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3073, allocations: 9.062 kB / 331.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.3077, allocations: 50.98 kB / 331.4 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.3082, allocations: 297.8 kB / 331.7 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.3084, allocations: 87.48 kB / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.61e-05/0.3085, allocations: 24.97 kB / 331.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007376/0.3092, allocations: 376.2 kB / 332.2 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.3093, allocations: 9.922 kB / 332.2 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.3093, allocations: 11.5 kB / 332.2 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.3093, allocations: 6 kB / 332.2 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.3104, allocations: 428.8 kB / 332.6 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.3125, allocations: 1.259 MB / 333.9 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.3132, allocations: 358.8 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.3132, allocations: 4 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.3133, allocations: 34.56 kB / 334.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.3133, allocations: 4 kB / 334.3 MB, free: 11.48 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.00468/0.318, allocations: 1.949 MB / 336.2 MB, free: 9.418 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.3181, allocations: 84.86 kB / 336.3 MB, free: 9.316 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.3184, allocations: 238.2 kB / 336.5 MB, free: 9.07 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.3184, allocations: 33.7 kB / 336.6 MB, free: 9.031 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3185, allocations: 136.7 kB / 336.7 MB, free: 8.895 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.3187, allocations: 154 kB / 336.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.338e-05/0.3187, allocations: 11.94 kB / 336.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3188, allocations: 334.8 kB / 337.2 MB, free: 8.395 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.3192, allocations: 168.8 kB / 337.3 MB, free: 8.23 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003863/0.3196, allocations: 233.9 kB / 337.6 MB, free: 7.98 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.3199, allocations: 156.8 kB / 337.7 MB, free: 7.832 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3199, allocations: 0 / 337.7 MB, free: 7.832 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001098/0.321, allocations: 0.563 MB / 338.3 MB, free: 7.258 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3211, allocations: 11.94 kB / 338.3 MB, free: 7.246 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.3211, allocations: 0 / 338.3 MB, free: 7.246 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007073/0.3218, allocations: 248.7 kB / 338.5 MB, free: 7 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.322, allocations: 55.91 kB / 338.6 MB, free: 6.945 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003651/0.3257, allocations: 2.707 MB / 341.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.326, allocations: 31.97 kB / 341.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-05/0.326, allocations: 20 kB / 341.4 MB, free: 4.055 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.0002038/0.3262, allocations: 157.8 kB / 341.5 MB, free: 3.891 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.3263, allocations: 23.72 kB / 341.5 MB, free: 3.867 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.139e-05/0.3264, allocations: 46.98 kB / 341.6 MB, free: 3.82 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.3264, allocations: 8 kB / 341.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3264, allocations: 3.953 kB / 341.6 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3264, allocations: 0 / 341.6 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/0.3284, allocations: 1.089 MB / 342.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.3284, allocations: 0 / 342.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.3286, allocations: 51.92 kB / 342.7 MB, free: 2.609 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006595/0.3293, allocations: 240.9 kB / 343 MB, free: 2.371 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.3293, allocations: 15.97 kB / 343 MB, free: 2.355 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.3329, allocations: 2.643 MB / 345.6 MB, free: 15.58 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.3329, allocations: 3.984 kB / 345.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.3344, allocations: 0.8298 MB / 346.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.3345, allocations: 140.8 kB / 346.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.332e-05/0.3346, allocations: 12 kB / 346.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.3349, allocations: 31.97 kB / 346.6 MB, free: 14.53 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.3351, allocations: 71.75 kB / 346.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.3351, allocations: 20.05 kB / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.3354, allocations: 177.5 kB / 346.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3354, allocations: 0 / 346.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006596/0.3361, allocations: 144 kB / 347 MB, free: 14.12 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.0002865/0.3364, allocations: 127.2 kB / 347.2 MB, free: 13.99 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.3377, allocations: 0.6367 MB / 347.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3377, allocations: 0 / 347.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007443/0.3384, allocations: 429.6 kB / 348.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.3388, allocations: 36.06 kB / 348.3 MB, free: 12.87 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.3403, allocations: 0.8358 MB / 349.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.3409, allocations: 0.7842 MB / 349.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002116/0.3411, allocations: 66.92 kB / 349.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.3412, allocations: 27.42 kB / 350 MB, free: 11.11 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3412, allocations: 0 / 350 MB, free: 11.11 MB / 286.1 MB Notification: Performance of Templates: time 0.01279/0.354, allocations: 6.358 MB / 356.3 MB, free: 4.742 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: