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.001856/0.001856, allocations: 118.3 kB / 17.17 MB, free: 5.969 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.00255/0.00255, allocations: 215.3 kB / 20.13 MB, free: 3.027 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.482/1.482, allocations: 207.6 MB / 230.5 MB, free: 4.059 MB / 174.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.06791/0.06791, allocations: 14.41 MB / 296.8 MB, free: 1.891 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.002713/0.002713, allocations: 75.91 kB / 417.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.264, allocations: 52.87 MB / 470.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002774/0.2667, allocations: 1.442 MB / 471.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2677, allocations: 0.5318 MB / 472.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.2678, allocations: 1.156 kB / 472.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.2678, allocations: 3.938 kB / 472.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.026e-05/0.2679, allocations: 18.06 kB / 472.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.2681, allocations: 80.89 kB / 472.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.2683, allocations: 185.6 kB / 472.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.883e-05/0.2683, allocations: 11.27 kB / 472.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.2685, allocations: 96.81 kB / 472.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.2686, allocations: 91.61 kB / 472.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.2686, allocations: 12.88 kB / 473 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.845e-05/0.2687, allocations: 12.59 kB / 473 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.894e-05/0.2687, allocations: 60.05 kB / 473 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2688, allocations: 72.14 kB / 473.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.269, allocations: 130.5 kB / 473.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.269, allocations: 0.9062 kB / 473.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.269, allocations: 3.984 kB / 473.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.269, allocations: 0 / 473.2 MB, free: 10.5 MB / 334.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.001104/0.2701, allocations: 0.5556 MB / 473.8 MB, free: 10 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.2702, allocations: 9.406 kB / 473.8 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.074e-05/0.2702, allocations: 1.344 kB / 473.8 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.716e-05/0.2703, allocations: 48.56 kB / 473.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.135e-05/0.2704, allocations: 23.91 kB / 473.9 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.2705, allocations: 176.6 kB / 474 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.2706, allocations: 19.77 kB / 474.1 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.2706, allocations: 29.91 kB / 474.1 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.2713, allocations: 372.8 kB / 474.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.2713, allocations: 1.25 kB / 474.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.345e-05/0.2713, allocations: 12.67 kB / 474.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2713, allocations: 1.438 kB / 474.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.2715, allocations: 70.31 kB / 474.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.272, allocations: 370.6 kB / 474.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.2722, allocations: 86.52 kB / 475 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.2724, allocations: 68.81 kB / 475.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.2724, allocations: 12.19 kB / 475.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000792/0.2732, allocations: 0.5219 MB / 475.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.2732, allocations: 0 / 475.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001071/0.2743, allocations: 0.6511 MB / 476.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.2743, allocations: 59.41 kB / 476.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.2745, allocations: 125.8 kB / 476.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.2745, allocations: 45.69 kB / 476.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.139e-05/0.2746, allocations: 88.7 kB / 476.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.237e-05/0.2747, allocations: 91.48 kB / 476.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/0.2748, allocations: 53.7 kB / 476.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2749, allocations: 326.8 kB / 477 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.2751, allocations: 88.3 kB / 477.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.2753, allocations: 155.4 kB / 477.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.2757, allocations: 233.6 kB / 477.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2757, allocations: 0 / 477.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004096/0.2761, allocations: 241.3 kB / 477.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.2761, allocations: 12.12 kB / 477.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2761, allocations: 0 / 477.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2761, allocations: 4 kB / 477.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.087e-05/0.2762, allocations: 23.86 kB / 477.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.2762, allocations: 7.938 kB / 477.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.2764, allocations: 39.91 kB / 477.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.2765, allocations: 8 kB / 477.8 MB, free: 5.984 MB / 334.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.0002025/0.2767, allocations: 164.9 kB / 478 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.2767, allocations: 27.91 kB / 478 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.369e-05/0.2768, allocations: 33.61 kB / 478 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.2768, allocations: 4 kB / 478 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2768, allocations: 0 / 478 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2768, allocations: 0 / 478 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.2771, allocations: 277.4 kB / 478.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2771, allocations: 11.94 kB / 478.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.223e-05/0.2772, allocations: 11.92 kB / 478.3 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2772, allocations: 0 / 478.3 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.2772, allocations: 27.95 kB / 478.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2772, allocations: 0 / 478.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2772, allocations: 0 / 478.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008078/0.278, allocations: 0.5634 MB / 478.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.2782, allocations: 120.9 kB / 479 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.2783, allocations: 23.97 kB / 479.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.2785, allocations: 43.94 kB / 479.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.2787, allocations: 83.84 kB / 479.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.2787, allocations: 43.95 kB / 479.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.268e-05/0.2788, allocations: 95.27 kB / 479.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2788, allocations: 0 / 479.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.2791, allocations: 83.97 kB / 479.4 MB, free: 4.297 MB / 334.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.001201/0.2803, allocations: 1.138 MB / 480.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.2808, allocations: 260.3 kB / 480.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2808, allocations: 0 / 480.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.2811, allocations: 179.8 kB / 481 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.2814, allocations: 51.94 kB / 481 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.2843, allocations: 2.184 MB / 483.2 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.2846, allocations: 0.7254 MB / 483.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.2847, allocations: 29.89 kB / 484 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.2849, allocations: 59.39 kB / 484 MB, free: 15.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2849, allocations: 0 / 484 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.3074, allocations: 5.19 MB / 489.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.215/8.522, allocations: 8 kB / 489.2 MB, free: 10.34 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.054809041961562] Failed to read output from testmodel.py, exit status != 0: 8.652181037003174 8.676832163 8.40300133 Calling exit ...