Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 223.1 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009802/0.0009802, allocations: 92.03 kB / 270.5 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3715/0.3715, allocations: 48.83 MB / 366.7 MB, free: 46.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.92 kB / 436.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.109, allocations: 59.15 MB / 495.8 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002742/0.1118, allocations: 1.71 MB / 497.5 MB, free: 14.41 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.114, allocations: 0.7291 MB / 498.2 MB, free: 13.67 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.94e-05/0.1141, allocations: 3.938 kB / 498.2 MB, free: 13.66 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1143, allocations: 39.88 kB / 498.2 MB, free: 13.62 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.1144, allocations: 51.8 kB / 498.3 MB, free: 13.57 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.1148, allocations: 99.83 kB / 498.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.115, allocations: 155.5 kB / 498.5 MB, free: 13.32 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.1151, allocations: 21.42 kB / 498.6 MB, free: 13.3 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.825e-05/0.1152, allocations: 63.77 kB / 498.6 MB, free: 13.24 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.1153, allocations: 91.7 kB / 498.7 MB, free: 13.15 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.1154, allocations: 8 kB / 498.7 MB, free: 13.14 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1155, allocations: 79.92 kB / 498.8 MB, free: 13.06 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 7.46e-05/0.1156, allocations: 43.77 kB / 498.8 MB, free: 13.02 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 7.684e-05/0.1157, allocations: 55.61 kB / 498.9 MB, free: 12.96 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.1159, allocations: 187.7 kB / 499.1 MB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1159, allocations: 0 / 499.1 MB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1159, allocations: 0 / 499.1 MB, free: 12.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.116, allocations: 0 / 499.1 MB, free: 12.78 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000782/0.1167, allocations: 0.5099 MB / 499.6 MB, free: 12.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1168, allocations: 12.03 kB / 499.6 MB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.1169, allocations: 20.66 kB / 499.6 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.1171, allocations: 231.7 kB / 499.8 MB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.1171, allocations: 12.36 kB / 499.9 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.1172, allocations: 4.375 kB / 499.9 MB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.1175, allocations: 172.5 kB / 0.4883 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1175, allocations: 0 / 0.4883 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.1175, allocations: 11.98 kB / 0.4883 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1176, allocations: 0 / 0.4883 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.1178, allocations: 91.89 kB / 0.4884 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005674/0.1184, allocations: 0.5359 MB / 0.4889 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.1187, allocations: 146.4 kB / 0.4891 GB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.1189, allocations: 104.8 kB / 0.4892 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1189, allocations: 4 kB / 0.4892 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.1193, allocations: 173 kB / 0.4893 GB, free: 10.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.693e-06/0.1193, allocations: 0 / 0.4893 GB, free: 10.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008138/0.1201, allocations: 430.9 kB / 0.4897 GB, free: 10.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.1202, allocations: 85.11 kB / 0.4898 GB, free: 10.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.1203, allocations: 198.7 kB / 0.49 GB, free: 9.828 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1204, allocations: 29.7 kB / 0.49 GB, free: 9.793 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.786e-05/0.1204, allocations: 116.4 kB / 0.4902 GB, free: 9.676 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.1205, allocations: 47.53 kB / 0.4902 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.347e-05/0.1206, allocations: 37.7 kB / 0.4902 GB, free: 9.586 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.1207, allocations: 334.8 kB / 0.4906 GB, free: 9.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.1208, allocations: 83.95 kB / 0.4906 GB, free: 9.168 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.121, allocations: 116.2 kB / 0.4907 GB, free: 9.039 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008772/0.1219, allocations: 498.8 kB / 0.4912 GB, free: 8.512 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1219, allocations: 0 / 0.4912 GB, free: 8.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000512/0.1225, allocations: 322.9 kB / 0.4915 GB, free: 8.184 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.1225, allocations: 38.45 kB / 0.4916 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1225, allocations: 4 kB / 0.4916 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1225, allocations: 4 kB / 0.4916 GB, free: 8.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1227, allocations: 31.91 kB / 0.4916 GB, free: 8.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1227, allocations: 4 kB / 0.4916 GB, free: 8.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.1228, allocations: 19.89 kB / 0.4916 GB, free: 8.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.1229, allocations: 11.94 kB / 0.4916 GB, free: 8.066 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti fixed = true ) "Integrated error" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0001953/0.1231, allocations: 191.4 kB / 0.4918 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.1231, allocations: 19.81 kB / 0.4918 GB, free: 7.844 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.1231, allocations: 17.86 kB / 0.4919 GB, free: 7.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.1232, allocations: 4 kB / 0.4919 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1232, allocations: 0 / 0.4919 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1232, allocations: 0 / 0.4919 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008686/0.124, allocations: 0.6871 MB / 0.4925 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1241, allocations: 4 kB / 0.4925 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.945e-05/0.1241, allocations: 7.938 kB / 0.4925 GB, free: 7.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1241, allocations: 4 kB / 0.4925 GB, free: 7.055 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.1242, allocations: 8 kB / 0.4926 GB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.1242, allocations: 7.922 kB / 0.4926 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1242, allocations: 0 / 0.4926 GB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003665/0.1278, allocations: 2.788 MB / 0.4953 GB, free: 4.074 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.1279, allocations: 92.86 kB / 0.4954 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1279, allocations: 12 kB / 0.4954 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.1281, allocations: 11.98 kB / 0.4954 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.1282, allocations: 11.98 kB / 0.4954 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.1282, allocations: 16.05 kB / 0.4954 GB, free: 3.914 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1283, allocations: 148.2 kB / 0.4956 GB, free: 3.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1283, allocations: 0 / 0.4956 GB, free: 3.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004129/0.1287, allocations: 72.12 kB / 0.4956 GB, free: 3.699 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * 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.0001739/0.1289, allocations: 135.1 kB / 0.4958 GB, free: 3.559 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005076/0.1294, allocations: 299.3 kB / 0.496 GB, free: 3.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1294, allocations: 3.938 kB / 0.4961 GB, free: 3.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.1297, allocations: 191.3 kB / 0.4962 GB, free: 3.051 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.1301, allocations: 35.91 kB / 0.4963 GB, free: 3.016 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008318/0.1309, allocations: 0.6095 MB / 0.4969 GB, free: 2.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1312, allocations: 0.7243 MB / 0.4976 GB, free: 1.609 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.794e-05/0.1312, allocations: 12.64 kB / 0.4976 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.1313, allocations: 15.44 kB / 0.4976 GB, free: 1.582 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1313, allocations: 0 / 0.4976 GB, free: 1.582 MB / 394.7 MB Notification: Performance of Templates: time 0.1847/0.316, allocations: 2.523 MB / 0.5001 GB, free: 58.83 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)