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.001248/0.001248, allocations: 96.27 kB / 15.7 MB, free: 472 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.001094/0.001094, allocations: 176.5 kB / 16.57 MB, free: 6.391 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.705/1.705, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05815/0.05815, allocations: 14.18 MB / 285.2 MB, free: 7.145 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.000575/0.0005752, allocations: 12 kB / 348.9 MB, free: 17.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1172, allocations: 51.11 MB / 400 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.002525/0.1198, allocations: 1.746 MB / 401.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.1213, allocations: 0.8118 MB / 402.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.1215, allocations: 7.938 kB / 402.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1217, allocations: 43.75 kB / 402.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.1219, allocations: 71.77 kB / 402.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.1225, allocations: 167.7 kB / 402.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.1228, allocations: 183.6 kB / 403 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.123, allocations: 82.11 kB / 403.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1231, allocations: 91.62 kB / 403.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.1233, allocations: 119.4 kB / 403.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.1234, allocations: 8 kB / 403.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1235, allocations: 67.92 kB / 403.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.821e-05/0.1236, allocations: 47.77 kB / 403.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.788e-05/0.1236, allocations: 65.58 kB / 403.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.124, allocations: 239.5 kB / 403.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.124, allocations: 3.938 kB / 403.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.124, allocations: 4 kB / 403.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.124, allocations: 0 / 403.7 MB, free: 10.9 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.000878/0.1249, allocations: 0.5818 MB / 404.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.1249, allocations: 12.02 kB / 404.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.125, allocations: 54.55 kB / 404.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.644e-05/0.1251, allocations: 39.62 kB / 404.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.1255, allocations: 310.3 kB / 404.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.1255, allocations: 15.95 kB / 404.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-05/0.1256, allocations: 24 kB / 404.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.1261, allocations: 296 kB / 405 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1261, allocations: 0 / 405 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.1262, allocations: 12 kB / 405 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1262, allocations: 4 kB / 405.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.1267, allocations: 204.5 kB / 405.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.1279, allocations: 0.9982 MB / 406.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006878/0.1286, allocations: 289 kB / 406.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.1287, allocations: 0 / 406.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004296/0.1291, allocations: 219.3 kB / 406.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.333e-06/0.1291, allocations: 0 / 406.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001034/0.1302, allocations: 0.5068 MB / 407.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.1303, allocations: 166.2 kB / 407.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.1306, allocations: 270.8 kB / 407.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.1306, allocations: 33.7 kB / 407.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1308, allocations: 172.4 kB / 407.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/0.1309, allocations: 70.94 kB / 407.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.1309, allocations: 4 kB / 408 MB, free: 6.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1311, allocations: 346.9 kB / 408.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.1313, allocations: 103.9 kB / 408.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.1317, allocations: 194.2 kB / 408.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.132, allocations: 137.7 kB / 408.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.132, allocations: 7.938 kB / 408.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001408/0.1334, allocations: 0.5939 MB / 409.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003605/0.1338, allocations: 0.5583 MB / 409.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1338, allocations: 0 / 409.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005498/0.1344, allocations: 157.6 kB / 410 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.1345, allocations: 27.97 kB / 410.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004812/0.1394, allocations: 3.651 MB / 413.7 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.1396, allocations: 51.77 kB / 413.8 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.1397, allocations: 8 kB / 413.8 MB, free: 120 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.1397, allocations: 4 kB / 413.8 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006365/0.1403, allocations: 358.9 kB / 414.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.1404, allocations: 160 / 414.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.1405, allocations: 77.67 kB / 414.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.1407, allocations: 23.98 kB / 414.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.1431, allocations: 3.021 MB / 417.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.1433, allocations: 23.88 kB / 417.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.1433, allocations: 12 kB / 417.3 MB, free: 12.32 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.0003364/0.1437, allocations: 263.2 kB / 417.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.1438, allocations: 35.58 kB / 417.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.1438, allocations: 38.09 kB / 417.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.1438, allocations: 7.938 kB / 417.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1439, allocations: 0 / 417.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1439, allocations: 0 / 417.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.1443, allocations: 329.3 kB / 417.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1443, allocations: 0 / 417.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1445, allocations: 47.97 kB / 418 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1445, allocations: 0 / 418 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.1446, allocations: 16.06 kB / 418 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1446, allocations: 4 kB / 418 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1446, allocations: 0 / 418 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00554/0.1501, allocations: 3.457 MB / 421.5 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/0.1503, allocations: 104.8 kB / 421.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.1503, allocations: 4 kB / 421.6 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.1505, allocations: 32.03 kB / 421.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.1506, allocations: 19.94 kB / 421.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.1506, allocations: 4 kB / 421.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.1508, allocations: 194 kB / 421.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1508, allocations: 0 / 421.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009594/0.1518, allocations: 183.7 kB / 422 MB, free: 7.328 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.001446/0.1533, allocations: 1.173 MB / 423.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.1552, allocations: 1.138 MB / 424.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1552, allocations: 3.938 kB / 424.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.1556, allocations: 207.3 kB / 424.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1559, allocations: 53.59 kB / 424.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00475/0.1607, allocations: 3.12 MB / 427.7 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1611, allocations: 0.7756 MB / 428.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.1613, allocations: 33.94 kB / 428.5 MB, free: 0.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.1615, allocations: 99.39 kB / 428.6 MB, free: 496 kB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1615, allocations: 0 / 428.6 MB, free: 496 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2358/0.3973, allocations: 7.707 MB / 436.3 MB, free: 34.61 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/0.3975, allocations: 220.2 kB / 436.5 MB, free: 34.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.121, allocations: 0 / 436.5 MB, free: 34.38 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: