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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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.0008457/0.0008457, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0009376/0.0009377, allocations: 173.8 kB / 16.27 MB, free: 6.66 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.226/1.226, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.055/0.055, allocations: 14.16 MB / 284.9 MB, free: 7.027 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.0004393/0.0004394, allocations: 12 kB / 348.9 MB, free: 17.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07457/0.07501, allocations: 51.11 MB / 400 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.001988/0.07704, allocations: 1.851 MB / 401.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.07826, allocations: 0.9205 MB / 402.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.896e-05/0.07837, allocations: 11.94 kB / 402.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000174/0.07856, allocations: 55.67 kB / 402.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.07869, allocations: 63.67 kB / 402.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005007/0.07919, allocations: 242.9 kB / 403.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.07949, allocations: 327.1 kB / 403.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.07966, allocations: 107.3 kB / 403.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.07978, allocations: 103.5 kB / 403.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.07994, allocations: 135.2 kB / 403.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.07997, allocations: 11.94 kB / 403.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.0801, allocations: 75.94 kB / 403.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.224e-05/0.08017, allocations: 51.69 kB / 404 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.08028, allocations: 140.8 kB / 404.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.08058, allocations: 334.8 kB / 404.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08059, allocations: 0 / 404.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0806, allocations: 4 kB / 404.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.08061, allocations: 0 / 404.4 MB, free: 9.797 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.0007092/0.08132, allocations: 0.5975 MB / 405 MB, free: 9.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.08136, allocations: 8.031 kB / 405 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.08142, allocations: 58.67 kB / 405.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.08148, allocations: 36.47 kB / 405.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.08182, allocations: 331.3 kB / 405.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.08184, allocations: 16.38 kB / 405.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.08188, allocations: 16.38 kB / 405.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00056/0.08245, allocations: 308.5 kB / 405.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.08247, allocations: 4 kB / 405.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.0825, allocations: 7.938 kB / 405.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.08251, allocations: 4 kB / 405.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006005/0.08312, allocations: 252.4 kB / 406.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.08421, allocations: 0.8562 MB / 406.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.08517, allocations: 371.9 kB / 407.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/0.08551, allocations: 154.5 kB / 407.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.08554, allocations: 4 kB / 407.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004448/0.08599, allocations: 251.4 kB / 407.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.086, allocations: 0 / 407.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001095/0.0871, allocations: 498.8 kB / 408.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.0872, allocations: 221.5 kB / 408.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.08745, allocations: 287.1 kB / 408.7 MB, free: 5.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.08748, allocations: 29.7 kB / 408.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.08759, allocations: 172.4 kB / 408.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.08764, allocations: 67 kB / 408.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.08769, allocations: 29.7 kB / 408.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.0878, allocations: 334.8 kB / 409.3 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.08811, allocations: 123.9 kB / 409.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.08848, allocations: 196.7 kB / 409.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.08914, allocations: 330.7 kB / 409.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.08915, allocations: 0 / 409.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007864/0.08994, allocations: 414.7 kB / 410.3 MB, free: 3.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.09004, allocations: 149.3 kB / 410.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.09005, allocations: 3.938 kB / 410.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.09006, allocations: 4 kB / 410.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.09029, allocations: 55.91 kB / 410.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.0903, allocations: 7.984 kB / 410.5 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.09053, allocations: 43.81 kB / 410.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.09056, allocations: 11.98 kB / 410.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-06/0.09058, allocations: 8 kB / 410.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004886/0.09107, allocations: 285.4 kB / 410.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.09108, allocations: 7.938 kB / 410.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-06/0.09109, allocations: 0 / 410.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.09123, allocations: 31.98 kB / 410.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.09124, allocations: 0 / 410.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.0914, allocations: 35.86 kB / 410.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.09142, allocations: 8 kB / 411 MB, free: 2.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 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001761/0.0916, allocations: 261 kB / 411.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.09165, allocations: 31.66 kB / 411.2 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.09172, allocations: 34.3 kB / 411.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.09173, allocations: 3.984 kB / 411.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.09174, allocations: 4 kB / 411.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.09175, allocations: 3.984 kB / 411.3 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.09204, allocations: 341.3 kB / 411.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.09205, allocations: 3.984 kB / 411.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.09227, allocations: 51.97 kB / 411.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.09229, allocations: 11.94 kB / 411.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.09232, allocations: 4 kB / 411.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.09232, allocations: 0 / 411.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09233, allocations: 0 / 411.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.09349, allocations: 0.6013 MB / 412.3 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.738e-05/0.09355, allocations: 104.7 kB / 412.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.0936, allocations: 11.98 kB / 412.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.09381, allocations: 36.03 kB / 412.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.09387, allocations: 23.92 kB / 412.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.0939, allocations: 4 kB / 412.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.09407, allocations: 209.9 kB / 412.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09408, allocations: 0 / 412.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.09445, allocations: 107.7 kB / 412.8 MB, free: 0.8828 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001401/0.09586, allocations: 1.162 MB / 413.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009827/0.09685, allocations: 0.5685 MB / 414.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.09687, allocations: 0 / 414.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003756/0.09725, allocations: 227.6 kB / 414.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.09765, allocations: 72.48 kB / 414.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.1019, allocations: 3.298 MB / 418.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1022, allocations: 0.7714 MB / 418.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.1024, allocations: 41.88 kB / 418.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1025, allocations: 95.41 kB / 419 MB, free: 10.45 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1025, allocations: 0 / 419 MB, free: 10.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.1182, allocations: 6.548 MB / 425.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.1184, allocations: 205.8 kB / 425.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.821, allocations: 4 kB / 425.8 MB, free: 3.703 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/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter_res.mat --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)