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.001129/0.001129, allocations: 92.86 kB / 15.71 MB, free: 464 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.001471/0.001471, allocations: 177.4 kB / 16.59 MB, free: 6.398 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.87/1.87, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06603/0.06603, allocations: 14.17 MB / 285.2 MB, free: 7.121 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.0009048/0.000905, allocations: 16 kB / 348.9 MB, free: 17.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1287, allocations: 51.12 MB / 400 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.002571/0.1313, allocations: 1.798 MB / 401.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.1332, allocations: 0.8546 MB / 402.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002893/0.1335, allocations: 11.94 kB / 402.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.1338, allocations: 59.67 kB / 402.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002129/0.134, allocations: 67.61 kB / 402.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007863/0.1348, allocations: 195.3 kB / 403 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004661/0.1353, allocations: 299.2 kB / 403.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.1355, allocations: 82.12 kB / 403.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.1357, allocations: 107.5 kB / 403.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1359, allocations: 127.4 kB / 403.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.136, allocations: 8 kB / 403.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1361, allocations: 67.94 kB / 403.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.928e-05/0.1362, allocations: 47.78 kB / 403.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.266e-05/0.1363, allocations: 73.48 kB / 403.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.1366, allocations: 259.4 kB / 404.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.1366, allocations: 0 / 404.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1366, allocations: 7.938 kB / 404.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1366, allocations: 0 / 404.1 MB, free: 10.55 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.0009537/0.1376, allocations: 0.5973 MB / 404.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.1377, allocations: 12.02 kB / 404.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.399e-05/0.1378, allocations: 54.55 kB / 404.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/0.1379, allocations: 39.53 kB / 404.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.1383, allocations: 326.1 kB / 405.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.1383, allocations: 16 kB / 405.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.1384, allocations: 20 kB / 405.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006455/0.139, allocations: 304.4 kB / 405.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1391, allocations: 4 kB / 405.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.1391, allocations: 4 kB / 405.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1391, allocations: 4 kB / 405.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006287/0.1398, allocations: 236.5 kB / 405.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.1412, allocations: 0.8445 MB / 406.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009834/0.1422, allocations: 375.6 kB / 406.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/0.1425, allocations: 166.5 kB / 407 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.1426, allocations: 3.938 kB / 407 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004815/0.143, allocations: 248 kB / 407.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.1431, allocations: 0 / 407.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001136/0.1442, allocations: 498.9 kB / 407.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1443, allocations: 209.6 kB / 408 MB, free: 6.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1446, allocations: 279.2 kB / 408.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.1447, allocations: 33.7 kB / 408.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.1448, allocations: 184.2 kB / 408.5 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.915e-05/0.1449, allocations: 59.11 kB / 408.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.567e-05/0.1449, allocations: 4 kB / 408.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.145, allocations: 346.8 kB / 408.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.1453, allocations: 119.9 kB / 409 MB, free: 5.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003386/0.1457, allocations: 192.7 kB / 409.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.146, allocations: 154.4 kB / 409.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.146, allocations: 0 / 409.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007732/0.1468, allocations: 412.9 kB / 409.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.1469, allocations: 149.2 kB / 409.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1469, allocations: 0 / 409.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1469, allocations: 4.062 kB / 409.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.1472, allocations: 47.97 kB / 409.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.1472, allocations: 11.92 kB / 409.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1474, allocations: 55.77 kB / 410 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.1474, allocations: 4 kB / 410 MB, free: 4.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.585e-06/0.1475, allocations: 4 kB / 410 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000497/0.148, allocations: 277.5 kB / 410.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-06/0.148, allocations: 0 / 410.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.951e-06/0.148, allocations: 4 kB / 410.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.1481, allocations: 40.02 kB / 410.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.1481, allocations: 64 / 410.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1483, allocations: 31.83 kB / 410.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1483, allocations: 11.94 kB / 410.3 MB, free: 3.844 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.0002184/0.1486, allocations: 262 kB / 410.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.366e-05/0.1486, allocations: 39.56 kB / 410.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.1487, allocations: 34.25 kB / 410.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1487, allocations: 7.984 kB / 410.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1487, allocations: 0 / 410.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1487, allocations: 7.938 kB / 410.7 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.1491, allocations: 341.4 kB / 411 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.1491, allocations: 3.953 kB / 411 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.1493, allocations: 43.97 kB / 411.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1493, allocations: 0 / 411.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.1494, allocations: 16 kB / 411.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1494, allocations: 0 / 411.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1494, allocations: 0 / 411.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005499/0.1549, allocations: 3.199 MB / 414.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.117e-05/0.155, allocations: 112.7 kB / 414.4 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.154e-05/0.1551, allocations: 4 kB / 414.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1553, allocations: 44.02 kB / 414.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.1554, allocations: 15.98 kB / 414.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.1554, allocations: 8 kB / 414.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.1556, allocations: 197.9 kB / 414.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1556, allocations: 0 / 414.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007181/0.1564, allocations: 163.8 kB / 414.8 MB, free: 15.11 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.001514/0.1579, allocations: 1.146 MB / 416 MB, free: 13.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.159, allocations: 0.561 MB / 416.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.159, allocations: 4 kB / 416.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003929/0.1594, allocations: 235.5 kB / 416.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.1599, allocations: 64.47 kB / 416.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.1634, allocations: 2.168 MB / 419 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.1639, allocations: 0.7719 MB / 419.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.1641, allocations: 37.94 kB / 419.8 MB, free: 9.945 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.1642, allocations: 95.41 kB / 419.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1643, allocations: 0 / 419.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.1849, allocations: 6.976 MB / 426.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.1852, allocations: 194.7 kB / 427.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.03, allocations: 0 / 427.1 MB, free: 2.699 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: