Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 180.5 kB / 15.43 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 225.7 MB / 241.9 MB, free: 14.64 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000851/0.0008511, allocations: 102.4 kB / 293.1 MB, free: 4.82 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06266/0.06266, allocations: 14.38 MB / 358.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002852, allocations: 10.69 kB / 424.6 MB, free: 97.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0769/0.0772, allocations: 53.95 MB / 478.5 MB, free: 56.83 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001296/0.07854, allocations: 1.143 MB / 479.7 MB, free: 55.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006955/0.07926, allocations: 486 kB / 480.2 MB, free: 55.2 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.07932, allocations: 0 / 480.2 MB, free: 55.2 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.07935, allocations: 3.938 kB / 480.2 MB, free: 55.2 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.518e-05/0.07943, allocations: 11.94 kB / 480.2 MB, free: 55.18 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.0796, allocations: 71.84 kB / 480.3 MB, free: 55.11 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.07973, allocations: 175.7 kB / 480.4 MB, free: 54.94 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.613e-05/0.07981, allocations: 7.844 kB / 480.4 MB, free: 54.93 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.07995, allocations: 99.73 kB / 480.5 MB, free: 54.84 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.08006, allocations: 95.7 kB / 480.6 MB, free: 54.74 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.08011, allocations: 16 kB / 480.6 MB, free: 54.73 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.951e-05/0.08014, allocations: 12 kB / 480.7 MB, free: 54.71 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/0.08019, allocations: 51.86 kB / 480.7 MB, free: 54.66 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.058e-05/0.08029, allocations: 113.4 kB / 480.8 MB, free: 54.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.08042, allocations: 131.6 kB / 480.9 MB, free: 54.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.08043, allocations: 0 / 480.9 MB, free: 54.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08043, allocations: 4 kB / 480.9 MB, free: 54.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.08044, allocations: 0 / 480.9 MB, free: 54.41 MB / 346.7 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.0007006/0.08115, allocations: 488 kB / 481.4 MB, free: 53.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.08119, allocations: 12.03 kB / 481.4 MB, free: 53.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/0.08128, allocations: 24.83 kB / 481.5 MB, free: 53.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.25e-05/0.08138, allocations: 176.2 kB / 481.6 MB, free: 53.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.08141, allocations: 16.34 kB / 481.6 MB, free: 53.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.08148, allocations: 28.36 kB / 481.7 MB, free: 53.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004491/0.08193, allocations: 377.3 kB / 482 MB, free: 53.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.08195, allocations: 0 / 482 MB, free: 53.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.082, allocations: 23.91 kB / 482.1 MB, free: 53.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.08201, allocations: 0 / 482.1 MB, free: 53.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.08217, allocations: 63.94 kB / 482.1 MB, free: 53.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002903/0.08246, allocations: 364.6 kB / 482.5 MB, free: 52.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.08269, allocations: 186.5 kB / 482.7 MB, free: 52.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.08288, allocations: 160.8 kB / 482.8 MB, free: 52.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.0829, allocations: 0 / 482.8 MB, free: 52.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006004/0.0835, allocations: 0.5291 MB / 483.4 MB, free: 51.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.694e-06/0.08351, allocations: 0 / 483.4 MB, free: 51.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007588/0.08428, allocations: 0.6442 MB / 484 MB, free: 51.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.08432, allocations: 59.39 kB / 484.1 MB, free: 51.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.916e-05/0.08439, allocations: 121.8 kB / 484.2 MB, free: 51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.08443, allocations: 49.69 kB / 484.2 MB, free: 50.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.08447, allocations: 92.69 kB / 484.3 MB, free: 50.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.575e-05/0.08452, allocations: 79.14 kB / 484.4 MB, free: 50.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.08454, allocations: 4 kB / 484.4 MB, free: 50.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.605e-05/0.08459, allocations: 326.8 kB / 484.7 MB, free: 50.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.08472, allocations: 92.28 kB / 484.8 MB, free: 50.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.08487, allocations: 151.5 kB / 484.9 MB, free: 50.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.08514, allocations: 229.7 kB / 485.2 MB, free: 49.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.08515, allocations: 4 kB / 485.2 MB, free: 49.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002846/0.08544, allocations: 233.2 kB / 485.4 MB, free: 49.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.08546, allocations: 7.984 kB / 485.4 MB, free: 49.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.08547, allocations: 4 kB / 485.4 MB, free: 49.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.08549, allocations: 0 / 485.4 MB, free: 49.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.04e-05/0.08558, allocations: 15.94 kB / 485.4 MB, free: 49.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.08559, allocations: 4 kB / 485.4 MB, free: 49.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.08579, allocations: 52.02 kB / 485.5 MB, free: 49.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.08582, allocations: 8 kB / 485.5 MB, free: 49.6 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" 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 ($PRE.running,$PRE.valueAboveMax,$PRE.valueUnderStop,$PRE.locked,$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.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.08597, allocations: 161.5 kB / 485.7 MB, free: 49.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.653e-05/0.08601, allocations: 35.73 kB / 485.7 MB, free: 49.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.621e-05/0.08608, allocations: 29.62 kB / 485.7 MB, free: 49.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.08609, allocations: 8 kB / 485.7 MB, free: 49.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.0861, allocations: 3.938 kB / 485.7 MB, free: 49.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.08611, allocations: 0 / 485.7 MB, free: 49.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.08627, allocations: 269.4 kB / 486 MB, free: 49.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.08628, allocations: 4 kB / 486 MB, free: 49.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.979e-05/0.08632, allocations: 15.92 kB / 486 MB, free: 49.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.08632, allocations: 4 kB / 486 MB, free: 49.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.08636, allocations: 24 kB / 486 MB, free: 48.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.08637, allocations: 0 / 486 MB, free: 48.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.08638, allocations: 3.984 kB / 486 MB, free: 48.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.08691, allocations: 0.567 MB / 486.6 MB, free: 48.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.08702, allocations: 120.8 kB / 486.7 MB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.0871, allocations: 27.97 kB / 486.8 MB, free: 48.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.08731, allocations: 47.94 kB / 486.8 MB, free: 48.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.0875, allocations: 83.83 kB / 486.9 MB, free: 48.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.422e-05/0.08755, allocations: 43.95 kB / 486.9 MB, free: 48.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.154e-05/0.08759, allocations: 107.8 kB / 487 MB, free: 47.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.0876, allocations: 0 / 487 MB, free: 47.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.08785, allocations: 71.98 kB / 487.1 MB, free: 47.89 MB / 346.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001349/0.08799, allocations: 145.9 kB / 487.2 MB, free: 47.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.08838, allocations: 282.6 kB / 487.5 MB, free: 47.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.08839, allocations: 0 / 487.5 MB, free: 47.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.08881, allocations: 0.7344 MB / 488.3 MB, free: 46.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.08908, allocations: 51.89 kB / 488.3 MB, free: 46.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007901/0.08988, allocations: 459.5 kB / 488.8 MB, free: 46.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.09002, allocations: 0.714 MB / 489.5 MB, free: 45.47 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000107/0.09014, allocations: 33.94 kB / 489.5 MB, free: 45.44 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.09026, allocations: 39.41 kB / 489.5 MB, free: 45.4 MB / 346.7 MB Notification: Performance of SimCode: time 3.3e-07/0.09026, allocations: 0 / 489.5 MB, free: 45.4 MB / 346.7 MB Notification: Performance of Templates: time 0.005448/0.09572, allocations: 3.257 MB / 492.8 MB, free: 42.15 MB / 346.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)