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.007279/0.00728, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00175/0.00175, allocations: 192.4 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.537/1.537, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001326/0.001326, allocations: 52.77 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005074/0.1093, allocations: 3.106 MB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.1111, allocations: 1.025 MB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003056/0.1115, allocations: 11.94 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.1119, allocations: 87.17 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.1122, allocations: 111.1 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006119/0.1128, allocations: 227.6 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.1133, allocations: 0.5146 MB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003091/0.1136, allocations: 173.2 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.1139, allocations: 195.1 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.1142, allocations: 218.9 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.857e-05/0.1142, allocations: 40 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.1143, allocations: 43.94 kB / 378.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1144, allocations: 99.62 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.1146, allocations: 218.8 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.1152, allocations: 497.8 kB / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1152, allocations: 3.938 kB / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1152, allocations: 0 / 379.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.1152, allocations: 4 kB / 379.7 MB, free: 10.73 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.001366/0.1166, allocations: 0.7829 MB / 380.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1166, allocations: 16.02 kB / 380.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1167, allocations: 52.61 kB / 380.5 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005779/0.1173, allocations: 379.9 kB / 380.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.1174, allocations: 33.38 kB / 380.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.1175, allocations: 40.38 kB / 381 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000913/0.1184, allocations: 450.7 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.1184, allocations: 7.953 kB / 381.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.1185, allocations: 20 kB / 381.5 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1185, allocations: 11.98 kB / 381.5 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009949/0.1195, allocations: 375.6 kB / 381.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.1216, allocations: 1.56 MB / 383.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008378/0.1225, allocations: 315.9 kB / 383.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.1229, allocations: 160.8 kB / 383.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.123, allocations: 11.94 kB / 383.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.123, allocations: 38.55 kB / 383.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.123, allocations: 0 / 383.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003356/0.1264, allocations: 1.393 MB / 385.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1265, allocations: 85.11 kB / 385.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004033/0.1269, allocations: 361.7 kB / 385.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.1269, allocations: 33.64 kB / 385.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.1271, allocations: 248.3 kB / 386 MB, free: 4.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.758e-05/0.1272, allocations: 123 kB / 386.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.1274, allocations: 78.08 kB / 386.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1276, allocations: 350.8 kB / 386.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004769/0.128, allocations: 170.5 kB / 386.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.1286, allocations: 252.8 kB / 387 MB, free: 3.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009142/0.1295, allocations: 391.9 kB / 387.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1295, allocations: 7.938 kB / 387.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001102/0.1306, allocations: 493 kB / 387.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.1306, allocations: 11.94 kB / 387.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1307, allocations: 0 / 387.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1307, allocations: 4 kB / 387.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009196/0.1316, allocations: 215.8 kB / 388.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.1336, allocations: 1.564 MB / 389.6 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.134, allocations: 39.95 kB / 389.7 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.134, allocations: 16 kB / 389.7 MB, free: 156 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005653/0.1346, allocations: 280.9 kB / 390 MB, free: 15.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00046/0.1351, allocations: 240.8 kB / 390.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008027/0.1359, allocations: 367.8 kB / 390.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.593e-06/0.1359, allocations: 0 / 390.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001018/0.1369, allocations: 480.9 kB / 391 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.1369, allocations: 4 kB / 391 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1369, allocations: 4 kB / 391 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.679e-06/0.137, allocations: 4.219 kB / 391 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.1374, allocations: 119.8 kB / 391.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.1375, allocations: 11.92 kB / 391.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.1378, allocations: 43.95 kB / 391.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.1378, allocations: 11.98 kB / 391.2 MB, free: 14.55 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.0001605/0.138, allocations: 208.1 kB / 391.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.163e-05/0.1381, allocations: 39.77 kB / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.144e-05/0.1382, allocations: 44.25 kB / 391.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.1382, allocations: 7.938 kB / 391.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.1382, allocations: 3.984 kB / 391.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1382, allocations: 0 / 391.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1398, allocations: 0.9186 MB / 392.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1399, allocations: 4 kB / 392.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003986/0.1403, allocations: 87.98 kB / 392.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1403, allocations: 4 kB / 392.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.1403, allocations: 8 kB / 392.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1403, allocations: 0 / 392.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1403, allocations: 4 kB / 392.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.1417, allocations: 0.6749 MB / 393.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.1419, allocations: 140.8 kB / 393.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.1419, allocations: 8 kB / 393.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.1422, allocations: 35.95 kB / 393.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.657e-05/0.1423, allocations: 19.97 kB / 393.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1424, allocations: 11.94 kB / 393.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.1427, allocations: 255.2 kB / 393.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1427, allocations: 0 / 393.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000521/0.1432, allocations: 135.9 kB / 393.8 MB, free: 11.84 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.0001465/0.1434, allocations: 115.6 kB / 393.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.1453, allocations: 0.6949 MB / 394.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1454, allocations: 0 / 394.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004565/0.1458, allocations: 180.4 kB / 394.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.1465, allocations: 97.53 kB / 394.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1483, allocations: 1.017 MB / 395.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.1488, allocations: 0.8156 MB / 396.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002531/0.149, allocations: 63.22 kB / 396.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.1491, allocations: 35.44 kB / 396.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1491, allocations: 0 / 396.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of Templates: time 0.009363/0.1585, allocations: 4.736 MB / 401.6 MB, free: 4.02 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)