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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00263/0.00263, allocations: 212.6 kB / 23.03 MB, free: 4.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 207.7 MB / 233.9 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06852/0.06852, allocations: 14.39 MB / 300.5 MB, free: 7.246 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 67.91 kB / 423 MB, free: 37.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09366, allocations: 52.9 MB / 475.9 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00275/0.09641, allocations: 1.425 MB / 477.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.09741, allocations: 0.5148 MB / 477.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.09745, allocations: 0 / 477.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.816e-05/0.09747, allocations: 7.938 kB / 477.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.367e-05/0.09755, allocations: 15.88 kB / 477.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.09776, allocations: 79.81 kB / 478 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.09796, allocations: 183.6 kB / 478.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.191e-05/0.09801, allocations: 7.984 kB / 478.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.09814, allocations: 95.8 kB / 478.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.09828, allocations: 91.78 kB / 478.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.09833, allocations: 12 kB / 478.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.09837, allocations: 15.94 kB / 478.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.685e-05/0.09844, allocations: 51.86 kB / 478.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.09856, allocations: 79.8 kB / 478.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.09876, allocations: 135.6 kB / 478.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.09877, allocations: 0 / 478.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.09877, allocations: 0 / 478.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.09878, allocations: 0 / 478.6 MB, free: 13.75 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.001056/0.09983, allocations: 485.7 kB / 479.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.09988, allocations: 12.03 kB / 479.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.758e-05/0.0999, allocations: 192 / 479.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.721e-05/0.09997, allocations: 54.72 kB / 479.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1001, allocations: 20.88 kB / 479.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.1002, allocations: 126.4 kB / 479.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.1003, allocations: 16.36 kB / 479.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/0.1003, allocations: 32.33 kB / 479.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006934/0.101, allocations: 432.4 kB / 479.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.101, allocations: 0 / 479.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.1011, allocations: 11.92 kB / 479.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1011, allocations: 4 kB / 479.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.1013, allocations: 67.88 kB / 479.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.1018, allocations: 307.8 kB / 480.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.102, allocations: 82.52 kB / 480.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.1022, allocations: 72.8 kB / 480.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.1022, allocations: 0 / 480.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009368/0.1031, allocations: 0.5724 MB / 480.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.1031, allocations: 4 kB / 480.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001112/0.1042, allocations: 0.6542 MB / 481.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.1043, allocations: 59.41 kB / 481.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.1045, allocations: 132.5 kB / 481.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.1045, allocations: 41.7 kB / 481.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.1046, allocations: 96.78 kB / 481.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.1047, allocations: 75.5 kB / 481.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1048, allocations: 57.7 kB / 482 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1049, allocations: 330.8 kB / 482.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.1051, allocations: 88.3 kB / 482.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.1053, allocations: 232.5 kB / 482.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.1057, allocations: 233.4 kB / 482.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1057, allocations: 3.938 kB / 482.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004137/0.1061, allocations: 245.5 kB / 483.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1062, allocations: 5.562 kB / 483.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1062, allocations: 0 / 483.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.1062, allocations: 8.125 kB / 483.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.1063, allocations: 15.92 kB / 483.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.1063, allocations: 4 kB / 483.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.1065, allocations: 43.86 kB / 483.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.1065, allocations: 11.94 kB / 483.2 MB, free: 8.906 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.0002177/0.1068, allocations: 165.6 kB / 483.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.1068, allocations: 27.89 kB / 483.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.987e-05/0.1069, allocations: 29.62 kB / 483.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1069, allocations: 4 kB / 483.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1069, allocations: 0 / 483.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1069, allocations: 3.984 kB / 483.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.1072, allocations: 220.6 kB / 483.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1072, allocations: 0 / 483.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.1072, allocations: 7.984 kB / 483.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1072, allocations: 0 / 483.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.1073, allocations: 31.95 kB / 483.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1073, allocations: 11.94 kB / 483.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1073, allocations: 0 / 483.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008347/0.1081, allocations: 0.5554 MB / 484.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.1083, allocations: 47.81 kB / 484.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.1083, allocations: 19.97 kB / 484.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.1086, allocations: 39.94 kB / 484.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.1088, allocations: 91.81 kB / 484.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.978e-05/0.1089, allocations: 43.95 kB / 484.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.917e-05/0.1089, allocations: 99.02 kB / 484.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1089, allocations: 4 kB / 484.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.1092, allocations: 79.97 kB / 484.7 MB, free: 7.367 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.001199/0.1104, allocations: 1.123 MB / 485.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000508/0.1109, allocations: 280 kB / 486.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1109, allocations: 0 / 486.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.1112, allocations: 171.8 kB / 486.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1115, allocations: 47.94 kB / 486.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.1145, allocations: 2.191 MB / 488.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.1147, allocations: 114.9 kB / 488.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.1148, allocations: 29.98 kB / 488.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.1149, allocations: 67.31 kB / 488.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1149, allocations: 4 kB / 488.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.1524, allocations: 5.759 MB / 494.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.5, allocations: 11.94 kB / 494.4 MB, free: 13.48 MB / 366.1 MB " [Timeout remaining time 648] (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/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.346554295043461] Failed to read output from testmodel.py, exit status != 0: 11.663911395007744 11.683550502 11.581344622 Calling exit ...