Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008034/0.0008034, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008276/0.0008276, allocations: 172.7 kB / 15.95 MB, free: 204 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.595/1.595, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0005915/0.0005916, allocations: 10.66 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.322, allocations: 47.58 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004335/0.3264, allocations: 2.653 MB / 329.1 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.3296, allocations: 0.9556 MB / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005138/0.3302, allocations: 16.72 kB / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.3306, allocations: 59.19 kB / 330.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.3309, allocations: 86.77 kB / 330.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000679/0.3316, allocations: 167.1 kB / 330.4 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006592/0.3323, allocations: 472.8 kB / 330.9 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.3327, allocations: 135.7 kB / 331 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.333, allocations: 155.7 kB / 331.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/0.3332, allocations: 162.8 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.982e-05/0.3333, allocations: 14.53 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.3333, allocations: 16.25 kB / 331.3 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3335, allocations: 79.86 kB / 331.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.3336, allocations: 94.89 kB / 331.5 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.334, allocations: 345.7 kB / 331.8 MB, free: 13.31 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.334, allocations: 0 / 331.8 MB, free: 13.31 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.5e-06/0.334, allocations: 0 / 331.8 MB, free: 13.31 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.3341, allocations: 3.938 kB / 331.8 MB, free: 13.31 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001725/0.3358, allocations: 0.7189 MB / 332.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.953e-05/0.3359, allocations: 9.781 kB / 332.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.336, allocations: 48.94 kB / 332.6 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007126/0.3367, allocations: 352 kB / 333 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.3368, allocations: 27.75 kB / 333 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-05/0.3369, allocations: 40.56 kB / 333 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.3379, allocations: 472.2 kB / 333.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.338, allocations: 1.812 kB / 333.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.338, allocations: 16.06 kB / 333.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.338, allocations: 8.875 kB / 333.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.3391, allocations: 419.4 kB / 333.9 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.3413, allocations: 1.587 MB / 335.5 MB, free: 10.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000827/0.3421, allocations: 346.8 kB / 335.8 MB, free: 9.898 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/0.3426, allocations: 192.6 kB / 336 MB, free: 9.707 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.3426, allocations: 4 kB / 336 MB, free: 9.703 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.3426, allocations: 34.55 kB / 336.1 MB, free: 9.66 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.734e-06/0.3427, allocations: 0 / 336.1 MB, free: 9.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.00328/0.3459, allocations: 1.521 MB / 337.6 MB, free: 8.047 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/0.346, allocations: 77.11 kB / 337.7 MB, free: 7.953 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000431/0.3465, allocations: 361.5 kB / 338 MB, free: 7.59 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.3465, allocations: 33.7 kB / 338.1 MB, free: 7.551 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.3467, allocations: 248 kB / 338.3 MB, free: 7.305 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.85e-05/0.3468, allocations: 106.4 kB / 338.4 MB, free: 7.199 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.3468, allocations: 12 kB / 338.4 MB, free: 7.188 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.347, allocations: 350.8 kB / 338.8 MB, free: 6.836 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/0.3475, allocations: 188.7 kB / 338.9 MB, free: 6.652 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005098/0.348, allocations: 268.8 kB / 339.2 MB, free: 6.355 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.3485, allocations: 203.9 kB / 339.4 MB, free: 6.156 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3485, allocations: 0 / 339.4 MB, free: 6.156 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001065/0.3495, allocations: 0.5286 MB / 339.9 MB, free: 5.621 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002091/0.3498, allocations: 152.1 kB / 340.1 MB, free: 5.441 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3498, allocations: 4 kB / 340.1 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.3498, allocations: 8 kB / 340.1 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.3507, allocations: 263.7 kB / 340.3 MB, free: 5.172 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/0.3524, allocations: 1.528 MB / 341.9 MB, free: 3.512 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.3528, allocations: 52.05 kB / 341.9 MB, free: 3.461 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.3528, allocations: 16 kB / 341.9 MB, free: 3.445 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-06/0.3529, allocations: 4 kB / 341.9 MB, free: 3.441 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009047/0.3538, allocations: 439.6 kB / 342.4 MB, free: 3.012 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3538, allocations: 7.953 kB / 342.4 MB, free: 3.004 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.3538, allocations: 11.98 kB / 342.4 MB, free: 2.992 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.3543, allocations: 128 kB / 342.5 MB, free: 2.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3543, allocations: 7.938 kB / 342.5 MB, free: 2.859 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.3545, allocations: 43.95 kB / 342.6 MB, free: 2.816 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.3546, allocations: 16 kB / 342.6 MB, free: 2.801 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002505/0.3548, allocations: 241 kB / 342.8 MB, free: 2.555 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.3549, allocations: 43.47 kB / 342.9 MB, free: 2.512 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.752e-05/0.355, allocations: 52.19 kB / 342.9 MB, free: 2.461 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.355, allocations: 4 kB / 342.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.355, allocations: 0 / 342.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.355, allocations: 0 / 342.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.3566, allocations: 0.9651 MB / 343.9 MB, free: 1.426 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3566, allocations: 0 / 343.9 MB, free: 1.426 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.357, allocations: 99.86 kB / 344 MB, free: 1.328 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3571, allocations: 8.125 kB / 344 MB, free: 1.32 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.3571, allocations: 8 kB / 344 MB, free: 1.312 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.3571, allocations: 7.938 kB / 344 MB, free: 1.305 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3571, allocations: 0 / 344 MB, free: 1.305 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.3585, allocations: 0.7369 MB / 344.7 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.3587, allocations: 140.7 kB / 344.9 MB, free: 392 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.3587, allocations: 8 kB / 344.9 MB, free: 384 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.359, allocations: 43.95 kB / 344.9 MB, free: 340 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.3591, allocations: 27.91 kB / 345 MB, free: 312 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.3591, allocations: 8 kB / 345 MB, free: 304 kB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.3594, allocations: 251.2 kB / 345.2 MB, free: 56 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3594, allocations: 0 / 345.2 MB, free: 56 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005831/0.36, allocations: 136 kB / 345.3 MB, free: 15.92 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001325/0.3601, allocations: 103.5 kB / 345.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.3621, allocations: 0.8006 MB / 346.2 MB, free: 15.01 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3621, allocations: 4 kB / 346.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004517/0.3626, allocations: 200.1 kB / 346.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/0.3632, allocations: 101.4 kB / 346.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.3652, allocations: 1.217 MB / 347.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.3657, allocations: 0.8198 MB / 348.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002524/0.3659, allocations: 63.23 kB / 348.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.702e-05/0.366, allocations: 31.44 kB / 348.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of SimCode: time 9.41e-07/0.366, allocations: 0 / 348.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of Templates: time 0.008506/0.3745, allocations: 4.12 MB / 352.8 MB, free: 8.398 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)