Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",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.0009019/0.000902, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006512/0.006513, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.228/1.228, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05653/0.05653, allocations: 14.16 MB / 284.9 MB, free: 7.031 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.0005193/0.0005195, allocations: 16 kB / 348.9 MB, free: 17.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07819, allocations: 51.12 MB / 400 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002092/0.08031, allocations: 1.801 MB / 401.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.08175, allocations: 0.8698 MB / 402.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.0819, allocations: 7.938 kB / 402.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001815/0.0821, allocations: 47.73 kB / 402.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.08229, allocations: 75.66 kB / 402.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.08277, allocations: 199.7 kB / 403 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.08306, allocations: 287.3 kB / 403.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.08323, allocations: 95.38 kB / 403.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.08335, allocations: 103.5 kB / 403.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.08352, allocations: 131.3 kB / 403.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.08355, allocations: 8 kB / 403.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.08369, allocations: 75.94 kB / 403.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.08376, allocations: 47.77 kB / 403.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.08389, allocations: 144.8 kB / 403.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.08418, allocations: 318.9 kB / 404.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.0842, allocations: 0 / 404.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0842, allocations: 0 / 404.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.08421, allocations: 0 / 404.2 MB, free: 10.01 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008386/0.08506, allocations: 0.5781 MB / 404.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.08512, allocations: 12.02 kB / 404.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.949e-05/0.08521, allocations: 58.73 kB / 404.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.08528, allocations: 32.56 kB / 404.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.08567, allocations: 319.4 kB / 405.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.0857, allocations: 16.38 kB / 405.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.08574, allocations: 16.38 kB / 405.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.08625, allocations: 304.2 kB / 405.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.08627, allocations: 0 / 405.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.0863, allocations: 11.98 kB / 405.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.08632, allocations: 4 kB / 405.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.08679, allocations: 212.4 kB / 405.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.08787, allocations: 0.9866 MB / 406.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006767/0.08856, allocations: 297 kB / 407 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.08885, allocations: 141.2 kB / 407.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.08889, allocations: 7.984 kB / 407.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/0.0893, allocations: 214.7 kB / 407.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.08931, allocations: 7.938 kB / 407.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009309/0.09025, allocations: 442.9 kB / 407.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.09035, allocations: 170.1 kB / 408 MB, free: 5.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.09062, allocations: 270.8 kB / 408.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.09065, allocations: 29.7 kB / 408.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.09078, allocations: 176.3 kB / 408.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.09084, allocations: 63.02 kB / 408.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.09089, allocations: 29.7 kB / 408.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.09103, allocations: 342.8 kB / 408.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.09127, allocations: 103.9 kB / 409 MB, free: 4.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.09158, allocations: 190.2 kB / 409.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.09211, allocations: 328.4 kB / 409.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.09212, allocations: 0 / 409.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001331/0.09345, allocations: 0.6055 MB / 410.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.09358, allocations: 159.1 kB / 410.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.09359, allocations: 4 kB / 410.3 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003911/0.09399, allocations: 113.6 kB / 410.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.09415, allocations: 35.86 kB / 410.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/0.09827, allocations: 3.605 MB / 414 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.09849, allocations: 35.83 kB / 414 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.09852, allocations: 12.05 kB / 414.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/0.09853, allocations: 8 kB / 414.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005913/0.09913, allocations: 363 kB / 414.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-06/0.09914, allocations: 0 / 414.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000159/0.09931, allocations: 77.97 kB / 414.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.09945, allocations: 35.91 kB / 414.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.1015, allocations: 3.005 MB / 417.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.1017, allocations: 35.67 kB / 417.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.1017, allocations: 12 kB / 417.6 MB, free: 11.62 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.1019, allocations: 276 kB / 417.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.102, allocations: 27.72 kB / 417.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.102, allocations: 34.11 kB / 417.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.102, allocations: 4 kB / 417.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.102, allocations: 3.938 kB / 417.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.102, allocations: 0 / 417.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.1023, allocations: 329.2 kB / 418.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1023, allocations: 0 / 418.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.1026, allocations: 47.97 kB / 418.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1026, allocations: 0 / 418.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.1026, allocations: 15.92 kB / 418.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1026, allocations: 0 / 418.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1026, allocations: 0 / 418.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009119/0.1035, allocations: 0.5463 MB / 418.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.198e-05/0.1036, allocations: 100.8 kB / 418.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.1036, allocations: 8 kB / 419 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1038, allocations: 23.98 kB / 419 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.1039, allocations: 15.97 kB / 419 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1039, allocations: 11.94 kB / 419 MB, free: 10.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.1041, allocations: 202 kB / 419.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1041, allocations: 0 / 419.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005431/0.1046, allocations: 119.8 kB / 419.3 MB, free: 9.777 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.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 (17): * Single equations (assignments): 16 * 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.001247/0.1059, allocations: 1.103 MB / 420.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.1075, allocations: 1.134 MB / 421.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1076, allocations: 0 / 421.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.1079, allocations: 219.6 kB / 421.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.1082, allocations: 56.47 kB / 421.8 MB, free: 7.141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005463/0.1137, allocations: 3.679 MB / 425.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.114, allocations: 0.7755 MB / 426.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.1142, allocations: 33.92 kB / 426.3 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1143, allocations: 83.41 kB / 426.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1143, allocations: 0 / 426.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1489/0.2632, allocations: 7.216 MB / 433.6 MB, free: 35.59 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/0.2633, allocations: 249.5 kB / 433.9 MB, free: 35.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.976, allocations: 2.688 kB / 433.9 MB, free: 35.34 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)