Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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 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: "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 97.12 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 178.5 kB / 16.57 MB, free: 6.387 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.73/1.73, allocations: 205.4 MB / 222.7 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05786/0.05786, allocations: 14.17 MB / 285.2 MB, free: 7.145 MB / 238.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.0005533/0.0005533, allocations: 12 kB / 348.9 MB, free: 17.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1211, allocations: 51.11 MB / 400 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.002378/0.1235, allocations: 1.8 MB / 401.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1249, allocations: 0.843 MB / 402.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.125, allocations: 7.938 kB / 402.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.1252, allocations: 55.61 kB / 402.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.1254, allocations: 79.8 kB / 402.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005816/0.126, allocations: 195.2 kB / 403 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.1263, allocations: 223.5 kB / 403.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1265, allocations: 86.09 kB / 403.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.1267, allocations: 111.5 kB / 403.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.1269, allocations: 111.5 kB / 403.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.1269, allocations: 8 kB / 403.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.1271, allocations: 79.91 kB / 403.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.1271, allocations: 43.78 kB / 403.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.246e-05/0.1272, allocations: 73.52 kB / 403.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002727/0.1275, allocations: 251.4 kB / 403.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.1275, allocations: 0 / 403.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1275, allocations: 0 / 403.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1275, allocations: 0 / 403.9 MB, free: 10.68 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008825/0.1284, allocations: 0.6051 MB / 404.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1285, allocations: 12.02 kB / 404.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.698e-05/0.1285, allocations: 54.55 kB / 404.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.1286, allocations: 39.53 kB / 404.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.129, allocations: 330.1 kB / 405 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.1291, allocations: 12 kB / 405 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.1291, allocations: 28 kB / 405 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.1297, allocations: 288.5 kB / 405.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.1297, allocations: 0 / 405.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1298, allocations: 12 kB / 405.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.1298, allocations: 7.938 kB / 405.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006024/0.1304, allocations: 232.5 kB / 405.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.1317, allocations: 0.8563 MB / 406.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.1327, allocations: 375.7 kB / 406.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1328, allocations: 8.172 kB / 406.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005548/0.1334, allocations: 248.2 kB / 407 MB, free: 7.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.542e-06/0.1334, allocations: 0 / 407 MB, free: 7.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001251/0.1346, allocations: 0.5703 MB / 407.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1348, allocations: 213.6 kB / 407.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.1351, allocations: 275 kB / 408 MB, free: 6.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.1351, allocations: 29.7 kB / 408.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1353, allocations: 180.2 kB / 408.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.032e-05/0.1353, allocations: 67.03 kB / 408.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.1353, allocations: 4 kB / 408.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1355, allocations: 342.8 kB / 408.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.1358, allocations: 123.9 kB / 408.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.1362, allocations: 196.7 kB / 409 MB, free: 5.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1366, allocations: 158.4 kB / 409.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1366, allocations: 0 / 409.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007988/0.1374, allocations: 401 kB / 409.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.1376, allocations: 401.5 kB / 409.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1376, allocations: 7.938 kB / 409.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1376, allocations: 0 / 409.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.1379, allocations: 55.95 kB / 410 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.1379, allocations: 4 kB / 410 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.1381, allocations: 47.81 kB / 410 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.1382, allocations: 4 kB / 410 MB, free: 4.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-06/0.1382, allocations: 4 kB / 410 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005036/0.1387, allocations: 289.4 kB / 410.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-06/0.1387, allocations: 3.984 kB / 410.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.849e-06/0.1387, allocations: 4 kB / 410.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.1389, allocations: 31.98 kB / 410.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.1389, allocations: 0 / 410.3 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.1391, allocations: 39.81 kB / 410.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1391, allocations: 8 kB / 410.4 MB, free: 3.766 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * 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.000231/0.1393, allocations: 264.9 kB / 410.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.1394, allocations: 31.62 kB / 410.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.098e-05/0.1395, allocations: 34.3 kB / 410.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1395, allocations: 0 / 410.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1395, allocations: 0 / 410.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.1395, allocations: 7.953 kB / 410.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.1399, allocations: 341.4 kB / 411.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1399, allocations: 4 kB / 411.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002376/0.1401, allocations: 47.91 kB / 411.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1401, allocations: 3.938 kB / 411.1 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.1402, allocations: 8 kB / 411.1 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1402, allocations: 4 kB / 411.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1402, allocations: 3.984 kB / 411.1 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005549/0.1457, allocations: 3.395 MB / 414.5 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/0.1458, allocations: 112.8 kB / 414.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.1459, allocations: 15.89 kB / 414.6 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.1461, allocations: 35.97 kB / 414.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.118e-05/0.1462, allocations: 15.92 kB / 414.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.602e-05/0.1462, allocations: 8 kB / 414.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.1464, allocations: 205.9 kB / 414.9 MB, free: 14.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1464, allocations: 0 / 414.9 MB, free: 14.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00066/0.1471, allocations: 155.8 kB / 415.1 MB, free: 14.8 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (PIController.firstOrder.y,PIControllerNegativeKp.firstOrder.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.001606/0.1487, allocations: 1.319 MB / 416.4 MB, free: 13.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.1498, allocations: 0.557 MB / 416.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1498, allocations: 384 / 416.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003854/0.1502, allocations: 234.9 kB / 417.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.1506, allocations: 58.88 kB / 417.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.1543, allocations: 2.585 MB / 419.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1547, allocations: 0.7875 MB / 420.6 MB, free: 9.078 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.1549, allocations: 37.88 kB / 420.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.155, allocations: 95.41 kB / 420.7 MB, free: 8.945 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.155, allocations: 4 kB / 420.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.1742, allocations: 6.953 MB / 427.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1744, allocations: 193.5 kB / 427.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.859, allocations: 0 / 427.9 MB, free: 1.809 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: