Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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.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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_symb_jac_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.0008858/0.0008856, allocations: 88.17 kB / 15.71 MB, free: 452 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.001019/0.001019, allocations: 177.8 kB / 16.59 MB, free: 6.855 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.96/1.96, allocations: 205.4 MB / 222.8 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.06479/0.06479, allocations: 14.16 MB / 285.2 MB, free: 7.148 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.0005259/0.0005259, allocations: 12 kB / 348.9 MB, free: 17.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1234, allocations: 51.12 MB / 400 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002531/0.126, allocations: 1.752 MB / 401.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.1274, allocations: 0.8156 MB / 402.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.1276, allocations: 7.938 kB / 402.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.1278, allocations: 47.75 kB / 402.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.128, allocations: 63.67 kB / 402.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.1285, allocations: 179.2 kB / 402.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.1288, allocations: 263.3 kB / 403.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.129, allocations: 82.11 kB / 403.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1291, allocations: 99.55 kB / 403.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.1293, allocations: 115.4 kB / 403.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.1294, allocations: 8 kB / 403.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.1295, allocations: 79.92 kB / 403.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.1296, allocations: 39.78 kB / 403.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.54e-05/0.1297, allocations: 69.52 kB / 403.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.1299, allocations: 239.5 kB / 403.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.13, allocations: 0 / 403.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.13, allocations: 0 / 403.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.13, allocations: 0 / 403.9 MB, free: 10.77 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.0008326/0.1308, allocations: 0.5896 MB / 404.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1309, allocations: 15.95 kB / 404.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.827e-05/0.1309, allocations: 54.55 kB / 404.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.131, allocations: 35.62 kB / 404.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.1314, allocations: 306.3 kB / 404.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.1314, allocations: 19.89 kB / 404.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.1315, allocations: 24 kB / 404.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.132, allocations: 296 kB / 405.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.132, allocations: 0 / 405.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.132, allocations: 8 kB / 405.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.517e-06/0.1321, allocations: 8 kB / 405.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000458/0.1325, allocations: 200.5 kB / 405.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1337, allocations: 1.006 MB / 406.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006251/0.1343, allocations: 285 kB / 406.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.1346, allocations: 141.7 kB / 406.8 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.1346, allocations: 11.97 kB / 406.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004043/0.1351, allocations: 223.2 kB / 407 MB, free: 7.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.203e-06/0.1351, allocations: 0 / 407 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009071/0.136, allocations: 445.9 kB / 407.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.676e-05/0.1361, allocations: 158.2 kB / 407.6 MB, free: 6.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.1364, allocations: 275 kB / 407.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.1364, allocations: 33.7 kB / 407.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1365, allocations: 164.3 kB / 408.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.053e-05/0.1366, allocations: 82.95 kB / 408.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.1366, allocations: 0 / 408.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1368, allocations: 338.8 kB / 408.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.137, allocations: 99.94 kB / 408.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.1373, allocations: 194.2 kB / 408.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.1376, allocations: 145.7 kB / 408.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.1376, allocations: 4 kB / 408.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001317/0.139, allocations: 0.59 MB / 409.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.1391, allocations: 163.1 kB / 409.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1391, allocations: 4 kB / 409.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.1396, allocations: 145.6 kB / 409.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1397, allocations: 27.98 kB / 409.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.1441, allocations: 3.601 MB / 413.5 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.1444, allocations: 39.7 kB / 413.5 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.1444, allocations: 16.17 kB / 413.5 MB, free: 416 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.304e-06/0.1445, allocations: 4 kB / 413.5 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006006/0.1451, allocations: 362.9 kB / 413.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1451, allocations: 4 kB / 413.9 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.1453, allocations: 73.84 kB / 414 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1454, allocations: 31.97 kB / 414 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.1479, allocations: 2.997 MB / 417 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.1481, allocations: 27.81 kB / 417 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.1481, allocations: 8 kB / 417 MB, free: 12.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 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003237/0.1484, allocations: 275.9 kB / 417.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.1485, allocations: 27.62 kB / 417.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.7e-05/0.1485, allocations: 34.23 kB / 417.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1486, allocations: 4 kB / 417.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1486, allocations: 0 / 417.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1486, allocations: 0 / 417.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.1489, allocations: 333.3 kB / 417.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.149, allocations: 3.953 kB / 417.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.1492, allocations: 47.91 kB / 417.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1492, allocations: 3.984 kB / 417.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.1492, allocations: 8 kB / 417.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1492, allocations: 0 / 417.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1492, allocations: 4 kB / 417.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004979/0.1542, allocations: 3.239 MB / 421 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.829e-05/0.1543, allocations: 104.7 kB / 421.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.1544, allocations: 12 kB / 421.1 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.1545, allocations: 35.97 kB / 421.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/0.1546, allocations: 19.94 kB / 421.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.1546, allocations: 4 kB / 421.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.1549, allocations: 197.9 kB / 421.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1549, allocations: 0 / 421.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001292/0.1562, allocations: 183.7 kB / 421.5 MB, free: 7.852 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 (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.001307/0.1575, allocations: 1.087 MB / 422.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.1594, allocations: 1.138 MB / 423.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1594, allocations: 0 / 423.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003129/0.1597, allocations: 210.8 kB / 424 MB, free: 5.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.1601, allocations: 68.25 kB / 424 MB, free: 5.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004078/0.1642, allocations: 2.379 MB / 426.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.1646, allocations: 0.7717 MB / 427.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001591/0.1648, allocations: 33.94 kB / 427.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.1649, allocations: 83.41 kB / 427.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1649, allocations: 3.938 kB / 427.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2416/0.4065, allocations: 7.725 MB / 435 MB, free: 34.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.4067, allocations: 228 kB / 435.2 MB, free: 34.53 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.339, allocations: 0 / 435.2 MB, free: 34.53 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: