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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003962/0.003966, allocations: 184.5 kB / 7.462 MB, free: 2.5 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.597/1.597, allocations: 205.2 MB / 213.1 MB, free: 13.86 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.001017/0.001016, allocations: 90.22 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06434/0.06434, allocations: 14.03 MB / 323.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2575/0.3219, allocations: 57.98 MB / 381 MB, free: 73.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.4437, allocations: 51.11 MB / 432.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/0.8585, allocations: 80.26 MB / 0.5004 GB, free: 11.51 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.8588, allocations: 68.17 kB / 0.5005 GB, free: 11.51 MB / 330.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: 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.008461/0.8672, allocations: 2.977 MB / 0.5034 GB, free: 10.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.8673, allocations: 11.53 kB / 0.5034 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.8674, allocations: 20.16 kB / 0.5034 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.8676, allocations: 171.3 kB / 0.5036 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.8677, allocations: 14.95 kB / 0.5036 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.605e-05/0.8678, allocations: 30.84 kB / 0.5036 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001703/0.8679, allocations: 50.91 kB / 0.5037 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/0.8686, allocations: 346.7 kB / 0.504 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.8686, allocations: 0.7188 kB / 0.504 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.885e-05/0.8687, allocations: 12.09 kB / 0.504 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.8687, allocations: 1.219 kB / 0.504 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005151/0.8692, allocations: 340.5 kB / 0.5043 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.8696, allocations: 156.5 kB / 0.5045 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.8698, allocations: 144 kB / 0.5046 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.8699, allocations: 1.156 kB / 0.5046 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007114/0.8706, allocations: 345 kB / 0.5049 GB, free: 9.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.495e-06/0.8706, allocations: 0 / 0.5049 GB, free: 9.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007495/0.8714, allocations: 342.3 kB / 0.5053 GB, free: 9.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.8714, allocations: 54.97 kB / 0.5053 GB, free: 9.742 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.8715, allocations: 112.4 kB / 0.5054 GB, free: 9.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.8716, allocations: 39.62 kB / 0.5055 GB, free: 9.613 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.685e-05/0.8716, allocations: 90.61 kB / 0.5055 GB, free: 9.527 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.414e-05/0.8717, allocations: 66.47 kB / 0.5056 GB, free: 9.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.8717, allocations: 0 / 0.5056 GB, free: 9.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.8718, allocations: 332.3 kB / 0.5059 GB, free: 9.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.872, allocations: 75.3 kB / 0.506 GB, free: 9.164 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.8722, allocations: 144.9 kB / 0.5061 GB, free: 9.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.335e-05/0.8723, allocations: 45.16 kB / 0.5062 GB, free: 9.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.8723, allocations: 0 / 0.5062 GB, free: 9.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003712/0.8727, allocations: 211.9 kB / 0.5064 GB, free: 9.008 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.8727, allocations: 2.812 kB / 0.5064 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.8727, allocations: 1.188 kB / 0.5064 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.8727, allocations: 3.344 kB / 0.5064 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.824e-05/0.8728, allocations: 21.33 kB / 0.5064 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.8729, allocations: 2.656 kB / 0.5064 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.8731, allocations: 51.45 kB / 0.5065 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.8732, allocations: 12.47 kB / 0.5065 GB, free: 8.973 MB / 330.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.0002206/0.8734, allocations: 126.9 kB / 0.5066 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-05/0.8735, allocations: 29.77 kB / 0.5066 GB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.8735, allocations: 30.03 kB / 0.5067 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.8736, allocations: 11.06 kB / 0.5067 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/0.8736, allocations: 5.297 kB / 0.5067 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.8736, allocations: 0 / 0.5067 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.8739, allocations: 234.1 kB / 0.5069 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.8739, allocations: 1.312 kB / 0.5069 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.8739, allocations: 12.17 kB / 0.5069 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.8739, allocations: 1.344 kB / 0.5069 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.874, allocations: 23.27 kB / 0.5069 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.874, allocations: 5.438 kB / 0.5069 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.874, allocations: 3.906 kB / 0.5069 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006316/0.8746, allocations: 374.9 kB / 0.5073 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007029/0.8754, allocations: 0.7396 MB / 0.508 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.8755, allocations: 122.6 kB / 0.5081 GB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.573e-05/0.8757, allocations: 21.34 kB / 0.5082 GB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.8759, allocations: 48.81 kB / 0.5082 GB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.8762, allocations: 105.6 kB / 0.5083 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.8763, allocations: 47.77 kB / 0.5083 GB, free: 7.719 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.371e-05/0.8763, allocations: 89.53 kB / 0.5084 GB, free: 7.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001014/0.8773, allocations: 72.34 kB / 0.5085 GB, free: 7.637 MB / 330.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.0002338/0.8776, allocations: 128.3 kB / 0.5086 GB, free: 7.535 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005497/0.8782, allocations: 261.1 kB / 0.5089 GB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.8782, allocations: 1.219 kB / 0.5089 GB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.8789, allocations: 0.7079 MB / 0.5096 GB, free: 7.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.8793, allocations: 35.77 kB / 0.5096 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.8805, allocations: 351.1 kB / 0.5099 GB, free: 7.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003842/0.8809, allocations: 0.7548 MB / 0.5107 GB, free: 6.609 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8809, allocations: 0 / 0.5107 GB, free: 6.609 MB / 330.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)