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.001195/0.001195, allocations: 103.2 kB / 16.62 MB, free: 6.812 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.001125/0.001125, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.605/1.605, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001241/0.00124, allocations: 47.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1063, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004649/0.111, allocations: 3.151 MB / 329.3 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.113, allocations: 0.9981 MB / 330.3 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002415/0.1133, allocations: 15.94 kB / 330.3 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003998/0.1137, allocations: 63.5 kB / 330.4 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.1139, allocations: 91.31 kB / 330.4 MB, free: 464 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005637/0.1145, allocations: 203.7 kB / 330.6 MB, free: 260 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.115, allocations: 0.5184 MB / 331.2 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.1153, allocations: 173.2 kB / 331.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.1156, allocations: 195.1 kB / 331.5 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.1158, allocations: 214.9 kB / 331.7 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.245e-05/0.1159, allocations: 40 kB / 331.8 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.1159, allocations: 40 kB / 331.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.1161, allocations: 99.67 kB / 331.9 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002577/0.1163, allocations: 222.7 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005687/0.1169, allocations: 490.5 kB / 332.6 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1169, allocations: 4 kB / 332.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1169, allocations: 0 / 332.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.465e-06/0.1169, allocations: 4 kB / 332.6 MB, free: 14.27 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.001458/0.1184, allocations: 0.7677 MB / 333.4 MB, free: 13.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1185, allocations: 11.97 kB / 333.4 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.277e-05/0.1186, allocations: 52.38 kB / 333.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.119, allocations: 363.7 kB / 333.8 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.1191, allocations: 29.38 kB / 333.8 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.818e-05/0.1191, allocations: 40.28 kB / 333.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008878/0.12, allocations: 446.7 kB / 334.3 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.1201, allocations: 11.98 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.1201, allocations: 16 kB / 334.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1201, allocations: 11.98 kB / 334.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009982/0.1211, allocations: 375.6 kB / 334.7 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.1234, allocations: 1.579 MB / 336.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000796/0.1242, allocations: 306.6 kB / 336.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.1246, allocations: 172.7 kB / 336.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.091e-05/0.1247, allocations: 8.094 kB / 336.8 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1247, allocations: 30.56 kB / 336.8 MB, free: 9.863 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.342e-06/0.1247, allocations: 0 / 336.8 MB, free: 9.863 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003248/0.128, allocations: 1.388 MB / 338.2 MB, free: 8.383 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.128, allocations: 89.09 kB / 338.3 MB, free: 8.277 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000365/0.1284, allocations: 357.6 kB / 338.6 MB, free: 7.918 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1285, allocations: 29.7 kB / 338.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/0.1287, allocations: 247.9 kB / 338.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.744e-05/0.1288, allocations: 118.3 kB / 339 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.1289, allocations: 78.03 kB / 339.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.129, allocations: 354.8 kB / 339.4 MB, free: 7.082 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.1295, allocations: 174.4 kB / 339.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.13, allocations: 252.8 kB / 339.8 MB, free: 6.629 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008759/0.1309, allocations: 387.5 kB / 340.2 MB, free: 6.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1309, allocations: 0 / 340.2 MB, free: 6.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001061/0.132, allocations: 0.4972 MB / 340.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.132, allocations: 8 kB / 340.7 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.132, allocations: 0 / 340.7 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.132, allocations: 4.219 kB / 340.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000911/0.133, allocations: 207.7 kB / 340.9 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.1347, allocations: 1.576 MB / 342.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.135, allocations: 35.97 kB / 342.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.1351, allocations: 16 kB / 342.6 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005564/0.1356, allocations: 273 kB / 342.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004242/0.1361, allocations: 240.8 kB / 343.1 MB, free: 3.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007506/0.1368, allocations: 367.5 kB / 343.4 MB, free: 2.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.1369, allocations: 7.938 kB / 343.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009613/0.1378, allocations: 473 kB / 343.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1378, allocations: 7.438 kB / 343.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1379, allocations: 4 kB / 343.9 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-06/0.1379, allocations: 4 kB / 343.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004684/0.1383, allocations: 120.1 kB / 344 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1384, allocations: 7.938 kB / 344 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.1387, allocations: 39.97 kB / 344.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.1387, allocations: 12 kB / 344.1 MB, free: 2.152 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.0002324/0.139, allocations: 204.1 kB / 344.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.1391, allocations: 43.52 kB / 344.3 MB, free: 1.902 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.862e-05/0.1391, allocations: 44.25 kB / 344.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1392, allocations: 7.938 kB / 344.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1392, allocations: 0 / 344.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1392, allocations: 0 / 344.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.1407, allocations: 0.9221 MB / 345.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.1408, allocations: 4 kB / 345.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004005/0.1412, allocations: 83.88 kB / 345.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.1412, allocations: 4.125 kB / 345.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.1412, allocations: 12 kB / 345.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1412, allocations: 0 / 345.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1412, allocations: 4 kB / 345.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.1425, allocations: 0.6735 MB / 346.1 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.1427, allocations: 144.6 kB / 346.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.1427, allocations: 7.938 kB / 346.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.143, allocations: 35.95 kB / 346.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.1431, allocations: 19.97 kB / 346.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.1431, allocations: 12 kB / 346.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.1434, allocations: 251.2 kB / 346.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1434, allocations: 4 kB / 346.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005162/0.1439, allocations: 139.9 kB / 346.7 MB, free: 15.44 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.0001277/0.1441, allocations: 107.1 kB / 346.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.1459, allocations: 0.7115 MB / 347.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1459, allocations: 0 / 347.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.1464, allocations: 180.5 kB / 347.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007182/0.1471, allocations: 98.2 kB / 347.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.149, allocations: 1.178 MB / 348.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1494, allocations: 0.8195 MB / 349.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002435/0.1496, allocations: 63.25 kB / 349.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1498, allocations: 27.44 kB / 349.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1498, allocations: 0 / 349.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Templates: time 0.008367/0.1581, allocations: 4.507 MB / 354.4 MB, free: 7.684 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)