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.0019/0.0019, allocations: 173.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.2 MB / 218.5 MB, free: 9.227 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.000843/0.0008427, allocations: 85.06 kB / 266.6 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06142/0.06142, allocations: 14.02 MB / 328.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.566e-05, allocations: 3.984 kB / 387.8 MB, free: 68.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1278, allocations: 51.11 MB / 438.9 MB, free: 17.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.6176, allocations: 78.24 MB / 0.505 GB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.6179, allocations: 70.03 kB / 0.5051 GB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008431/0.6263, allocations: 2.705 MB / 0.5077 GB, free: 10.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6264, allocations: 0.875 kB / 0.5077 GB, free: 10.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.6264, allocations: 0 / 0.5077 GB, free: 10.33 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.0009309/0.6274, allocations: 0.5562 MB / 0.5082 GB, free: 9.816 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.6274, allocations: 11.62 kB / 0.5083 GB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.6275, allocations: 37.94 kB / 0.5083 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.588e-05/0.6276, allocations: 15.53 kB / 0.5083 GB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.6278, allocations: 221.7 kB / 0.5085 GB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.6279, allocations: 7.812 kB / 0.5085 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.6279, allocations: 15.05 kB / 0.5085 GB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.6282, allocations: 114.1 kB / 0.5086 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.6282, allocations: 0 / 0.5086 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.6282, allocations: 3.875 kB / 0.5087 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.6282, allocations: 0 / 0.5087 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.6284, allocations: 93.17 kB / 0.5087 GB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008933/0.6293, allocations: 497.3 kB / 0.5092 GB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.6296, allocations: 115.6 kB / 0.5093 GB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.6297, allocations: 72.78 kB / 0.5094 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.665e-05/0.6298, allocations: 3.406 kB / 0.5094 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003841/0.6301, allocations: 353 kB / 0.5097 GB, free: 8.777 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.6302, allocations: 4 kB / 0.5097 GB, free: 8.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004679/0.6306, allocations: 255.9 kB / 0.51 GB, free: 8.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.6307, allocations: 253 kB / 0.5102 GB, free: 8.402 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.6309, allocations: 156 kB / 0.5104 GB, free: 8.301 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.6309, allocations: 29.52 kB / 0.5104 GB, free: 8.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.724e-05/0.631, allocations: 109.2 kB / 0.5105 GB, free: 8.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.29e-05/0.631, allocations: 53.98 kB / 0.5106 GB, free: 8.145 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.664e-05/0.6311, allocations: 7.406 kB / 0.5106 GB, free: 8.145 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.6311, allocations: 329.7 kB / 0.5109 GB, free: 7.824 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.6313, allocations: 64.39 kB / 0.5109 GB, free: 7.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.6314, allocations: 71.06 kB / 0.511 GB, free: 7.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.6315, allocations: 136.6 kB / 0.5111 GB, free: 7.715 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6315, allocations: 7.812 kB / 0.5111 GB, free: 7.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003896/0.6319, allocations: 312.9 kB / 0.5114 GB, free: 7.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.695e-05/0.632, allocations: 184.6 kB / 0.5116 GB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.6321, allocations: 0.5469 kB / 0.5116 GB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.6321, allocations: 7.875 kB / 0.5116 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.6324, allocations: 50.58 kB / 0.5117 GB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.6324, allocations: 3.938 kB / 0.5117 GB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.6328, allocations: 81.23 kB / 0.5118 GB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.6328, allocations: 7.219 kB / 0.5118 GB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.6328, allocations: 7.891 kB / 0.5118 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000423/0.6332, allocations: 321.6 kB / 0.5121 GB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-06/0.6333, allocations: 4 kB / 0.5121 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-06/0.6333, allocations: 0 / 0.5121 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.6335, allocations: 58.2 kB / 0.5121 GB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.6335, allocations: 0.7031 kB / 0.5121 GB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.6339, allocations: 77.8 kB / 0.5122 GB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.6339, allocations: 11.41 kB / 0.5122 GB, free: 7.145 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.0001669/0.6341, allocations: 163.5 kB / 0.5124 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.925e-05/0.6341, allocations: 23.33 kB / 0.5124 GB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.119e-05/0.6342, allocations: 16.56 kB / 0.5124 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.6342, allocations: 0 / 0.5124 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.6342, allocations: 3.906 kB / 0.5124 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6342, allocations: 0 / 0.5124 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.6344, allocations: 262.1 kB / 0.5127 GB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.6344, allocations: 3.953 kB / 0.5127 GB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.6346, allocations: 58.72 kB / 0.5127 GB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.6347, allocations: 0 / 0.5127 GB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.6347, allocations: 11.12 kB / 0.5127 GB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.6347, allocations: 0 / 0.5127 GB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6347, allocations: 0 / 0.5127 GB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004555/0.6352, allocations: 331.3 kB / 0.5131 GB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.6352, allocations: 88.77 kB / 0.5131 GB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.6353, allocations: 11.31 kB / 0.5132 GB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003481/0.6356, allocations: 74.2 kB / 0.5132 GB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.6358, allocations: 44.33 kB / 0.5133 GB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.6358, allocations: 7.688 kB / 0.5133 GB, free: 6.434 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.85e-05/0.6359, allocations: 137.8 kB / 0.5134 GB, free: 6.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6359, allocations: 0 / 0.5134 GB, free: 6.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003244/0.6363, allocations: 88.16 kB / 0.5135 GB, free: 6.34 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.0007339/0.637, allocations: 0.882 MB / 0.5143 GB, free: 5.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006955/0.6377, allocations: 0.7062 MB / 0.515 GB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.6377, allocations: 0 / 0.515 GB, free: 5.273 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.6381, allocations: 291.9 kB / 0.5153 GB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.6384, allocations: 35.02 kB / 0.5153 GB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.6392, allocations: 288.8 kB / 0.5156 GB, free: 5.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.6394, allocations: 0.7236 MB / 0.5163 GB, free: 4.301 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.6396, allocations: 33.14 kB / 0.5164 GB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.399e-05/0.6397, allocations: 39.92 kB / 0.5164 GB, free: 4.273 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6397, allocations: 0 / 0.5164 GB, free: 4.273 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.6573, allocations: 5.209 MB / 0.5215 GB, free: 0.5156 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/0.6576, allocations: 143.2 kB / 0.5216 GB, free: 304 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.557, allocations: 0 / 0.5216 GB, free: 304 kB / 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)