Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_symb_jac_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.001037/0.001037, allocations: 92.7 kB / 15.7 MB, free: 456 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.001358/0.001358, allocations: 172.9 kB / 16.58 MB, free: 6.402 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.847/1.847, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06088/0.06088, allocations: 14.17 MB / 285.2 MB, free: 7.121 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.0004998/0.0004999, allocations: 12.22 kB / 346.9 MB, free: 19.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09853, allocations: 51.12 MB / 398 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.001896/0.1005, allocations: 1.465 MB / 399.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008464/0.1013, allocations: 0.5273 MB / 400 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.373e-05/0.1014, allocations: 8 kB / 400 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.1015, allocations: 7.922 kB / 400 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.1017, allocations: 27.72 kB / 400.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.1019, allocations: 47.94 kB / 400.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.1021, allocations: 175.4 kB / 400.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1022, allocations: 9.125 kB / 400.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1023, allocations: 83.73 kB / 400.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.1025, allocations: 79.66 kB / 400.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.1025, allocations: 8 kB / 400.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.995e-05/0.1026, allocations: 15.94 kB / 400.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.23e-05/0.1026, allocations: 31.88 kB / 400.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.182e-05/0.1027, allocations: 49.58 kB / 400.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.1028, allocations: 108 kB / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1028, allocations: 0 / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1029, allocations: 0 / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1029, allocations: 0 / 400.7 MB, free: 13.96 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.001093/0.104, allocations: 0.574 MB / 401.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.104, allocations: 16.02 kB / 401.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.996e-05/0.1041, allocations: 38.55 kB / 401.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.1041, allocations: 15.81 kB / 401.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.1044, allocations: 218.8 kB / 401.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.1044, allocations: 11.95 kB / 401.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.1045, allocations: 8 kB / 401.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.105, allocations: 213.5 kB / 401.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.105, allocations: 4 kB / 401.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.1051, allocations: 7.984 kB / 401.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1051, allocations: 0 / 401.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007299/0.1058, allocations: 243.8 kB / 402 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009134/0.1067, allocations: 0.5004 MB / 402.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007795/0.1075, allocations: 282.3 kB / 402.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003999/0.1079, allocations: 152.8 kB / 402.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.108, allocations: 0 / 402.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006739/0.1087, allocations: 433.3 kB / 403.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.1087, allocations: 0 / 403.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.001426/0.1101, allocations: 0.5649 MB / 403.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.1102, allocations: 247.3 kB / 404.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.1104, allocations: 178.2 kB / 404.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.1105, allocations: 33.7 kB / 404.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/0.1105, allocations: 112.4 kB / 404.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.1106, allocations: 47.5 kB / 404.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.1106, allocations: 4 kB / 404.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1108, allocations: 330.8 kB / 404.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.1112, allocations: 151.9 kB / 405 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.1116, allocations: 147.9 kB / 405.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004327/0.112, allocations: 225.1 kB / 405.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.112, allocations: 0 / 405.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009829/0.113, allocations: 482.3 kB / 405.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.1132, allocations: 190.7 kB / 406 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1132, allocations: 0 / 406 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1132, allocations: 3.984 kB / 406 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.1135, allocations: 55.95 kB / 406.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1135, allocations: 3.953 kB / 406.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.1138, allocations: 83.77 kB / 406.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.1138, allocations: 8 kB / 406.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/0.1139, allocations: 4 kB / 406.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009716/0.1148, allocations: 487.2 kB / 406.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-06/0.1148, allocations: 4 kB / 406.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-06/0.1149, allocations: 0 / 406.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.1151, allocations: 47.95 kB / 406.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1151, allocations: 4 kB / 406.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.1154, allocations: 79.86 kB / 406.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.1154, allocations: 15.98 kB / 406.8 MB, free: 7.418 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.0002006/0.1156, allocations: 250 kB / 407 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.1157, allocations: 19.81 kB / 407 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.552e-05/0.1157, allocations: 17.86 kB / 407.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1157, allocations: 4 kB / 407.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1157, allocations: 4 kB / 407.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1158, allocations: 0 / 407.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.116, allocations: 261.4 kB / 407.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.116, allocations: 0 / 407.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.1162, allocations: 47.95 kB / 407.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1162, allocations: 0 / 407.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.1163, allocations: 8 kB / 407.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.1163, allocations: 8 kB / 407.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1163, allocations: 0 / 407.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/0.118, allocations: 1.226 MB / 408.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.02e-05/0.1181, allocations: 96.91 kB / 408.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1181, allocations: 12 kB / 408.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.1184, allocations: 75.92 kB / 408.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.1186, allocations: 51.91 kB / 408.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.1186, allocations: 15.92 kB / 408.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001/0.1187, allocations: 127.2 kB / 409 MB, free: 5.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1187, allocations: 0 / 409 MB, free: 5.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.1193, allocations: 83.94 kB / 409.1 MB, free: 4.98 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.001351/0.1206, allocations: 1.032 MB / 410.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.1222, allocations: 0.9529 MB / 411.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1222, allocations: 0 / 411.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005865/0.1228, allocations: 375.2 kB / 411.4 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.1232, allocations: 31.97 kB / 411.5 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.1261, allocations: 1.51 MB / 413 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.1264, allocations: 0.7246 MB / 413.7 MB, free: 152 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.1266, allocations: 21.06 kB / 413.7 MB, free: 132 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.743e-05/0.1267, allocations: 43.42 kB / 413.7 MB, free: 88 kB / 302.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1267, allocations: 0 / 413.7 MB, free: 88 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.1427, allocations: 4.94 MB / 418.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/0.143, allocations: 181.4 kB / 418.9 MB, free: 11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/1.966, allocations: 0 / 418.9 MB, free: 11 MB / 318.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLimiterWithLag_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Controls_Test_TestLimiterWithLag.fmu > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) Environment - environmentSimulation: