Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001051/0.001051, allocations: 92.98 kB / 16.65 MB, free: 6.586 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.001182/0.001183, allocations: 187.1 kB / 17.57 MB, free: 6.199 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.898/1.898, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.000536/0.0005361, allocations: 12 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1191, allocations: 47.59 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003603/0.1228, allocations: 2.774 MB / 331.1 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1247, allocations: 0.9867 MB / 332.1 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.125, allocations: 19.78 kB / 332.1 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003391/0.1253, allocations: 59.5 kB / 332.1 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1256, allocations: 91.31 kB / 332.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005924/0.1262, allocations: 199.7 kB / 332.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005213/0.1267, allocations: 498.9 kB / 332.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003076/0.127, allocations: 149.3 kB / 333.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1273, allocations: 167.1 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.1275, allocations: 175 kB / 333.4 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.1276, allocations: 16 kB / 333.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.1276, allocations: 12 kB / 333.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1277, allocations: 83.56 kB / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1279, allocations: 204.5 kB / 333.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1284, allocations: 454.3 kB / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1284, allocations: 0 / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1284, allocations: 0 / 334.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1284, allocations: 0 / 334.2 MB, free: 13.87 MB / 286.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.001273/0.1297, allocations: 0.7133 MB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.1297, allocations: 12.02 kB / 334.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.1298, allocations: 52.31 kB / 334.9 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.1304, allocations: 367.6 kB / 335.3 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.1304, allocations: 33.31 kB / 335.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.1305, allocations: 40.28 kB / 335.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009237/0.1314, allocations: 474.7 kB / 335.8 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.1315, allocations: 7.938 kB / 335.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.1315, allocations: 12 kB / 335.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.1315, allocations: 12 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.1326, allocations: 419.6 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.1347, allocations: 1.586 MB / 337.8 MB, free: 9.965 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008551/0.1356, allocations: 342.6 kB / 338.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004962/0.1361, allocations: 188.7 kB / 338.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.1361, allocations: 3.938 kB / 338.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1362, allocations: 38.56 kB / 338.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.833e-06/0.1362, allocations: 0 / 338.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003479/0.1397, allocations: 1.525 MB / 339.9 MB, free: 7.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.1398, allocations: 81.11 kB / 340 MB, free: 7.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.1401, allocations: 361.6 kB / 340.4 MB, free: 7.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.1402, allocations: 37.64 kB / 340.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.1404, allocations: 243.9 kB / 340.6 MB, free: 7.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.369e-05/0.1405, allocations: 114.3 kB / 340.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.1405, allocations: 37.7 kB / 340.8 MB, free: 6.863 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1407, allocations: 354.8 kB / 341.1 MB, free: 6.508 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000495/0.1412, allocations: 192.7 kB / 341.3 MB, free: 6.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006452/0.1419, allocations: 268.8 kB / 341.6 MB, free: 6.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1429, allocations: 443.3 kB / 342 MB, free: 5.562 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.143, allocations: 0 / 342 MB, free: 5.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001471/0.1444, allocations: 0.5248 MB / 342.5 MB, free: 5.031 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.1446, allocations: 148 kB / 342.7 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1446, allocations: 4 kB / 342.7 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.647e-05/0.1447, allocations: 4 kB / 342.7 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.1457, allocations: 259.7 kB / 343 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.1479, allocations: 1.548 MB / 344.5 MB, free: 2.914 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.1482, allocations: 47.97 kB / 344.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.1483, allocations: 19.92 kB / 344.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.28e-06/0.1483, allocations: 0 / 344.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009552/0.1492, allocations: 459.7 kB / 345 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.1492, allocations: 160 / 345 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.1493, allocations: 8 kB / 345 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.1497, allocations: 131.8 kB / 345.1 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.84e-06/0.1497, allocations: 4 kB / 345.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.15, allocations: 43.95 kB / 345.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.1501, allocations: 16 kB / 345.2 MB, free: 2.199 MB / 286.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.0003323/0.1504, allocations: 241 kB / 345.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.129e-05/0.1505, allocations: 39.53 kB / 345.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.1506, allocations: 48.25 kB / 345.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1506, allocations: 8 kB / 345.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1506, allocations: 0 / 345.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1506, allocations: 0 / 345.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.1526, allocations: 0.965 MB / 346.5 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1526, allocations: 4 kB / 346.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004175/0.153, allocations: 96.06 kB / 346.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.153, allocations: 7.875 kB / 346.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.1531, allocations: 15.94 kB / 346.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1531, allocations: 4 kB / 346.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.1531, allocations: 0 / 346.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.1547, allocations: 0.7483 MB / 347.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.1549, allocations: 128.7 kB / 347.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.485e-05/0.1549, allocations: 11.94 kB / 347.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004264/0.1554, allocations: 51.95 kB / 347.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.1555, allocations: 23.97 kB / 347.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.1555, allocations: 8 kB / 347.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002604/0.1557, allocations: 251.2 kB / 347.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1557, allocations: 0 / 347.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005256/0.1563, allocations: 140 kB / 348 MB, free: 15.31 MB / 302.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.0001302/0.1564, allocations: 107.1 kB / 348.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.1586, allocations: 0.7968 MB / 348.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1586, allocations: 0 / 348.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000508/0.1591, allocations: 208.1 kB / 349.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007984/0.1599, allocations: 97.38 kB / 349.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.162, allocations: 1.271 MB / 350.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006722/0.1627, allocations: 0.8198 MB / 351.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.163, allocations: 55.25 kB / 351.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.1631, allocations: 35.42 kB / 351.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1631, allocations: 0 / 351.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Templates: time 0.009752/0.1729, allocations: 4.277 MB / 355.6 MB, free: 7.586 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)