Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.000912, allocations: 98.97 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.001117/0.001117, allocations: 176.1 kB / 16.58 MB, free: 6.418 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.461/1.461, allocations: 223.2 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.3367/0.3367, allocations: 14.22 MB / 305.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003804, allocations: 8.219 kB / 371.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.53/0.5304, allocations: 53.92 MB / 425.6 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002099/0.5325, allocations: 1.136 MB / 426.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.5337, allocations: 487.1 kB / 427.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.172e-05/0.5337, allocations: 1.469 kB / 427.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.467e-05/0.5338, allocations: 3.938 kB / 427.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.5339, allocations: 10.12 kB / 427.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.5342, allocations: 64.39 kB / 427.3 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.5344, allocations: 162.7 kB / 427.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.333e-05/0.5345, allocations: 5.922 kB / 427.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.5347, allocations: 100.1 kB / 427.6 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.5348, allocations: 85.44 kB / 427.6 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.5349, allocations: 12.97 kB / 427.7 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.344e-05/0.5349, allocations: 13.34 kB / 427.7 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.634e-05/0.535, allocations: 59.11 kB / 427.7 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.5351, allocations: 60.17 kB / 427.8 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.5352, allocations: 82.48 kB / 427.9 MB, free: 38.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5352, allocations: 0 / 427.9 MB, free: 38.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5352, allocations: 0 / 427.9 MB, free: 38.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.5352, allocations: 1.312 kB / 427.9 MB, free: 38.18 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009033/0.5361, allocations: 493.3 kB / 428.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.5362, allocations: 10.31 kB / 428.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.02e-05/0.5363, allocations: 23.55 kB / 428.4 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.5364, allocations: 173.8 kB / 428.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.5365, allocations: 16.41 kB / 428.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-05/0.5366, allocations: 24.61 kB / 428.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005814/0.5372, allocations: 383 kB / 429 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.5372, allocations: 0.9688 kB / 429 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.956e-05/0.5372, allocations: 21.44 kB / 429 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.5372, allocations: 0.8438 kB / 429 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.5374, allocations: 64.91 kB / 429.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.5379, allocations: 373.9 kB / 429.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.5382, allocations: 174 kB / 429.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.5385, allocations: 161.8 kB / 429.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.5385, allocations: 0 / 429.8 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008867/0.5394, allocations: 0.5323 MB / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.342e-06/0.5394, allocations: 0 / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001073/0.5405, allocations: 0.6467 MB / 430.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5405, allocations: 57.61 kB / 431 MB, free: 37.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.5407, allocations: 132.6 kB / 431.1 MB, free: 37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.5407, allocations: 47.86 kB / 431.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.5408, allocations: 90.52 kB / 431.3 MB, free: 36.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.807e-05/0.5408, allocations: 71.69 kB / 431.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.5409, allocations: 5.625 kB / 431.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.541, allocations: 326.6 kB / 431.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.5411, allocations: 87.67 kB / 431.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.5413, allocations: 151 kB / 431.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.5414, allocations: 41.61 kB / 431.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5414, allocations: 4 kB / 431.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003621/0.5418, allocations: 250.3 kB / 432.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.5418, allocations: 9.016 kB / 432.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.5418, allocations: 2.562 kB / 432.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.5419, allocations: 2.469 kB / 432.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.542, allocations: 18.41 kB / 432.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.542, allocations: 2.5 kB / 432.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.5422, allocations: 53.23 kB / 432.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.5423, allocations: 12.25 kB / 432.3 MB, free: 36.39 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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.0002359/0.5425, allocations: 163.6 kB / 432.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.5426, allocations: 27.84 kB / 432.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.5427, allocations: 39.3 kB / 432.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.5427, allocations: 2.688 kB / 432.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5427, allocations: 0 / 432.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.974e-06/0.5427, allocations: 3.75 kB / 432.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.543, allocations: 272.6 kB / 432.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.543, allocations: 0 / 432.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.835e-05/0.543, allocations: 3.094 kB / 432.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.543, allocations: 0 / 432.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.5431, allocations: 31.06 kB / 432.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.5431, allocations: 7.688 kB / 432.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5431, allocations: 3.938 kB / 432.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009061/0.544, allocations: 0.5622 MB / 433.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.5442, allocations: 120.4 kB / 433.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.277e-05/0.5443, allocations: 25.22 kB / 433.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.5445, allocations: 46.41 kB / 433.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/0.5447, allocations: 118.6 kB / 433.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.481e-05/0.5448, allocations: 42.91 kB / 433.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.588e-05/0.5448, allocations: 94.55 kB / 433.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5449, allocations: 0 / 433.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.5452, allocations: 79.69 kB / 433.9 MB, free: 35.78 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: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0002026/0.5454, allocations: 140.8 kB / 434 MB, free: 35.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000499/0.5459, allocations: 291.2 kB / 434.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.5459, allocations: 4.25 kB / 434.3 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008795/0.5468, allocations: 0.7247 MB / 435 MB, free: 35.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.5471, allocations: 42.84 kB / 435.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.5482, allocations: 496.3 kB / 435.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.5484, allocations: 0.7098 MB / 436.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.5486, allocations: 38.88 kB / 436.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.5486, allocations: 3.938 kB / 436.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of Templates: time 0.004967/0.5535, allocations: 2.557 MB / 438.9 MB, free: 34.45 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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.Electrical.Test.TestTapChangerLogicMaxCalcHelperMain.o OMCppPowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMaxCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMaxCalcHelperMain.o] Error 1