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.002754/0.002754, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.3 MB / 213.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007689/0.0007689, allocations: 92.09 kB / 261.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05531/0.05531, allocations: 14.04 MB / 323.4 MB, free: 13.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.742e-05/1.745e-05, allocations: 4 kB / 381.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3648, allocations: 51.1 MB / 432.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.4916, allocations: 80.34 MB / 0.501 GB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003263/0.492, allocations: 67.97 kB / 0.5011 GB, free: 15.45 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.007587/0.4996, allocations: 2.726 MB / 0.5037 GB, free: 12.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4996, allocations: 0 / 0.5037 GB, free: 12.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.4996, allocations: 4 kB / 0.5037 GB, free: 12.71 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.0008745/0.5005, allocations: 494.1 kB / 0.5042 GB, free: 12.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.5006, allocations: 8.031 kB / 0.5042 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.962e-05/0.5007, allocations: 23.89 kB / 0.5042 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.501, allocations: 181.2 kB / 0.5044 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.501, allocations: 11.97 kB / 0.5044 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.63e-05/0.5011, allocations: 19.98 kB / 0.5044 GB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001542/0.5012, allocations: 51.95 kB / 0.5045 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.5018, allocations: 353.1 kB / 0.5048 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.5018, allocations: 4 kB / 0.5048 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.5019, allocations: 11.98 kB / 0.5048 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5019, allocations: 0 / 0.5048 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000468/0.5024, allocations: 341.2 kB / 0.5052 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.5026, allocations: 158.5 kB / 0.5053 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.5028, allocations: 140.9 kB / 0.5055 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.5028, allocations: 4 kB / 0.5055 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007675/0.5036, allocations: 0.5224 MB / 0.506 GB, free: 10.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.5036, allocations: 0 / 0.506 GB, free: 10.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007294/0.5044, allocations: 485.3 kB / 0.5064 GB, free: 9.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.5044, allocations: 59.34 kB / 0.5065 GB, free: 9.727 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.5045, allocations: 112.9 kB / 0.5066 GB, free: 9.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.5046, allocations: 41.69 kB / 0.5066 GB, free: 9.562 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.671e-05/0.5047, allocations: 92.61 kB / 0.5067 GB, free: 9.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.759e-05/0.5048, allocations: 75.28 kB / 0.5068 GB, free: 9.391 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.369e-05/0.5048, allocations: 0 / 0.5068 GB, free: 9.391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.505, allocations: 322.8 kB / 0.5071 GB, free: 9.066 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.5051, allocations: 80.33 kB / 0.5072 GB, free: 8.984 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.5053, allocations: 135.5 kB / 0.5073 GB, free: 8.828 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.751e-05/0.5054, allocations: 46.36 kB / 0.5074 GB, free: 8.781 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5054, allocations: 3.938 kB / 0.5074 GB, free: 8.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003557/0.5058, allocations: 213.1 kB / 0.5076 GB, free: 8.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.5058, allocations: 7.984 kB / 0.5076 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5058, allocations: 0 / 0.5076 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.5058, allocations: 8.125 kB / 0.5076 GB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.5059, allocations: 15.94 kB / 0.5076 GB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.5059, allocations: 7.938 kB / 0.5076 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.5062, allocations: 35.95 kB / 0.5076 GB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.5062, allocations: 8 kB / 0.5076 GB, free: 8.48 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = false ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = false protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = false protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = false ) "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 () * 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.0001977/0.5064, allocations: 141.6 kB / 0.5078 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006485/0.507, allocations: 493.2 kB / 0.5082 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.5071, allocations: 27.81 kB / 0.5083 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.935e-05/0.5072, allocations: 30.17 kB / 0.5083 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5072, allocations: 4 kB / 0.5083 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5072, allocations: 0 / 0.5083 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.5072, allocations: 0 / 0.5083 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.5075, allocations: 234 kB / 0.5085 GB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.5075, allocations: 8 kB / 0.5085 GB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.5075, allocations: 11.98 kB / 0.5085 GB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.5075, allocations: 3.953 kB / 0.5086 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.5076, allocations: 23.95 kB / 0.5086 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.5076, allocations: 7.938 kB / 0.5086 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5076, allocations: 0 / 0.5086 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.5083, allocations: 0.509 MB / 0.5091 GB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.5084, allocations: 112.9 kB / 0.5092 GB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.686e-05/0.5085, allocations: 35.91 kB / 0.5092 GB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.5087, allocations: 43.95 kB / 0.5093 GB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.509, allocations: 107.7 kB / 0.5094 GB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.301e-05/0.509, allocations: 43.95 kB / 0.5094 GB, free: 6.586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.5091, allocations: 94.72 kB / 0.5095 GB, free: 6.496 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5091, allocations: 0 / 0.5095 GB, free: 6.496 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002701/0.5094, allocations: 71.98 kB / 0.5096 GB, free: 6.426 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) * 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.001052/0.5104, allocations: 1.067 MB / 0.5106 GB, free: 5.332 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004493/0.5109, allocations: 263.9 kB / 0.5109 GB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5109, allocations: 0 / 0.5109 GB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006296/0.5115, allocations: 0.6955 MB / 0.5115 GB, free: 4.379 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.5118, allocations: 39.91 kB / 0.5116 GB, free: 4.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.5128, allocations: 383.4 kB / 0.5119 GB, free: 3.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.5132, allocations: 0.7178 MB / 0.5126 GB, free: 3.184 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.5134, allocations: 45.92 kB / 0.5127 GB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.5135, allocations: 59.39 kB / 0.5127 GB, free: 3.078 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5136, allocations: 0 / 0.5127 GB, free: 3.078 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2781/0.7916, allocations: 4.301 MB / 0.5169 GB, free: 88.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.7919, allocations: 133.8 kB / 0.5171 GB, free: 88.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.643, allocations: 0 / 0.5171 GB, free: 88.13 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)