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.0009357/0.0009358, allocations: 90.75 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.0009776/0.0009774, allocations: 172.7 kB / 15.95 MB, free: 208 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.532/1.532, allocations: 205.4 MB / 222.1 MB, free: 5.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06204/0.06204, allocations: 14.18 MB / 284.6 MB, free: 6.992 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.0005003/0.0005003, allocations: 12 kB / 348.3 MB, free: 17.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09638, allocations: 51.12 MB / 399.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.00236/0.09878, allocations: 1.794 MB / 401.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.1004, allocations: 0.8663 MB / 402.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.1007, allocations: 7.938 kB / 402.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.1009, allocations: 51.69 kB / 402.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.1011, allocations: 67.66 kB / 402.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007068/0.1018, allocations: 199.2 kB / 402.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004214/0.1022, allocations: 307.1 kB / 402.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.1024, allocations: 78.11 kB / 402.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.1026, allocations: 107.5 kB / 402.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.1029, allocations: 119.4 kB / 403 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-05/0.1029, allocations: 8 kB / 403 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.1031, allocations: 75.94 kB / 403 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-05/0.1032, allocations: 43.77 kB / 403.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.426e-05/0.1033, allocations: 73.52 kB / 403.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.1036, allocations: 251.4 kB / 403.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1036, allocations: 0 / 403.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1036, allocations: 3.938 kB / 403.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1036, allocations: 4 kB / 403.4 MB, free: 10.54 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.0008972/0.1045, allocations: 0.6051 MB / 404 MB, free: 9.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1046, allocations: 16.02 kB / 404 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.388e-05/0.1046, allocations: 50.55 kB / 404.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.1047, allocations: 39.53 kB / 404.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.1051, allocations: 330.1 kB / 404.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1052, allocations: 12 kB / 404.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.1052, allocations: 20 kB / 404.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005858/0.1058, allocations: 296.4 kB / 404.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1058, allocations: 4 kB / 404.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.1058, allocations: 12 kB / 404.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1059, allocations: 4 kB / 404.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005788/0.1064, allocations: 236.4 kB / 405 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.1078, allocations: 0.8602 MB / 405.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000976/0.1088, allocations: 367.8 kB / 406.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.1091, allocations: 158.5 kB / 406.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.1092, allocations: 7.875 kB / 406.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/0.1096, allocations: 244.1 kB / 406.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.1097, allocations: 0 / 406.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001132/0.1108, allocations: 498.9 kB / 407.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1109, allocations: 213.6 kB / 407.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.1112, allocations: 279 kB / 407.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1112, allocations: 37.73 kB / 407.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.1114, allocations: 176.2 kB / 407.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/0.1114, allocations: 63.11 kB / 407.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.1115, allocations: 4 kB / 407.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1116, allocations: 338.8 kB / 408.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.1119, allocations: 119.9 kB / 408.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003327/0.1122, allocations: 196.7 kB / 408.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.1125, allocations: 150.3 kB / 408.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1125, allocations: 0 / 408.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007687/0.1133, allocations: 416.9 kB / 409.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.1134, allocations: 145.2 kB / 409.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1135, allocations: 3.984 kB / 409.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1135, allocations: 4.062 kB / 409.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.1137, allocations: 55.91 kB / 409.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.485e-06/0.1137, allocations: 3.984 kB / 409.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.114, allocations: 55.77 kB / 409.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.114, allocations: 8 kB / 409.3 MB, free: 4.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.114, allocations: 6.812 kB / 409.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004834/0.1145, allocations: 273.5 kB / 409.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1145, allocations: 4 kB / 409.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.277e-06/0.1145, allocations: 0 / 409.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.1147, allocations: 43.91 kB / 409.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-06/0.1147, allocations: 4.094 kB / 409.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.1149, allocations: 31.83 kB / 409.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.1149, allocations: 7.938 kB / 409.7 MB, free: 3.82 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.0002083/0.1151, allocations: 267.4 kB / 410 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.1151, allocations: 35.58 kB / 410 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.247e-05/0.1152, allocations: 30.3 kB / 410 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1152, allocations: 0 / 410 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1152, allocations: 8 kB / 410 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1152, allocations: 0 / 410 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.1156, allocations: 337.4 kB / 410.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1156, allocations: 3.953 kB / 410.4 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.1158, allocations: 47.91 kB / 410.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.1158, allocations: 7.984 kB / 410.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.1159, allocations: 8 kB / 410.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1159, allocations: 4.062 kB / 410.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1159, allocations: 4 kB / 410.4 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.117, allocations: 0.5858 MB / 411 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.907e-05/0.1171, allocations: 112.6 kB / 411.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.1171, allocations: 4 kB / 411.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.1173, allocations: 40.03 kB / 411.2 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.1174, allocations: 19.91 kB / 411.2 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.1174, allocations: 8 kB / 411.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001911/0.1176, allocations: 205.9 kB / 411.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1176, allocations: 0 / 411.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004318/0.1181, allocations: 111.7 kB / 411.5 MB, free: 1.887 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.001487/0.1196, allocations: 1.15 MB / 412.7 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009854/0.1206, allocations: 0.565 MB / 413.2 MB, free: 104 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1206, allocations: 0 / 413.2 MB, free: 104 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003676/0.121, allocations: 231.6 kB / 413.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.1214, allocations: 68.59 kB / 413.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.1245, allocations: 1.915 MB / 415.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1249, allocations: 0.7677 MB / 416.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.125, allocations: 29.94 kB / 416.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.1252, allocations: 99.34 kB / 416.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1252, allocations: 4 kB / 416.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.1435, allocations: 6.428 MB / 422.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.1437, allocations: 191.8 kB / 423 MB, free: 6.309 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/1.811, allocations: 0 / 423 MB, free: 6.309 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: