Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.001312/0.001312, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.001551/0.001551, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1874/0.1874, allocations: 38.5 MB / 349.4 MB, free: 2.586 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 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.001958/0.001958, allocations: 71.89 kB / 487.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.114, allocations: 62.41 MB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009157/0.1232, allocations: 7.391 MB / 0.5446 GB, free: 128 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.1261, allocations: 1.757 MB / 0.5463 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.1264, allocations: 43.62 kB / 0.5463 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000618/0.127, allocations: 238.4 kB / 0.5466 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.1282, allocations: 0.5832 MB / 0.5471 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.1286, allocations: 207.7 kB / 0.5473 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.1299, allocations: 1.269 MB / 0.5486 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.1303, allocations: 270.6 kB / 0.5488 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008102/0.1311, allocations: 0.568 MB / 0.5494 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009046/0.132, allocations: 0.6774 MB / 0.55 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1321, allocations: 64 kB / 0.5501 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.1322, allocations: 64 kB / 0.5502 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.1326, allocations: 342.9 kB / 0.5505 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.133, allocations: 433.7 kB / 0.5509 GB, free: 9.613 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1341, allocations: 0.918 MB / 0.5518 GB, free: 8.691 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1341, allocations: 0 / 0.5518 GB, free: 8.691 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.1341, allocations: 0 / 0.5518 GB, free: 8.691 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1341, allocations: 0 / 0.5518 GB, free: 8.691 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002152/0.1362, allocations: 1.255 MB / 0.553 GB, free: 7.367 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1363, allocations: 12.03 kB / 0.553 GB, free: 7.355 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.381e-05/0.1363, allocations: 17.44 kB / 0.5531 GB, free: 7.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001358/0.1364, allocations: 114.7 kB / 0.5532 GB, free: 7.219 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.1366, allocations: 100.3 kB / 0.5533 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1378, allocations: 0.7112 MB / 0.554 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.1378, allocations: 49.31 kB / 0.554 GB, free: 6.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.1379, allocations: 60 kB / 0.5541 GB, free: 6.262 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1392, allocations: 0.8099 MB / 0.5548 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.1392, allocations: 3.938 kB / 0.5549 GB, free: 5.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.099e-05/0.1393, allocations: 28 kB / 0.5549 GB, free: 5.383 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.886e-05/0.1393, allocations: 33.3 kB / 0.5549 GB, free: 5.352 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.1404, allocations: 0.6179 MB / 0.5555 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/0.144, allocations: 2.626 MB / 0.5581 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000971/0.145, allocations: 0.5645 MB / 0.5586 GB, free: 1.402 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.1456, allocations: 339.7 kB / 0.559 GB, free: 1.066 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.1457, allocations: 16.44 kB / 0.559 GB, free: 1.051 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006664/0.1463, allocations: 487 kB / 0.5594 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of pre-optimization done (n=63): time 2.094e-06/0.1463, allocations: 0 / 0.5594 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.003119/0.1495, allocations: 1.999 MB / 0.5614 GB, free: 14.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001691/0.1496, allocations: 252 kB / 0.5616 GB, free: 14.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007265/0.1504, allocations: 0.5664 MB / 0.5622 GB, free: 13.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.1504, allocations: 41.7 kB / 0.5622 GB, free: 13.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.1508, allocations: 412.3 kB / 0.5626 GB, free: 13.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.1509, allocations: 206.3 kB / 0.5628 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.1511, allocations: 150.6 kB / 0.563 GB, free: 12.76 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.1514, allocations: 386.8 kB / 0.5633 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.1517, allocations: 229.8 kB / 0.5635 GB, free: 12.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005471/0.1523, allocations: 453.9 kB / 0.564 GB, free: 11.61 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009848/0.1533, allocations: 0.8012 MB / 0.5648 GB, free: 10.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1533, allocations: 0 / 0.5648 GB, free: 10.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001613/0.1549, allocations: 0.9485 MB / 0.5657 GB, free: 9.711 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.486e-05/0.1549, allocations: 71.33 kB / 0.5657 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.1549, allocations: 7.938 kB / 0.5658 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004053/0.1554, allocations: 109.6 kB / 0.5659 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/0.1559, allocations: 148 kB / 0.566 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.1594, allocations: 3.563 MB / 0.5695 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004885/0.1599, allocations: 35.92 kB / 0.5695 GB, free: 5.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.55e-05/0.16, allocations: 60.2 kB / 0.5696 GB, free: 5.426 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004417/0.1605, allocations: 354.6 kB / 0.5699 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.1606, allocations: 83.53 kB / 0.57 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.1618, allocations: 0.7935 MB / 0.5708 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1618, allocations: 4 kB / 0.5708 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.1618, allocations: 0 / 0.5708 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.1618, allocations: 7.922 kB / 0.5708 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.1641, allocations: 1.561 MB / 0.5723 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/0.1641, allocations: 4 kB / 0.5723 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.1646, allocations: 111.8 kB / 0.5724 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.1646, allocations: 4 kB / 0.5724 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.1646, allocations: 16 kB / 0.5724 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.1646, allocations: 4 kB / 0.5724 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1646, allocations: 8.078 kB / 0.5724 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.1663, allocations: 1.199 MB / 0.5736 GB, free: 1.125 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.1665, allocations: 192.5 kB / 0.5738 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.122e-05/0.1666, allocations: 20.06 kB / 0.5738 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.167, allocations: 27.97 kB / 0.5738 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.479e-05/0.1671, allocations: 40.39 kB / 0.5739 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.2e-05/0.1672, allocations: 67.78 kB / 0.5739 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000459/0.1676, allocations: 391.1 kB / 0.5743 GB, free: 396 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1676, allocations: 0 / 0.5743 GB, free: 396 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007076/0.1683, allocations: 180 kB / 0.5745 GB, free: 216 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.002138/0.1705, allocations: 1.77 MB / 0.5762 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.1722, allocations: 0.9729 MB / 0.5772 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1722, allocations: 0 / 0.5772 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.1728, allocations: 429.2 kB / 0.5776 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.1737, allocations: 162.5 kB / 0.5777 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009342/0.1831, allocations: 6.302 MB / 0.5839 GB, free: 6.141 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.1838, allocations: 1.009 MB / 0.5849 GB, free: 5.102 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.1843, allocations: 153.8 kB / 0.585 GB, free: 4.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004269/0.1847, allocations: 283.3 kB / 0.5853 GB, free: 4.672 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.1847, allocations: 0 / 0.5853 GB, free: 4.672 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3093/0.494, allocations: 14.23 MB / 0.5992 GB, free: 49.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.25, allocations: 10.91 kB / 0.5992 GB, free: 49.82 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.27088377304608] Failed to read output from testmodel.py, exit status != 0: 13.40235283196671 13.413741645 13.27739518 Calling exit ...