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.001051/0.001052, allocations: 96.66 kB / 15.69 MB, free: 480 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.001516/0.001516, allocations: 179.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.635/1.635, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05776/0.05776, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.000517/0.000517, allocations: 12.22 kB / 346.9 MB, free: 19.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09086, allocations: 51.11 MB / 398 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.001827/0.09272, allocations: 1.445 MB / 399.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007654/0.09351, allocations: 0.535 MB / 400 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.724e-05/0.09358, allocations: 4 kB / 400 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.655e-05/0.09368, allocations: 11.92 kB / 400 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.09381, allocations: 35.88 kB / 400 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.09396, allocations: 47.92 kB / 400.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.0941, allocations: 111.8 kB / 400.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.126e-05/0.0942, allocations: 13.11 kB / 400.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.624e-05/0.0943, allocations: 71.8 kB / 400.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.09443, allocations: 87.64 kB / 400.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.09447, allocations: 12 kB / 400.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.335e-05/0.0945, allocations: 8 kB / 400.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.09454, allocations: 31.89 kB / 400.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.283e-05/0.0946, allocations: 57.56 kB / 400.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.09473, allocations: 111.9 kB / 400.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.09474, allocations: 0 / 400.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09475, allocations: 0 / 400.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.09476, allocations: 0 / 400.6 MB, free: 14.06 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.0009603/0.09573, allocations: 0.5661 MB / 401.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.09577, allocations: 16.02 kB / 401.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.551e-05/0.09582, allocations: 42.55 kB / 401.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.09588, allocations: 19.81 kB / 401.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.09609, allocations: 218.7 kB / 401.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.09611, allocations: 7.953 kB / 401.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.09615, allocations: 12 kB / 401.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005588/0.09672, allocations: 201 kB / 401.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.09673, allocations: 0 / 401.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.09676, allocations: 4 kB / 401.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.09677, allocations: 8 kB / 401.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00078/0.09756, allocations: 243.8 kB / 401.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008681/0.09844, allocations: 0.4965 MB / 402.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008189/0.09927, allocations: 286.3 kB / 402.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.0993, allocations: 3.984 kB / 402.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006378/0.09995, allocations: 421.4 kB / 403.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 3.367e-06/0.09996, allocations: 96 / 403.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.001517/0.1015, allocations: 0.6515 MB / 403.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1016, allocations: 243.3 kB / 404 MB, free: 10.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.1018, allocations: 182.2 kB / 404.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1018, allocations: 33.7 kB / 404.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.1019, allocations: 108.4 kB / 404.3 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.1019, allocations: 43.5 kB / 404.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.47e-05/0.1019, allocations: 4 kB / 404.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.102, allocations: 330.8 kB / 404.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.1025, allocations: 151.9 kB / 404.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.1029, allocations: 153 kB / 404.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004466/0.1034, allocations: 225.1 kB / 405.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1034, allocations: 3.938 kB / 405.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001038/0.1044, allocations: 482.3 kB / 405.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.1045, allocations: 178.8 kB / 405.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1046, allocations: 0 / 405.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1046, allocations: 8 kB / 405.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.1048, allocations: 51.89 kB / 405.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.1049, allocations: 3.953 kB / 405.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000352/0.1052, allocations: 83.77 kB / 406 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.1053, allocations: 8.109 kB / 406 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1053, allocations: 7.938 kB / 406 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001007/0.1063, allocations: 495.2 kB / 406.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-06/0.1063, allocations: 0 / 406.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-06/0.1063, allocations: 0 / 406.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.1065, allocations: 51.94 kB / 406.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-06/0.1065, allocations: 0 / 406.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.1069, allocations: 83.86 kB / 406.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.1069, allocations: 16 kB / 406.6 MB, free: 7.582 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.0001836/0.1071, allocations: 250 kB / 406.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.1072, allocations: 19.81 kB / 406.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.767e-05/0.1072, allocations: 21.86 kB / 406.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1072, allocations: 0 / 406.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.1072, allocations: 0 / 406.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1072, allocations: 3.984 kB / 406.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.1075, allocations: 273.3 kB / 407.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1075, allocations: 0 / 407.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.1077, allocations: 47.95 kB / 407.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1077, allocations: 0 / 407.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.1077, allocations: 8 kB / 407.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.1077, allocations: 3.984 kB / 407.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1077, allocations: 0 / 407.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.1097, allocations: 1.227 MB / 408.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.071e-05/0.1098, allocations: 96.91 kB / 408.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.1099, allocations: 4 kB / 408.5 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.1102, allocations: 75.92 kB / 408.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/0.1104, allocations: 55.8 kB / 408.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.1104, allocations: 8 kB / 408.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.1106, allocations: 135.2 kB / 408.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1106, allocations: 0 / 408.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005898/0.1112, allocations: 83.92 kB / 408.9 MB, free: 5.141 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.001385/0.1126, allocations: 1.028 MB / 409.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.1142, allocations: 0.949 MB / 410.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1142, allocations: 0 / 410.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006053/0.1148, allocations: 375.2 kB / 411.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.1151, allocations: 31.91 kB / 411.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.118, allocations: 1.513 MB / 412.8 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.1183, allocations: 0.7246 MB / 413.5 MB, free: 320 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1184, allocations: 25.02 kB / 413.5 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.432e-05/0.1185, allocations: 43.42 kB / 413.6 MB, free: 252 kB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1185, allocations: 0 / 413.6 MB, free: 252 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.1335, allocations: 4.9 MB / 418.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.1337, allocations: 191.9 kB / 418.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.798, allocations: 4 kB / 418.7 MB, free: 11.18 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: