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.006222/0.006222, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001142/0.001142, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.601/1.601, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.00122/0.00122, allocations: 54.3 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1067, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004513/0.1113, allocations: 3.118 MB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1131, allocations: 1.01 MB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002402/0.1133, allocations: 11.94 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003919/0.1137, allocations: 91.16 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.114, allocations: 103.1 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.1145, allocations: 235.6 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.1151, allocations: 0.5224 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.1154, allocations: 169.2 kB / 378.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.1156, allocations: 191.2 kB / 378.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.1159, allocations: 218.9 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-05/0.116, allocations: 40 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.279e-05/0.116, allocations: 40 kB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.1161, allocations: 103.6 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.1163, allocations: 214.8 kB / 379.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.1168, allocations: 498.1 kB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1168, allocations: 0 / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1168, allocations: 4 kB / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.1168, allocations: 4 kB / 379.7 MB, free: 10.76 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.001374/0.1182, allocations: 0.7755 MB / 380.5 MB, free: 9.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1183, allocations: 8.031 kB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1184, allocations: 52.28 kB / 380.5 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005343/0.1189, allocations: 371.6 kB / 380.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.119, allocations: 37.36 kB / 380.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.119, allocations: 44.36 kB / 381 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008677/0.1199, allocations: 450.7 kB / 381.4 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.1199, allocations: 3.906 kB / 381.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.12, allocations: 16 kB / 381.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.12, allocations: 8 kB / 381.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1211, allocations: 375.6 kB / 381.8 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.1234, allocations: 1.563 MB / 383.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000834/0.1242, allocations: 314.6 kB / 383.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/0.1247, allocations: 160.8 kB / 383.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.1247, allocations: 11.92 kB / 383.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.1248, allocations: 42.56 kB / 383.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.814e-06/0.1248, allocations: 0 / 383.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003441/0.1282, allocations: 1.381 MB / 385.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.1283, allocations: 85.11 kB / 385.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.1289, allocations: 361.6 kB / 385.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.129, allocations: 29.7 kB / 385.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.1293, allocations: 247.8 kB / 386 MB, free: 4.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1294, allocations: 114.5 kB / 386.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1296, allocations: 78.06 kB / 386.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1298, allocations: 350.8 kB / 386.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008346/0.1306, allocations: 178.5 kB / 386.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007839/0.1314, allocations: 244.8 kB / 386.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.1329, allocations: 395.8 kB / 387.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1329, allocations: 4 kB / 387.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001662/0.1346, allocations: 492.8 kB / 387.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.1346, allocations: 4 kB / 387.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.1346, allocations: 7.938 kB / 387.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-05/0.1347, allocations: 7.984 kB / 387.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.136, allocations: 211.8 kB / 388 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.1385, allocations: 1.572 MB / 389.6 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.1389, allocations: 39.98 kB / 389.6 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.139, allocations: 16 kB / 389.6 MB, free: 216 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007776/0.1398, allocations: 280.9 kB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006714/0.1405, allocations: 240.8 kB / 390.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001155/0.1416, allocations: 367.7 kB / 390.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.507e-06/0.1417, allocations: 0 / 390.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00141/0.1431, allocations: 468.8 kB / 391 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.1431, allocations: 4 kB / 391 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1431, allocations: 7.938 kB / 391 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.1432, allocations: 8.219 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006463/0.1438, allocations: 119.8 kB / 391.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.1438, allocations: 11.92 kB / 391.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.1443, allocations: 31.97 kB / 391.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.1443, allocations: 12 kB / 391.2 MB, free: 14.63 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.0002307/0.1446, allocations: 208.1 kB / 391.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.1447, allocations: 39.53 kB / 391.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.1448, allocations: 52.23 kB / 391.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1449, allocations: 3.938 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1449, allocations: 4 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1449, allocations: 4 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.1477, allocations: 0.9225 MB / 392.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1477, allocations: 0 / 392.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000572/0.1483, allocations: 88 kB / 392.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/0.1483, allocations: 0 / 392.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.116e-05/0.1483, allocations: 12 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.213e-06/0.1484, allocations: 4 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1484, allocations: 0 / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.1505, allocations: 0.6669 MB / 393.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.1508, allocations: 140.7 kB / 393.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.636e-05/0.1509, allocations: 8 kB / 393.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.1514, allocations: 31.95 kB / 393.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1515, allocations: 23.97 kB / 393.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.1515, allocations: 8 kB / 393.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.152, allocations: 255.2 kB / 393.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.152, allocations: 0 / 393.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001061/0.1531, allocations: 143.9 kB / 393.7 MB, free: 11.91 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.00022/0.1533, allocations: 107.7 kB / 393.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.1562, allocations: 0.6914 MB / 394.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.1562, allocations: 0 / 394.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.1569, allocations: 192.4 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.158, allocations: 101.7 kB / 394.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/0.161, allocations: 1.002 MB / 395.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/0.1622, allocations: 0.8156 MB / 396.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004062/0.1626, allocations: 67.22 kB / 396.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.1628, allocations: 31.44 kB / 396.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1628, allocations: 0 / 396.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of Templates: time 0.016/0.1788, allocations: 4.732 MB / 401.5 MB, free: 4.105 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)