Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.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.TestLimiterWithLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag",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.001028/0.001028, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001151/0.001151, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05637/0.05637, allocations: 14.17 MB / 284.6 MB, free: 7.125 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.000465/0.000465, allocations: 12 kB / 346.3 MB, free: 19.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08627, allocations: 51.11 MB / 397.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.001799/0.08812, allocations: 1.464 MB / 398.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007287/0.08886, allocations: 0.5312 MB / 399.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.104e-05/0.08892, allocations: 0 / 399.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.127e-05/0.08901, allocations: 11.86 kB / 399.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.08914, allocations: 27.78 kB / 399.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.08929, allocations: 47.94 kB / 399.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.08948, allocations: 171.4 kB / 399.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.0896, allocations: 29.09 kB / 399.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.08972, allocations: 67.75 kB / 399.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.08986, allocations: 79.7 kB / 399.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.08989, allocations: 8 kB / 399.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.736e-05/0.08993, allocations: 12 kB / 399.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.08998, allocations: 31.83 kB / 399.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.68e-05/0.09004, allocations: 49.64 kB / 399.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.09019, allocations: 108 kB / 400 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.0902, allocations: 8 kB / 400 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09021, allocations: 0 / 400 MB, free: 13.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.09022, allocations: 0 / 400 MB, free: 13.97 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001011/0.09123, allocations: 0.5701 MB / 400.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.09128, allocations: 15.95 kB / 400.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.09133, allocations: 50.48 kB / 400.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.09138, allocations: 15.81 kB / 400.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.09162, allocations: 222.7 kB / 400.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.09164, allocations: 7.953 kB / 400.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.09168, allocations: 16 kB / 400.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.09222, allocations: 201.5 kB / 401.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.09224, allocations: 0 / 401.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.09226, allocations: 8 kB / 401.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.09227, allocations: 0 / 401.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007165/0.093, allocations: 243.8 kB / 401.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008418/0.09385, allocations: 0.4965 MB / 401.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007509/0.09461, allocations: 278.4 kB / 402.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.095, allocations: 156.8 kB / 402.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.09504, allocations: 4 kB / 402.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006407/0.09569, allocations: 433.5 kB / 402.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.0957, allocations: 3.938 kB / 402.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.001401/0.09711, allocations: 0.5574 MB / 403.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.09724, allocations: 247.3 kB / 403.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.0974, allocations: 182.2 kB / 403.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.09744, allocations: 33.7 kB / 403.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.515e-05/0.09752, allocations: 112.4 kB / 403.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.568e-05/0.09757, allocations: 39.52 kB / 403.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.09759, allocations: 0 / 403.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.09771, allocations: 330.8 kB / 404.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000405/0.09812, allocations: 155.8 kB / 404.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.09851, allocations: 149 kB / 404.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/0.09895, allocations: 233.1 kB / 404.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.09896, allocations: 0 / 404.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009641/0.09993, allocations: 478.3 kB / 405.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.1, allocations: 182.8 kB / 405.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1001, allocations: 0 / 405.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.1001, allocations: 4 kB / 405.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.1003, allocations: 51.89 kB / 405.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1004, allocations: 7.953 kB / 405.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.1007, allocations: 83.77 kB / 405.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.1007, allocations: 4 kB / 405.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-06/0.1007, allocations: 4 kB / 405.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009594/0.1017, allocations: 495.2 kB / 406 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-06/0.1017, allocations: 0 / 406 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-06/0.1017, allocations: 0 / 406 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1019, allocations: 63.86 kB / 406.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.1019, allocations: 0 / 406.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.1022, allocations: 79.86 kB / 406.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.1023, allocations: 11.98 kB / 406.1 MB, free: 7.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.limiterWithLag.state,limiterWithLag.state,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.satON,limiterWithLag.satON,$PRE.LfSignal.T_start,LfSignal.T_start,$PRE.LfSignal.count,LfSignal.count,$PRE.HfSignal.T_start,HfSignal.T_start,$PRE.HfSignal.count,HfSignal.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 3 * 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.0001896/0.1025, allocations: 254.1 kB / 406.4 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.1025, allocations: 27.75 kB / 406.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.328e-05/0.1026, allocations: 21.86 kB / 406.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1026, allocations: 0 / 406.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1026, allocations: 0 / 406.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1026, allocations: 0 / 406.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.1028, allocations: 261.4 kB / 406.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.1028, allocations: 0 / 406.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.103, allocations: 51.95 kB / 406.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.103, allocations: 0 / 406.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.1031, allocations: 12 kB / 406.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1031, allocations: 3.938 kB / 406.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1031, allocations: 0 / 406.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.104, allocations: 493.6 kB / 407.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.1041, allocations: 96.92 kB / 407.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.128e-05/0.1042, allocations: 4 kB / 407.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.1045, allocations: 83.86 kB / 407.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.1046, allocations: 43.94 kB / 407.5 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.1046, allocations: 8 kB / 407.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1047, allocations: 135.2 kB / 407.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1047, allocations: 0 / 407.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.1051, allocations: 79.94 kB / 407.7 MB, free: 5.773 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.001276/0.1063, allocations: 1.039 MB / 408.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.1079, allocations: 0.9374 MB / 409.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1079, allocations: 0 / 409.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.1085, allocations: 383.2 kB / 410 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.1087, allocations: 43.88 kB / 410.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.1113, allocations: 1.35 MB / 411.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1116, allocations: 0.7207 MB / 412.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.1117, allocations: 25.05 kB / 412.2 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.212e-05/0.1118, allocations: 43.42 kB / 412.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1118, allocations: 0 / 412.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01447/0.1263, allocations: 4.907 MB / 417.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.1264, allocations: 189.4 kB / 417.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.792, allocations: 0 / 417.3 MB, free: 11.97 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) Environment - environmentSimulation: