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.008326/0.008327, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001703/0.001703, allocations: 186.1 kB / 16.67 MB, free: 5.969 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.565/1.565, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.002145/0.002145, allocations: 53.55 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1395, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006851/0.1465, allocations: 3.114 MB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003639/0.1501, allocations: 1.013 MB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006043/0.1508, allocations: 19.88 kB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005721/0.1514, allocations: 83.17 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004146/0.1519, allocations: 103.1 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000864/0.1528, allocations: 243.6 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007969/0.1536, allocations: 0.5185 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004548/0.154, allocations: 173.2 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.1544, allocations: 195.2 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.1548, allocations: 210.9 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.133e-05/0.1549, allocations: 51.94 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.299e-05/0.155, allocations: 40 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002447/0.1553, allocations: 103.6 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.1556, allocations: 214.8 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007871/0.1564, allocations: 0.4904 MB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1564, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1564, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1564, allocations: 0 / 379.7 MB, free: 10.75 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.001873/0.1583, allocations: 0.7716 MB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.1584, allocations: 12.03 kB / 380.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.1585, allocations: 52.28 kB / 380.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007968/0.1593, allocations: 379.6 kB / 380.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.323e-05/0.1594, allocations: 29.38 kB / 380.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.1595, allocations: 36.38 kB / 381 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.1608, allocations: 450.7 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.1609, allocations: 11.91 kB / 381.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.1609, allocations: 12 kB / 381.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.161, allocations: 12 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.1624, allocations: 375.6 kB / 381.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003208/0.1657, allocations: 1.575 MB / 383.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1669, allocations: 311.7 kB / 383.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006667/0.1676, allocations: 160.8 kB / 383.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.243e-05/0.1676, allocations: 7.938 kB / 383.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.1677, allocations: 42.55 kB / 383.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.444e-06/0.1677, allocations: 0 / 383.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.004922/0.1726, allocations: 1.377 MB / 385.3 MB, free: 4.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.49e-05/0.1727, allocations: 85.05 kB / 385.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006362/0.1734, allocations: 361.6 kB / 385.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.006e-05/0.1735, allocations: 33.7 kB / 385.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.1737, allocations: 247.8 kB / 386 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.1739, allocations: 114.5 kB / 386.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.1741, allocations: 78.06 kB / 386.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.1743, allocations: 354.8 kB / 386.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007298/0.175, allocations: 170.5 kB / 386.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008071/0.1759, allocations: 244.8 kB / 386.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.1773, allocations: 395.9 kB / 387.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1773, allocations: 0 / 387.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001743/0.1791, allocations: 492.8 kB / 387.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.1791, allocations: 8 kB / 387.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1791, allocations: 224 / 387.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.077e-05/0.1792, allocations: 8 kB / 387.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.1805, allocations: 215.6 kB / 388 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/0.183, allocations: 1.572 MB / 389.6 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004578/0.1834, allocations: 39.89 kB / 389.6 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.1835, allocations: 16 kB / 389.6 MB, free: 208 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007342/0.1842, allocations: 272.8 kB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006673/0.1849, allocations: 244.9 kB / 390.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001096/0.186, allocations: 371.7 kB / 390.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.108e-06/0.1861, allocations: 4 kB / 390.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001324/0.1874, allocations: 468.8 kB / 391 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1874, allocations: 4 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1874, allocations: 7.938 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.1875, allocations: 4 kB / 391 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.1881, allocations: 116 kB / 391.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1881, allocations: 11.94 kB / 391.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.1886, allocations: 39.95 kB / 391.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.1886, allocations: 12 kB / 391.2 MB, free: 14.62 MB / 334.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.0001998/0.1888, allocations: 208.1 kB / 391.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.62e-05/0.1889, allocations: 39.53 kB / 391.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.189, allocations: 48.25 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.1891, allocations: 15.92 kB / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1891, allocations: 0 / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1891, allocations: 0 / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/0.1913, allocations: 0.9147 MB / 392.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.1913, allocations: 4 kB / 392.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.1919, allocations: 91.84 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.1919, allocations: 4 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.1919, allocations: 8 kB / 392.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1919, allocations: 4.125 kB / 392.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.1919, allocations: 4 kB / 392.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.1939, allocations: 0.663 MB / 393.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.1941, allocations: 140.7 kB / 393.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/0.1942, allocations: 8 kB / 393.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004221/0.1946, allocations: 35.95 kB / 393.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1947, allocations: 19.97 kB / 393.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.1948, allocations: 12 kB / 393.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003741/0.1951, allocations: 251.2 kB / 393.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1952, allocations: 0 / 393.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008686/0.196, allocations: 139.9 kB / 393.8 MB, free: 11.9 MB / 334.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.0001551/0.1962, allocations: 111.6 kB / 393.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.1989, allocations: 0.6951 MB / 394.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1989, allocations: 0 / 394.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.1996, allocations: 180.2 kB / 394.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.2006, allocations: 101.5 kB / 394.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.2035, allocations: 1.007 MB / 395.8 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.2042, allocations: 0.8234 MB / 396.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004505/0.2047, allocations: 63.22 kB / 396.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.2048, allocations: 31.44 kB / 396.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2049, allocations: 0 / 396.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of Templates: time 0.01634/0.2212, allocations: 4.732 MB / 401.5 MB, free: 4.094 MB / 334.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)