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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002393/0.002393, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009264/0.0009263, allocations: 90.95 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5431/0.5431, allocations: 48.77 MB / 358.8 MB, free: 53.17 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.759e-05/1.762e-05, allocations: 0 / 425.4 MB, free: 8.137 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1533, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4461/0.5995, allocations: 86.02 MB / 0.5583 GB, free: 14.96 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.5998, allocations: 75.95 kB / 0.5583 GB, free: 14.89 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.6103, allocations: 3.751 MB / 0.562 GB, free: 11.21 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6103, allocations: 4 kB / 0.562 GB, free: 11.21 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.6104, allocations: 0 / 0.562 GB, free: 11.21 MB / 395.1 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.0006139/0.611, allocations: 0.4892 MB / 0.5625 GB, free: 10.67 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.611, allocations: 8.031 kB / 0.5625 GB, free: 10.66 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.6111, allocations: 19.81 kB / 0.5625 GB, free: 10.64 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.6114, allocations: 234.5 kB / 0.5627 GB, free: 10.37 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.6114, allocations: 4 kB / 0.5627 GB, free: 10.37 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.6115, allocations: 13.36 kB / 0.5627 GB, free: 10.36 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001666/0.6116, allocations: 71.98 kB / 0.5628 GB, free: 10.29 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002428/0.6119, allocations: 160.5 kB / 0.563 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.6119, allocations: 3.953 kB / 0.563 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.6119, allocations: 0 / 0.563 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.612, allocations: 4 kB / 0.563 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006294/0.6126, allocations: 0.5218 MB / 0.5635 GB, free: 9.539 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.6128, allocations: 122.5 kB / 0.5636 GB, free: 9.41 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.613, allocations: 92.8 kB / 0.5637 GB, free: 9.316 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.613, allocations: 0 / 0.5637 GB, free: 9.316 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.6132, allocations: 169.1 kB / 0.5639 GB, free: 9.133 MB / 395.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.6133, allocations: 3.938 kB / 0.5639 GB, free: 9.129 MB / 395.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005919/0.6139, allocations: 306.6 kB / 0.5641 GB, free: 8.824 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.6139, allocations: 77.11 kB / 0.5642 GB, free: 8.73 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.6141, allocations: 181.8 kB / 0.5644 GB, free: 8.543 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.6141, allocations: 26.73 kB / 0.5644 GB, free: 8.512 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.568e-05/0.6142, allocations: 120.4 kB / 0.5645 GB, free: 8.387 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/0.6143, allocations: 39.67 kB / 0.5646 GB, free: 8.348 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.149e-05/0.6143, allocations: 3.938 kB / 0.5646 GB, free: 8.344 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.6144, allocations: 330.8 kB / 0.5649 GB, free: 8.012 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.6145, allocations: 67.98 kB / 0.565 GB, free: 7.945 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.6146, allocations: 108.3 kB / 0.5651 GB, free: 7.824 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.6148, allocations: 75.86 kB / 0.5651 GB, free: 7.75 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6148, allocations: 0 / 0.5651 GB, free: 7.75 MB / 395.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004069/0.6152, allocations: 269.3 kB / 0.5654 GB, free: 7.48 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.6152, allocations: 42.42 kB / 0.5654 GB, free: 7.434 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.6153, allocations: 6 kB / 0.5654 GB, free: 7.43 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.6153, allocations: 7.984 kB / 0.5654 GB, free: 7.422 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.6155, allocations: 38.86 kB / 0.5655 GB, free: 7.387 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.6155, allocations: 3.938 kB / 0.5655 GB, free: 7.383 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.6156, allocations: 27.83 kB / 0.5655 GB, free: 7.355 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.6157, allocations: 12 kB / 0.5655 GB, free: 7.344 MB / 395.1 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp fixed = false ) "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 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,integrator.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001748/0.6158, allocations: 163.2 kB / 0.5657 GB, free: 7.172 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005002/0.6163, allocations: 312.4 kB / 0.566 GB, free: 6.863 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.6164, allocations: 23.77 kB / 0.566 GB, free: 6.84 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.6164, allocations: 13.97 kB / 0.566 GB, free: 6.828 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.6164, allocations: 4 kB / 0.566 GB, free: 6.824 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6165, allocations: 3.984 kB / 0.566 GB, free: 6.82 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.6165, allocations: 0 / 0.566 GB, free: 6.82 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008603/0.6173, allocations: 0.6442 MB / 0.5666 GB, free: 6.133 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.6173, allocations: 0 / 0.5666 GB, free: 6.133 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.533e-05/0.6174, allocations: 4 kB / 0.5667 GB, free: 6.129 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6174, allocations: 0 / 0.5667 GB, free: 6.129 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.6175, allocations: 11.98 kB / 0.5667 GB, free: 6.117 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.6175, allocations: 3.938 kB / 0.5667 GB, free: 6.113 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.6175, allocations: 2.531 kB / 0.5667 GB, free: 6.113 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.6182, allocations: 0.5309 MB / 0.5672 GB, free: 5.566 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.922e-05/0.6183, allocations: 92.91 kB / 0.5673 GB, free: 5.457 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.6184, allocations: 12.06 kB / 0.5673 GB, free: 5.445 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.6185, allocations: 15.98 kB / 0.5673 GB, free: 5.43 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.6186, allocations: 7.984 kB / 0.5673 GB, free: 5.422 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.6186, allocations: 14.06 kB / 0.5673 GB, free: 5.41 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.6188, allocations: 137.1 kB / 0.5675 GB, free: 5.277 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6188, allocations: 0 / 0.5675 GB, free: 5.277 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.6192, allocations: 59.92 kB / 0.5675 GB, free: 5.219 MB / 395.1 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001117/0.6203, allocations: 1.05 MB / 0.5685 GB, free: 4.145 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.6207, allocations: 243.9 kB / 0.5688 GB, free: 3.895 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.493e-05/0.6207, allocations: 0 / 0.5688 GB, free: 3.895 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.6209, allocations: 159.7 kB / 0.5689 GB, free: 3.727 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.6213, allocations: 36.16 kB / 0.569 GB, free: 3.688 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008444/0.6221, allocations: 320.4 kB / 0.5693 GB, free: 3.34 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.6225, allocations: 0.7279 MB / 0.57 GB, free: 2.586 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 5.254e-05/0.6226, allocations: 16.77 kB / 0.57 GB, free: 2.57 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.915e-05/0.6227, allocations: 43.42 kB / 0.57 GB, free: 2.527 MB / 395.1 MB Notification: Performance of SimCode: time 2.194e-06/0.6227, allocations: 2.062 kB / 0.57 GB, free: 2.527 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02293/0.6457, allocations: 3.429 MB / 0.5734 GB, free: 15.15 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.6459, allocations: 130.3 kB / 0.5735 GB, free: 14.96 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.601, allocations: 0 / 0.5735 GB, free: 14.96 MB / 411.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)