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="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",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.007911/0.007911, allocations: 101.1 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1648/0.1648, allocations: 16.78 MB / 307.3 MB, free: 14.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 62.19 kB / 428.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.08257, allocations: 53.56 MB / 481.6 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001988/0.0846, allocations: 1.449 MB / 483.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007751/0.08539, allocations: 0.4932 MB / 483.6 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.806e-05/0.08544, allocations: 1.25 kB / 483.6 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.08547, allocations: 3.938 kB / 483.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.692e-05/0.08556, allocations: 17.09 kB / 483.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.08573, allocations: 78.25 kB / 483.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.08588, allocations: 193 kB / 483.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.95e-05/0.08594, allocations: 8.484 kB / 483.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.77e-05/0.08604, allocations: 91.66 kB / 484 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.424e-05/0.08615, allocations: 91.59 kB / 484 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.08618, allocations: 16.88 kB / 484.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.748e-05/0.08623, allocations: 12.09 kB / 484.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.857e-05/0.08628, allocations: 53.3 kB / 484.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.691e-05/0.08637, allocations: 77.06 kB / 484.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.08651, allocations: 134.5 kB / 484.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.08652, allocations: 0 / 484.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08652, allocations: 0 / 484.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.08653, allocations: 0 / 484.3 MB, free: 7.523 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.0007361/0.08727, allocations: 0.5514 MB / 484.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.08732, allocations: 9.625 kB / 484.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.448e-05/0.08741, allocations: 23.97 kB / 484.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.622e-05/0.0875, allocations: 181.8 kB / 485.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.08752, allocations: 21.73 kB / 485.1 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.08759, allocations: 27.59 kB / 485.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.08805, allocations: 376.5 kB / 485.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.08807, allocations: 0 / 485.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.08812, allocations: 13.48 kB / 485.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.08813, allocations: 1.375 kB / 485.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.08829, allocations: 62.31 kB / 485.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002811/0.08858, allocations: 384.6 kB / 486 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.08883, allocations: 171.4 kB / 486.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.08904, allocations: 157.7 kB / 486.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.08906, allocations: 1.094 kB / 486.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006388/0.0897, allocations: 0.5373 MB / 486.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.294e-06/0.08972, allocations: 0 / 486.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008549/0.09058, allocations: 0.6452 MB / 487.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.09061, allocations: 59.06 kB / 487.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.828e-05/0.0907, allocations: 123.9 kB / 487.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.09074, allocations: 45.72 kB / 487.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.021e-05/0.09077, allocations: 95.33 kB / 487.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.09082, allocations: 80.28 kB / 487.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.186e-05/0.0909, allocations: 53.7 kB / 487.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.198e-05/0.09095, allocations: 326.8 kB / 488.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.09107, allocations: 92.16 kB / 488.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.09121, allocations: 159.5 kB / 488.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.09147, allocations: 217.8 kB / 488.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09148, allocations: 0 / 488.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002808/0.09176, allocations: 249.1 kB / 488.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.09178, allocations: 8 kB / 488.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.09179, allocations: 0 / 488.9 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.09182, allocations: 4 kB / 488.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.153e-05/0.0919, allocations: 19.92 kB / 489 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.09192, allocations: 8 kB / 489 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.0921, allocations: 43.8 kB / 489 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.09212, allocations: 12 kB / 489 MB, free: 3.59 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 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,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.0001554/0.09228, allocations: 166 kB / 489.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.09233, allocations: 23.91 kB / 489.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.629e-05/0.0924, allocations: 29.61 kB / 489.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.09241, allocations: 8.031 kB / 489.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.09242, allocations: 0 / 489.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.09243, allocations: 0 / 489.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.09259, allocations: 285.3 kB / 489.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.0926, allocations: 0 / 489.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-05/0.09263, allocations: 11.92 kB / 489.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.09264, allocations: 0 / 489.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/0.09268, allocations: 27.95 kB / 489.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.09268, allocations: 0 / 489.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.09269, allocations: 0 / 489.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005214/0.09321, allocations: 0.568 MB / 490.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.964e-05/0.09332, allocations: 116.8 kB / 490.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.09339, allocations: 31.95 kB / 490.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.09357, allocations: 39.94 kB / 490.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.09374, allocations: 83.84 kB / 490.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/0.09378, allocations: 43.95 kB / 490.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.27e-05/0.09382, allocations: 95.27 kB / 490.5 MB, free: 1.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.09383, allocations: 0 / 490.5 MB, free: 1.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002444/0.09408, allocations: 79.98 kB / 490.6 MB, free: 1.906 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 (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.0001344/0.09422, allocations: 137.4 kB / 490.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.09461, allocations: 291.8 kB / 491 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.09462, allocations: 0 / 491 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.09502, allocations: 0.7303 MB / 491.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.0953, allocations: 55.81 kB / 491.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007509/0.09606, allocations: 435.4 kB / 492.2 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.09629, allocations: 0.7176 MB / 493 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.418e-05/0.09639, allocations: 33.94 kB / 493 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.09651, allocations: 43.39 kB / 493 MB, free: 15.42 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09652, allocations: 7.875 kB / 493 MB, free: 15.41 MB / 366.1 MB Notification: Performance of Templates: time 0.006425/0.1029, allocations: 3.678 MB / 496.7 MB, free: 11.75 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches