Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_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.001056/0.001056, allocations: 103 kB / 15.06 MB, free: 1.098 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.001144/0.001144, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05951/0.05951, allocations: 14.16 MB / 284.5 MB, free: 7.141 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.0005467/0.0005469, allocations: 12 kB / 348.2 MB, free: 17.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1054, allocations: 51.12 MB / 399.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.002188/0.1076, allocations: 1.796 MB / 401.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.1089, allocations: 0.8508 MB / 402 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.109, allocations: 7.938 kB / 402 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1091, allocations: 51.67 kB / 402.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.1093, allocations: 87.73 kB / 402.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005925/0.1099, allocations: 203 kB / 402.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.1103, allocations: 219.5 kB / 402.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.1105, allocations: 82.09 kB / 402.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.1107, allocations: 107.5 kB / 402.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.1109, allocations: 119.4 kB / 402.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1109, allocations: 8 kB / 402.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.111, allocations: 71.94 kB / 402.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.368e-05/0.1111, allocations: 51.75 kB / 403 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.014e-05/0.1112, allocations: 69.52 kB / 403 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.1115, allocations: 251.5 kB / 403.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1115, allocations: 0 / 403.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1115, allocations: 4 kB / 403.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1115, allocations: 0 / 403.3 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.0009097/0.1125, allocations: 0.5934 MB / 403.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.1125, allocations: 16.02 kB / 403.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.1126, allocations: 58.47 kB / 404 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.1127, allocations: 39.53 kB / 404 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.1131, allocations: 330.1 kB / 404.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.1131, allocations: 12 kB / 404.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.278e-05/0.1132, allocations: 24 kB / 404.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.1138, allocations: 288.5 kB / 404.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1138, allocations: 12 kB / 404.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1139, allocations: 8 kB / 404.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1139, allocations: 7.938 kB / 404.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006265/0.1145, allocations: 232.5 kB / 404.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.1159, allocations: 0.8523 MB / 405.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1169, allocations: 379.7 kB / 406.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.117, allocations: 128 / 406.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005109/0.1175, allocations: 248.2 kB / 406.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.1175, allocations: 0 / 406.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001219/0.1187, allocations: 0.5663 MB / 406.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1188, allocations: 217.8 kB / 407.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.1191, allocations: 279 kB / 407.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1192, allocations: 29.7 kB / 407.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1193, allocations: 180.2 kB / 407.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.546e-05/0.1193, allocations: 67.03 kB / 407.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.1194, allocations: 8 kB / 407.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1195, allocations: 334.8 kB / 408 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.1198, allocations: 123.9 kB / 408.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.1202, allocations: 196.7 kB / 408.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.1205, allocations: 150.4 kB / 408.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1205, allocations: 0 / 408.5 MB, free: 5.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008097/0.1213, allocations: 409 kB / 408.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/0.1215, allocations: 405.5 kB / 409.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1216, allocations: 3.938 kB / 409.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1216, allocations: 4 kB / 409.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.1218, allocations: 47.97 kB / 409.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1218, allocations: 0 / 409.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.1221, allocations: 51.81 kB / 409.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.1221, allocations: 12 kB / 409.4 MB, free: 4.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/0.1221, allocations: 0 / 409.4 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004986/0.1226, allocations: 281.5 kB / 409.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.1227, allocations: 4 kB / 409.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-06/0.1227, allocations: 3.938 kB / 409.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1228, allocations: 35.97 kB / 409.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.247e-06/0.1228, allocations: 0 / 409.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.123, allocations: 39.72 kB / 409.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.123, allocations: 4 kB / 409.8 MB, free: 3.781 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.0002321/0.1232, allocations: 269.2 kB / 410 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/0.1233, allocations: 31.62 kB / 410 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.84e-05/0.1234, allocations: 30.3 kB / 410.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1234, allocations: 0 / 410.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1234, allocations: 4 kB / 410.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.1234, allocations: 3.953 kB / 410.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000346/0.1238, allocations: 341.4 kB / 410.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1238, allocations: 0 / 410.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.124, allocations: 59.95 kB / 410.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.124, allocations: 4 kB / 410.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.1241, allocations: 11.94 kB / 410.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1241, allocations: 0 / 410.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1241, allocations: 0 / 410.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.1253, allocations: 0.6164 MB / 411.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-05/0.1254, allocations: 108.7 kB / 411.2 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1254, allocations: 4 kB / 411.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1256, allocations: 39.98 kB / 411.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.1257, allocations: 19.97 kB / 411.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.1257, allocations: 8 kB / 411.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.1259, allocations: 201.9 kB / 411.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1259, allocations: 0 / 411.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004002/0.1263, allocations: 111.7 kB / 411.6 MB, free: 1.816 MB / 302.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.001568/0.1279, allocations: 1.322 MB / 412.9 MB, free: 452 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.129, allocations: 0.5611 MB / 413.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.129, allocations: 0 / 413.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.1294, allocations: 227.6 kB / 413.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.1298, allocations: 56.61 kB / 413.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.133, allocations: 2.356 MB / 416.1 MB, free: 13.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.1334, allocations: 0.7716 MB / 416.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.1335, allocations: 37.94 kB / 416.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.1337, allocations: 103.3 kB / 417 MB, free: 12.22 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1337, allocations: 0 / 417 MB, free: 12.22 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.1516, allocations: 6.412 MB / 423.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.1518, allocations: 179.2 kB / 423.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/1.862, allocations: 0 / 423.6 MB, free: 5.637 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: