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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001607/0.001607, allocations: 169 kB / 7.646 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.3 MB / 213.4 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009165/0.0009164, allocations: 88.48 kB / 261.4 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05904/0.05904, allocations: 14.04 MB / 323.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.071e-05, allocations: 224 / 380.8 MB, free: 73.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1252, allocations: 51.12 MB / 431.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.462/0.5872, allocations: 77.58 MB / 0.4976 GB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.5874, allocations: 69.36 kB / 0.4976 GB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007635/0.5951, allocations: 2.686 MB / 0.5002 GB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5951, allocations: 0 / 0.5002 GB, free: 10.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.5951, allocations: 6.828 kB / 0.5003 GB, free: 10.91 MB / 330.7 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.0008176/0.596, allocations: 0.5576 MB / 0.5008 GB, free: 10.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.596, allocations: 7.656 kB / 0.5008 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.5961, allocations: 19.28 kB / 0.5008 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.5963, allocations: 211.7 kB / 0.501 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.5964, allocations: 7.219 kB / 0.501 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.5964, allocations: 15.61 kB / 0.501 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001854/0.5966, allocations: 79.94 kB / 0.5011 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.5968, allocations: 114.4 kB / 0.5012 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5968, allocations: 3.906 kB / 0.5012 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.5968, allocations: 2.391 kB / 0.5012 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.5968, allocations: 0 / 0.5012 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008241/0.5977, allocations: 464.1 kB / 0.5017 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.5979, allocations: 106.8 kB / 0.5018 GB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.598, allocations: 70.75 kB / 0.5018 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.598, allocations: 5.188 kB / 0.5019 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003508/0.5984, allocations: 343.8 kB / 0.5022 GB, free: 9.645 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.462e-06/0.5984, allocations: 0 / 0.5022 GB, free: 9.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003928/0.5988, allocations: 220.3 kB / 0.5024 GB, free: 9.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.5989, allocations: 247.9 kB / 0.5026 GB, free: 9.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.599, allocations: 153.3 kB / 0.5028 GB, free: 9.223 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.5991, allocations: 29.55 kB / 0.5028 GB, free: 9.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.5991, allocations: 107.5 kB / 0.5029 GB, free: 9.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.5992, allocations: 53.06 kB / 0.503 GB, free: 9.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.574e-05/0.5992, allocations: 3.844 kB / 0.503 GB, free: 9.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.426e-05/0.5993, allocations: 328.1 kB / 0.5033 GB, free: 8.758 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.844e-05/0.5994, allocations: 61.62 kB / 0.5033 GB, free: 8.754 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.415e-05/0.5995, allocations: 65.17 kB / 0.5034 GB, free: 8.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.71e-05/0.5996, allocations: 50.58 kB / 0.5034 GB, free: 8.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5996, allocations: 0 / 0.5034 GB, free: 8.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003186/0.5999, allocations: 224.1 kB / 0.5037 GB, free: 8.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.952e-05/0.6, allocations: 184.1 kB / 0.5038 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/0.6, allocations: 0 / 0.5038 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.6001, allocations: 0 / 0.5038 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.6003, allocations: 59.23 kB / 0.5039 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.6004, allocations: 0.7031 kB / 0.5039 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.6007, allocations: 79.28 kB / 0.504 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.6007, allocations: 7.375 kB / 0.504 GB, free: 8.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.083e-06/0.6008, allocations: 3.812 kB / 0.504 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003221/0.6011, allocations: 212 kB / 0.5042 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-06/0.6011, allocations: 0 / 0.5042 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-06/0.6011, allocations: 7.812 kB / 0.5042 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.6013, allocations: 46.86 kB / 0.5042 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.6013, allocations: 6.094 kB / 0.5042 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.6017, allocations: 76.81 kB / 0.5043 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.6017, allocations: 10.91 kB / 0.5043 GB, free: 8.477 MB / 330.7 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 () * 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.0001124/0.6018, allocations: 161.2 kB / 0.5045 GB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003182/0.6022, allocations: 247.6 kB / 0.5047 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.6022, allocations: 19.19 kB / 0.5047 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.6022, allocations: 19.31 kB / 0.5047 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.6022, allocations: 3.719 kB / 0.5047 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.6023, allocations: 3.953 kB / 0.5048 GB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.6023, allocations: 10.42 kB / 0.5048 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.6024, allocations: 226.7 kB / 0.505 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.6024, allocations: 0 / 0.505 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.6027, allocations: 54.12 kB / 0.505 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.6027, allocations: 0 / 0.505 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.6027, allocations: 6.344 kB / 0.505 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.6027, allocations: 0 / 0.505 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.6027, allocations: 0 / 0.505 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/0.6031, allocations: 273.3 kB / 0.5053 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.6031, allocations: 103.1 kB / 0.5054 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.6032, allocations: 7.688 kB / 0.5054 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.6035, allocations: 72.62 kB / 0.5055 GB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.6037, allocations: 47.97 kB / 0.5055 GB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.6037, allocations: 7.781 kB / 0.5055 GB, free: 7.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.219e-05/0.6038, allocations: 128.8 kB / 0.5056 GB, free: 7.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.273e-06/0.6038, allocations: 0 / 0.5056 GB, free: 7.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.6041, allocations: 83.47 kB / 0.5057 GB, free: 7.824 MB / 330.7 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) * 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.0005673/0.6047, allocations: 0.8205 MB / 0.5065 GB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005868/0.6053, allocations: 0.6826 MB / 0.5072 GB, free: 6.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6053, allocations: 0 / 0.5072 GB, free: 6.832 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.6056, allocations: 295 kB / 0.5075 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.6058, allocations: 39.8 kB / 0.5075 GB, free: 6.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006307/0.6065, allocations: 269.8 kB / 0.5078 GB, free: 6.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.6066, allocations: 0.7225 MB / 0.5085 GB, free: 5.918 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.6068, allocations: 32.98 kB / 0.5085 GB, free: 5.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.779e-05/0.6069, allocations: 42.91 kB / 0.5085 GB, free: 5.902 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6069, allocations: 0 / 0.5085 GB, free: 5.902 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.6307, allocations: 4.674 MB / 0.5131 GB, free: 3.875 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/0.6309, allocations: 131.8 kB / 0.5132 GB, free: 3.68 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.375, allocations: 3.938 kB / 0.5132 GB, free: 3.676 MB / 330.7 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)