Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005474/0.005474, allocations: 170.3 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009066/0.0009067, allocations: 86.88 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05314/0.05314, allocations: 14.19 MB / 332 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003072, allocations: 9.266 kB / 395.1 MB, free: 50.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09099, allocations: 51.13 MB / 446.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.1991, allocations: 81.08 MB / 0.5149 GB, free: 4.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.1993, allocations: 71.97 kB / 0.515 GB, free: 4.09 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/Electrical/Branches/BaseClasses/TapChangerPhaseShifterLogicCommon.mo:13:3-13:48:writable] Error: Variable state: Variable stateStart in package PowerGrids.Electrical.Test.TestTapChangerLogicMax is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.007021/0.2064, allocations: 2.74 MB / 0.5177 GB, free: 1.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2064, allocations: 0 / 0.5177 GB, free: 1.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.2064, allocations: 0 / 0.5177 GB, free: 1.332 MB / 362.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.000749/0.2072, allocations: 0.491 MB / 0.5182 GB, free: 0.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2072, allocations: 12.02 kB / 0.5182 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.783e-05/0.2073, allocations: 50.53 kB / 0.5182 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.2074, allocations: 23.89 kB / 0.5182 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.2076, allocations: 171.1 kB / 0.5184 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.2076, allocations: 15.97 kB / 0.5184 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.2077, allocations: 27.94 kB / 0.5184 GB, free: 460 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.2082, allocations: 377 kB / 0.5188 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2082, allocations: 0 / 0.5188 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.2083, allocations: 11.98 kB / 0.5188 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2083, allocations: 0 / 0.5188 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1821/0.3904, allocations: 64.89 kB / 0.5189 GB, free: 82.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006638/0.3911, allocations: 367.1 kB / 0.5192 GB, free: 82.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.3914, allocations: 177.3 kB / 0.5194 GB, free: 82.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.3914, allocations: 2.938 kB / 0.5194 GB, free: 82.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009239/0.3924, allocations: 0.5457 MB / 0.5199 GB, free: 82.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.3924, allocations: 3.625 kB / 0.5199 GB, free: 82.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001234/0.3936, allocations: 0.6454 MB / 0.5206 GB, free: 82.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.3937, allocations: 59.89 kB / 0.5206 GB, free: 82.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.3938, allocations: 122.6 kB / 0.5207 GB, free: 82.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.3939, allocations: 43.42 kB / 0.5208 GB, free: 82.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.875e-05/0.394, allocations: 92.45 kB / 0.5209 GB, free: 82.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.065e-05/0.3941, allocations: 70.27 kB / 0.5209 GB, free: 82.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.3941, allocations: 5.312 kB / 0.5209 GB, free: 82.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3942, allocations: 331.2 kB / 0.5213 GB, free: 81.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.3944, allocations: 88.61 kB / 0.5213 GB, free: 81.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.3947, allocations: 148.6 kB / 0.5215 GB, free: 81.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.3948, allocations: 50.67 kB / 0.5215 GB, free: 81.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3948, allocations: 0 / 0.5215 GB, free: 81.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004859/0.3953, allocations: 255.6 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.3953, allocations: 9.938 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3953, allocations: 1.031 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3954, allocations: 2.531 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.3955, allocations: 19.55 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3955, allocations: 2.062 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.3958, allocations: 46.03 kB / 0.5218 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.3958, allocations: 11.44 kB / 0.5219 GB, free: 81.79 MB / 362.7 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.0002109/0.396, allocations: 153.6 kB / 0.522 GB, free: 81.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.3961, allocations: 36.38 kB / 0.522 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.34e-05/0.3962, allocations: 34.41 kB / 0.5221 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3962, allocations: 6.531 kB / 0.5221 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3962, allocations: 0 / 0.5221 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3962, allocations: 1.781 kB / 0.5221 GB, free: 81.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.3965, allocations: 271.3 kB / 0.5223 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3965, allocations: 1.188 kB / 0.5223 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.744e-05/0.3965, allocations: 8.75 kB / 0.5223 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.3965, allocations: 4.984 kB / 0.5224 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.3966, allocations: 26.39 kB / 0.5224 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3966, allocations: 5 kB / 0.5224 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3966, allocations: 0 / 0.5224 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000898/0.3975, allocations: 0.5603 MB / 0.5229 GB, free: 81.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.3977, allocations: 116 kB / 0.523 GB, free: 81.28 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.3978, allocations: 26.53 kB / 0.5231 GB, free: 81.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.398, allocations: 58.67 kB / 0.5231 GB, free: 81.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.3983, allocations: 107.2 kB / 0.5232 GB, free: 81.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/0.3984, allocations: 43.81 kB / 0.5233 GB, free: 81.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.273e-05/0.3984, allocations: 93.75 kB / 0.5234 GB, free: 81.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3984, allocations: 0 / 0.5234 GB, free: 81.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002938/0.3987, allocations: 83.09 kB / 0.5234 GB, free: 81.2 MB / 362.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 (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.0009868/0.3997, allocations: 1.132 MB / 0.5245 GB, free: 80.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000485/0.4002, allocations: 293.1 kB / 0.5248 GB, free: 80.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4002, allocations: 0 / 0.5248 GB, free: 80.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007725/0.401, allocations: 0.72 MB / 0.5255 GB, free: 80.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.4013, allocations: 41.28 kB / 0.5256 GB, free: 80.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.4033, allocations: 1.779 MB / 0.5273 GB, free: 79.51 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.4034, allocations: 0.7201 MB / 0.528 GB, free: 78.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.4036, allocations: 38.39 kB / 0.528 GB, free: 78.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.4037, allocations: 59.44 kB / 0.5281 GB, free: 78.79 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4037, allocations: 0 / 0.5281 GB, free: 78.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.4203, allocations: 4.509 MB / 0.5325 GB, free: 78.39 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/0.4205, allocations: 185.9 kB / 0.5327 GB, free: 78.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.208, allocations: 0 / 0.5327 GB, free: 78.14 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)