Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006194/0.006194, allocations: 103.1 kB / 15.73 MB, free: 6.004 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.001318/0.001318, allocations: 193.8 kB / 16.68 MB, free: 5.93 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.6/1.6, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.001357/0.001357, allocations: 51.94 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1196, allocations: 46.61 MB / 373.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005374/0.125, allocations: 3.113 MB / 376.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.1272, allocations: 1.013 MB / 377.3 MB, free: 420 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.1275, allocations: 15.94 kB / 377.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004552/0.128, allocations: 95.16 kB / 377.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.1283, allocations: 99.08 kB / 377.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2309/0.3593, allocations: 228.9 kB / 377.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009886/0.3603, allocations: 0.5205 MB / 378.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.3607, allocations: 172 kB / 378.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.361, allocations: 203 kB / 378.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.3612, allocations: 210.5 kB / 378.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.208e-05/0.3613, allocations: 43.06 kB / 378.8 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.3614, allocations: 41.25 kB / 378.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.3615, allocations: 97.58 kB / 379 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002584/0.3618, allocations: 222.9 kB / 379.2 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008211/0.3626, allocations: 0.493 MB / 379.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3627, allocations: 1.344 kB / 379.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3627, allocations: 0 / 379.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.3627, allocations: 1.156 kB / 379.7 MB, free: 9.477 MB / 318.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.00147/0.3642, allocations: 0.766 MB / 380.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.3642, allocations: 10 kB / 380.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.3644, allocations: 61.69 kB / 380.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007095/0.3651, allocations: 375.7 kB / 380.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.891e-05/0.3651, allocations: 27.89 kB / 380.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.3652, allocations: 36.34 kB / 381 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.3662, allocations: 451.4 kB / 381.4 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.3663, allocations: 10.56 kB / 381.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.003e-05/0.3663, allocations: 21.75 kB / 381.4 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3664, allocations: 9.656 kB / 381.4 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.3674, allocations: 371.1 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.3694, allocations: 1.565 MB / 383.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008888/0.3703, allocations: 313 kB / 383.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.3708, allocations: 166.6 kB / 383.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.3709, allocations: 4.188 kB / 383.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.3709, allocations: 44.84 kB / 383.9 MB, free: 7.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.004e-06/0.3709, allocations: 0 / 383.9 MB, free: 7.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003366/0.3743, allocations: 1.382 MB / 385.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.3744, allocations: 80.45 kB / 385.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.3748, allocations: 362.4 kB / 385.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.3748, allocations: 38.73 kB / 385.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.375, allocations: 238.5 kB / 386 MB, free: 6.211 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.329e-05/0.375, allocations: 116.5 kB / 386.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.3752, allocations: 76.22 kB / 386.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3753, allocations: 353.5 kB / 386.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004836/0.3758, allocations: 176.1 kB / 386.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005089/0.3763, allocations: 250.9 kB / 386.9 MB, free: 5.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3773, allocations: 391.1 kB / 387.3 MB, free: 5.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3773, allocations: 4.812 kB / 387.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001196/0.3785, allocations: 495.2 kB / 387.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3786, allocations: 10.83 kB / 387.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3786, allocations: 6.094 kB / 387.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3786, allocations: 5.094 kB / 387.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009385/0.3796, allocations: 207.3 kB / 388 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.3811, allocations: 1.583 MB / 389.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003802/0.3815, allocations: 33.97 kB / 389.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.3815, allocations: 16.44 kB / 389.6 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005797/0.3821, allocations: 278.6 kB / 389.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004629/0.3826, allocations: 238.9 kB / 390.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007962/0.3834, allocations: 372.3 kB / 390.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.3834, allocations: 0 / 390.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001185/0.3846, allocations: 469.9 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3846, allocations: 7.625 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3846, allocations: 2.281 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.3846, allocations: 4.609 kB / 391 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/0.3852, allocations: 121.2 kB / 391.1 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3852, allocations: 10.66 kB / 391.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.3856, allocations: 34.77 kB / 391.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.3856, allocations: 22.83 kB / 391.2 MB, free: 3.031 MB / 318.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001859/0.3858, allocations: 198.7 kB / 391.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-05/0.3859, allocations: 38.88 kB / 391.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.386, allocations: 51.47 kB / 391.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.386, allocations: 6.75 kB / 391.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.3861, allocations: 0 / 391.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.3861, allocations: 3.469 kB / 391.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.388, allocations: 0.9165 MB / 392.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.388, allocations: 1.469 kB / 392.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.3884, allocations: 89.02 kB / 392.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3884, allocations: 2.406 kB / 392.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.3885, allocations: 12.55 kB / 392.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.3885, allocations: 5.344 kB / 392.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3885, allocations: 1.406 kB / 392.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.3901, allocations: 0.6681 MB / 393.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.3903, allocations: 137.3 kB / 393.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.3903, allocations: 8.406 kB / 393.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.3906, allocations: 31.72 kB / 393.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3907, allocations: 23.42 kB / 393.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3908, allocations: 11.5 kB / 393.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002915/0.391, allocations: 251.6 kB / 393.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3911, allocations: 7.938 kB / 393.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005638/0.3916, allocations: 134.6 kB / 393.7 MB, free: 1.598 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001195/0.3918, allocations: 111.1 kB / 393.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.3941, allocations: 0.6907 MB / 394.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3941, allocations: 0 / 394.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005053/0.3946, allocations: 183.2 kB / 394.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007396/0.3954, allocations: 95.16 kB / 394.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.3971, allocations: 1.015 MB / 395.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3975, allocations: 0.8248 MB / 396.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002657/0.3978, allocations: 62.39 kB / 396.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3979, allocations: 29.44 kB / 396.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3979, allocations: 5.375 kB / 396.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.01077/0.4086, allocations: 4.851 MB / 401.6 MB, free: 14.4 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)