Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008372/0.0008372, allocations: 99.59 kB / 15.71 MB, free: 452 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.00102/0.00102, allocations: 176.4 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.2 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2584/0.2584, allocations: 14.23 MB / 305.9 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003254/0.0003254, allocations: 12 kB / 370.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1294, allocations: 53.91 MB / 424.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.3235/0.453, allocations: 1.449 MB / 425.7 MB, free: 37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008598/0.4539, allocations: 0.4886 MB / 426.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.773e-05/0.454, allocations: 0 / 426.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.4541, allocations: 10.09 kB / 426.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.4542, allocations: 35.12 kB / 426.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.4544, allocations: 43.67 kB / 426.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.4546, allocations: 169.7 kB / 426.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.4547, allocations: 20.19 kB / 426.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.4549, allocations: 70.66 kB / 426.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.455, allocations: 83.98 kB / 426.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.488e-05/0.4551, allocations: 11.97 kB / 426.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.598e-05/0.4551, allocations: 6.812 kB / 426.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.125e-05/0.4551, allocations: 29.06 kB / 426.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.029e-05/0.4552, allocations: 49.52 kB / 426.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.4554, allocations: 110.4 kB / 426.8 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.4554, allocations: 7.5 kB / 426.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4554, allocations: 4.906 kB / 426.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.4554, allocations: 0 / 426.9 MB, free: 36.84 MB / 350.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.0009728/0.4564, allocations: 0.5725 MB / 427.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.4564, allocations: 10.78 kB / 427.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.677e-05/0.4565, allocations: 18.08 kB / 427.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.4567, allocations: 219.4 kB / 427.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.4567, allocations: 7.312 kB / 427.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.4568, allocations: 11.53 kB / 427.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004898/0.4573, allocations: 197.9 kB / 427.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.4573, allocations: 3.938 kB / 427.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.4573, allocations: 5.344 kB / 427.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.4573, allocations: 0 / 427.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006836/0.458, allocations: 250.6 kB / 428.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008046/0.4588, allocations: 0.4953 MB / 428.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007151/0.4596, allocations: 288.5 kB / 428.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.4599, allocations: 158.3 kB / 429.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.544e-05/0.46, allocations: 112 / 429.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005801/0.4606, allocations: 429.4 kB / 429.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.332e-06/0.4606, allocations: 4 kB / 429.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001337/0.4619, allocations: 0.5676 MB / 430.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.462, allocations: 250 kB / 430.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.4621, allocations: 173.3 kB / 430.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.4622, allocations: 32.89 kB / 430.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.4622, allocations: 111.3 kB / 430.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.4623, allocations: 43.75 kB / 430.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.4623, allocations: 1.062 kB / 430.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.4624, allocations: 338.2 kB / 431 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.4628, allocations: 146.5 kB / 431.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003673/0.4632, allocations: 151.8 kB / 431.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.4636, allocations: 218.1 kB / 431.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4636, allocations: 0 / 431.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008773/0.4644, allocations: 488.6 kB / 432 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.4645, allocations: 191.4 kB / 432.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4645, allocations: 1.062 kB / 432.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4646, allocations: 3.625 kB / 432.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.4648, allocations: 51.25 kB / 432.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.4648, allocations: 1.031 kB / 432.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.4651, allocations: 78.31 kB / 432.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.4652, allocations: 6.125 kB / 432.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.4652, allocations: 6.938 kB / 432.3 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009257/0.4661, allocations: 488.1 kB / 432.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.4661, allocations: 3.938 kB / 432.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.521e-06/0.4661, allocations: 7.578 kB / 432.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.4663, allocations: 52.08 kB / 432.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-06/0.4663, allocations: 0 / 432.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.4666, allocations: 82.25 kB / 432.9 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.4667, allocations: 10.91 kB / 432.9 MB, free: 34 MB / 350.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.0001567/0.4668, allocations: 248.9 kB / 433.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.4669, allocations: 19.25 kB / 433.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.779e-05/0.4669, allocations: 24.91 kB / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4669, allocations: 3.484 kB / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.467, allocations: 0 / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.467, allocations: 0 / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.4672, allocations: 264.1 kB / 433.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4672, allocations: 3.5 kB / 433.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.4674, allocations: 45.28 kB / 433.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4674, allocations: 1.594 kB / 433.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.4674, allocations: 13.22 kB / 433.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4674, allocations: 7.953 kB / 433.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4675, allocations: 0 / 433.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.4684, allocations: 495.2 kB / 434 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.4685, allocations: 95.2 kB / 434.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.413e-05/0.4685, allocations: 6.906 kB / 434.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.4688, allocations: 79.25 kB / 434.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.4689, allocations: 42.22 kB / 434.3 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.469, allocations: 12.95 kB / 434.3 MB, free: 33.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.32e-05/0.4691, allocations: 130 kB / 434.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4691, allocations: 11.88 kB / 434.4 MB, free: 33.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003317/0.4694, allocations: 80.09 kB / 434.5 MB, free: 33.24 MB / 350.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.0001193/0.4695, allocations: 109.9 kB / 434.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.471, allocations: 0.9369 MB / 435.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.471, allocations: 0 / 435.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.4715, allocations: 376 kB / 435.9 MB, free: 32.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.4718, allocations: 43.06 kB / 435.9 MB, free: 32.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007097/0.4725, allocations: 375.6 kB / 436.3 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.4727, allocations: 0.72 MB / 437 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.824e-05/0.4728, allocations: 17.34 kB / 437 MB, free: 31.76 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4728, allocations: 0 / 437 MB, free: 31.76 MB / 350.1 MB Notification: Performance of Templates: time 0.003953/0.4767, allocations: 2.622 MB / 439.7 MB, free: 31.62 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.makefile make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLagCalcHelperMain.o OMCppPowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLagCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLagCalcHelperMain.o] Error 1