Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 108.4 kB / 16.92 MB, free: 5.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 191.3 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1782/0.1782, allocations: 38.01 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 60.88 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09776, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.00689/0.1047, allocations: 5.506 MB / 462.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.1069, allocations: 1.359 MB / 463.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003408/0.1073, allocations: 23.88 kB / 463.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004796/0.1078, allocations: 135 kB / 464 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009508/0.1088, allocations: 374.2 kB / 464.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1092, allocations: 147.8 kB / 464.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009062/0.1101, allocations: 0.7904 MB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.1104, allocations: 217.7 kB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.111, allocations: 338.5 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006929/0.1117, allocations: 398.6 kB / 466.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.704e-05/0.1118, allocations: 40 kB / 466.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.1119, allocations: 40 kB / 466.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.1122, allocations: 207.4 kB / 466.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.1126, allocations: 278.5 kB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.1132, allocations: 0.5644 MB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1132, allocations: 0 / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1132, allocations: 0 / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.1132, allocations: 3.938 kB / 467.3 MB, free: 13.52 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00156/0.1148, allocations: 0.8948 MB / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1148, allocations: 11.89 kB / 468.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.586e-05/0.1149, allocations: 82.7 kB / 468.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.115, allocations: 60.19 kB / 468.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.1158, allocations: 0.4905 MB / 468.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.1158, allocations: 29 kB / 468.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.1159, allocations: 47.94 kB / 469 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000813/0.1167, allocations: 0.5234 MB / 469.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1168, allocations: 11.92 kB / 469.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.1168, allocations: 20 kB / 469.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-05/0.1169, allocations: 20.98 kB / 469.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006233/0.1175, allocations: 391.6 kB / 469.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.1198, allocations: 1.928 MB / 471.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.1204, allocations: 337.3 kB / 472.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.1208, allocations: 189.6 kB / 472.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.1209, allocations: 4 kB / 472.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003802/0.1212, allocations: 276.8 kB / 472.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.834e-06/0.1213, allocations: 0 / 472.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001944/0.1232, allocations: 1.191 MB / 473.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1233, allocations: 170.2 kB / 474 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004428/0.1238, allocations: 397.8 kB / 474.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.1238, allocations: 33.7 kB / 474.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/0.124, allocations: 287.6 kB / 474.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.1242, allocations: 126.3 kB / 474.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1243, allocations: 90.16 kB / 474.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1244, allocations: 358.8 kB / 475.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.1247, allocations: 121.1 kB / 475.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.125, allocations: 292.9 kB / 475.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/0.1255, allocations: 481.3 kB / 476.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1255, allocations: 0 / 476.1 MB, free: 4.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008286/0.1264, allocations: 0.5257 MB / 476.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.1264, allocations: 33.7 kB / 476.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1264, allocations: 4 kB / 476.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.1264, allocations: 8 kB / 476.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.1269, allocations: 107.8 kB / 476.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.237e-05/0.1269, allocations: 11.94 kB / 476.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.1272, allocations: 24.3 kB / 476.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/0.1273, allocations: 35.98 kB / 476.9 MB, free: 3.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002605/0.1275, allocations: 244.2 kB / 477.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.321e-05/0.1276, allocations: 59.3 kB / 477.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000689/0.1283, allocations: 451.2 kB / 477.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1283, allocations: 4 kB / 477.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1283, allocations: 0 / 477.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1283, allocations: 3.984 kB / 477.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.1296, allocations: 0.9888 MB / 478.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1296, allocations: 0 / 478.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.1299, allocations: 63.89 kB / 478.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.1299, allocations: 4 kB / 478.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.13, allocations: 8 kB / 478.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.13, allocations: 4 kB / 478.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.13, allocations: 0 / 478.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009181/0.1309, allocations: 0.7211 MB / 479.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.1311, allocations: 136.5 kB / 479.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.1311, allocations: 11.98 kB / 479.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1314, allocations: 12 kB / 479.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.568e-05/0.1315, allocations: 23.97 kB / 479.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/0.1315, allocations: 36.02 kB / 479.6 MB, free: 472 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.1318, allocations: 275.1 kB / 479.9 MB, free: 200 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1318, allocations: 0 / 479.9 MB, free: 200 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.1323, allocations: 100 kB / 480 MB, free: 100 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001244/0.1335, allocations: 1.262 MB / 481.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006668/0.1342, allocations: 436.3 kB / 481.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1342, allocations: 0 / 481.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003021/0.1345, allocations: 267.6 kB / 481.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006062/0.1351, allocations: 109.2 kB / 482 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00502/0.1402, allocations: 4.16 MB / 486.2 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.1407, allocations: 0.882 MB / 487.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002981/0.141, allocations: 88.31 kB / 487.2 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.1413, allocations: 179.4 kB / 487.3 MB, free: 8.418 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1413, allocations: 0 / 487.3 MB, free: 8.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.1714, allocations: 8.51 MB / 495.8 MB, free: 16 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.718, allocations: 15.73 kB / 495.9 MB, free: 4 kB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)