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.001498/0.001498, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001822/0.001822, allocations: 193.1 kB / 16.13 MB, free: 6.707 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.529/1.529, allocations: 205.1 MB / 222 MB, free: 4.785 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.001798/0.001798, allocations: 55.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2924, allocations: 46.62 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003515/0.2959, allocations: 2.384 MB / 327.1 MB, free: 52 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.2977, allocations: 0.9666 MB / 328 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.2979, allocations: 7.562 kB / 328 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.2982, allocations: 31.08 kB / 328.1 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004137/0.2986, allocations: 113.9 kB / 328.2 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.2989, allocations: 153.6 kB / 328.3 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.2993, allocations: 397.6 kB / 328.7 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.2995, allocations: 59.3 kB / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.2997, allocations: 168.1 kB / 328.9 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.3, allocations: 205.9 kB / 329.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.3001, allocations: 19.91 kB / 329.2 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.3004, allocations: 95.47 kB / 329.2 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.3006, allocations: 88.5 kB / 329.3 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.3008, allocations: 155.3 kB / 329.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006023/0.3014, allocations: 423.2 kB / 329.9 MB, free: 14.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3014, allocations: 4.859 kB / 329.9 MB, free: 14.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.3014, allocations: 0 / 329.9 MB, free: 14.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.3014, allocations: 0 / 329.9 MB, free: 14.09 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.001302/0.3027, allocations: 0.6298 MB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3028, allocations: 9.562 kB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003371/0.3031, allocations: 47.61 kB / 330.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.3036, allocations: 302.8 kB / 330.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.3038, allocations: 91.91 kB / 331 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.318e-05/0.3039, allocations: 34.81 kB / 331 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008167/0.3047, allocations: 384 kB / 331.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3047, allocations: 6.062 kB / 331.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.3048, allocations: 9.906 kB / 331.4 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.3048, allocations: 7.344 kB / 331.4 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009938/0.3058, allocations: 414.7 kB / 331.8 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.3079, allocations: 1.235 MB / 333 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.3086, allocations: 359 kB / 333.4 MB, free: 11.23 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/0.309, allocations: 192.8 kB / 333.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.309, allocations: 8 kB / 333.6 MB, free: 11.03 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.3091, allocations: 35.28 kB / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 3.025e-06/0.3091, allocations: 0 / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004905/0.314, allocations: 1.921 MB / 335.5 MB, free: 8.949 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.3141, allocations: 84.86 kB / 335.6 MB, free: 8.848 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.3144, allocations: 242.2 kB / 335.9 MB, free: 8.598 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.927e-05/0.3144, allocations: 37.7 kB / 335.9 MB, free: 8.555 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.3145, allocations: 128.7 kB / 336 MB, free: 8.426 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3147, allocations: 161.9 kB / 336.2 MB, free: 8.266 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.3148, allocations: 82.12 kB / 336.3 MB, free: 8.18 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.315, allocations: 330.8 kB / 336.6 MB, free: 7.848 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.3153, allocations: 172.8 kB / 336.8 MB, free: 7.68 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003989/0.3158, allocations: 229.8 kB / 337 MB, free: 7.434 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/0.3164, allocations: 347.2 kB / 337.3 MB, free: 7.082 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3165, allocations: 0 / 337.3 MB, free: 7.082 MB / 270.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001183/0.3176, allocations: 0.559 MB / 337.9 MB, free: 6.516 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3177, allocations: 8 kB / 337.9 MB, free: 6.508 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3177, allocations: 0 / 337.9 MB, free: 6.508 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008363/0.3185, allocations: 248.7 kB / 338.1 MB, free: 6.262 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.3188, allocations: 51.91 kB / 338.2 MB, free: 6.211 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004037/0.3228, allocations: 2.644 MB / 340.8 MB, free: 3.434 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.3232, allocations: 32.06 kB / 340.9 MB, free: 3.402 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.3232, allocations: 16 kB / 340.9 MB, free: 3.387 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.0002133/0.3234, allocations: 161.7 kB / 341 MB, free: 3.219 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.3235, allocations: 27.66 kB / 341.1 MB, free: 3.191 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.175e-05/0.3236, allocations: 42.98 kB / 341.1 MB, free: 3.148 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.3236, allocations: 4 kB / 341.1 MB, free: 3.145 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3236, allocations: 4 kB / 341.1 MB, free: 3.141 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3236, allocations: 0 / 341.1 MB, free: 3.141 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002006/0.3257, allocations: 1.1 MB / 342.2 MB, free: 1.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3257, allocations: 0 / 342.2 MB, free: 1.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.3259, allocations: 43.91 kB / 342.2 MB, free: 1.938 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007035/0.3266, allocations: 244.8 kB / 342.5 MB, free: 1.695 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.3267, allocations: 11.98 kB / 342.5 MB, free: 1.684 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003672/0.3304, allocations: 2.582 MB / 345.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3304, allocations: 3.938 kB / 345.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.332, allocations: 0.8295 MB / 345.9 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.3322, allocations: 136.8 kB / 346 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/0.3323, allocations: 11.98 kB / 346.1 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3325, allocations: 24.11 kB / 346.1 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.3327, allocations: 59.89 kB / 346.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.3328, allocations: 12 kB / 346.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.333, allocations: 185.4 kB / 346.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.333, allocations: 0 / 346.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00071/0.3337, allocations: 140 kB / 346.5 MB, free: 13.53 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.0002827/0.334, allocations: 139.1 kB / 346.6 MB, free: 13.39 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.3354, allocations: 0.6213 MB / 347.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3354, allocations: 0 / 347.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007144/0.3361, allocations: 433.6 kB / 347.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.3366, allocations: 36.09 kB / 347.7 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.3382, allocations: 0.815 MB / 348.5 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.3387, allocations: 0.7803 MB / 349.3 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002067/0.3389, allocations: 62.94 kB / 349.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.519e-05/0.339, allocations: 27.41 kB / 349.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of SimCode: time 5.31e-07/0.339, allocations: 0 / 349.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of Templates: time 0.0125/0.3515, allocations: 6.659 MB / 356 MB, free: 3.875 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)