Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.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.Transformation.OnePhase,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",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.001086/0.001086, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001091/0.001091, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.318/1.318, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.176/0.176, allocations: 38.03 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 70.8 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1069, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase): time 0.007401/0.1143, allocations: 5.483 MB / 462.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1164, allocations: 1.309 MB / 463.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002222/0.1167, allocations: 27.81 kB / 463.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004485/0.1171, allocations: 135.1 kB / 463.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007842/0.1179, allocations: 374.2 kB / 464.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.1183, allocations: 139.8 kB / 464.4 MB, free: 472 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008638/0.1191, allocations: 0.7476 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003605/0.1195, allocations: 196.2 kB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005048/0.12, allocations: 330.6 kB / 465.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005868/0.1206, allocations: 382.7 kB / 466.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.1207, allocations: 36 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.644e-05/0.1208, allocations: 36 kB / 466.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.121, allocations: 191.5 kB / 466.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002533/0.1213, allocations: 258.7 kB / 466.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005131/0.1218, allocations: 0.5138 MB / 467.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.082e-05/0.1218, allocations: 0 / 467.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1218, allocations: 3.938 kB / 467.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1218, allocations: 0 / 467.1 MB, free: 13.78 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001338/0.1232, allocations: 0.8048 MB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.1232, allocations: 11.89 kB / 467.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.271e-05/0.1233, allocations: 78.72 kB / 468 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.414e-05/0.1234, allocations: 52.28 kB / 468 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006518/0.1241, allocations: 464.1 kB / 468.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.1241, allocations: 29 kB / 468.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-05/0.1242, allocations: 40 kB / 468.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006581/0.1249, allocations: 0.4922 MB / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1249, allocations: 4 kB / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.671e-05/0.1249, allocations: 16 kB / 469.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.125, allocations: 28.92 kB / 469.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005642/0.1255, allocations: 363.7 kB / 469.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.1279, allocations: 2.087 MB / 471.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.1283, allocations: 241.3 kB / 471.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.1286, allocations: 129.7 kB / 471.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.1286, allocations: 8 kB / 471.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.1286, allocations: 34.5 kB / 471.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.1286, allocations: 0 / 471.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001205/0.1298, allocations: 0.7695 MB / 472.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.1299, allocations: 81.05 kB / 472.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003679/0.1303, allocations: 381.5 kB / 473.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.1303, allocations: 29.7 kB / 473.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.1305, allocations: 291.1 kB / 473.5 MB, free: 7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/0.1306, allocations: 82.97 kB / 473.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.1307, allocations: 78.05 kB / 473.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1308, allocations: 354.7 kB / 474 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.131, allocations: 92.81 kB / 474.1 MB, free: 6.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.1312, allocations: 269.2 kB / 474.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/0.1316, allocations: 411.2 kB / 474.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1316, allocations: 0 / 474.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006818/0.1323, allocations: 457.7 kB / 475.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1324, allocations: 16.14 kB / 475.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1324, allocations: 4 kB / 475.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/0.1326, allocations: 52.83 kB / 475.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.1328, allocations: 75.91 kB / 475.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.1343, allocations: 1.614 MB / 476.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.1345, allocations: 15.98 kB / 476.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.1346, allocations: 32.05 kB / 477 MB, free: 3.141 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.1348, allocations: 201.6 kB / 477.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.073e-05/0.1349, allocations: 43.47 kB / 477.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003517/0.1352, allocations: 235.5 kB / 477.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.1352, allocations: 4 kB / 477.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1352, allocations: 0 / 477.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.1352, allocations: 7.922 kB / 477.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000801/0.1361, allocations: 0.6787 MB / 478.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.1361, allocations: 0 / 478.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.1363, allocations: 51.91 kB / 478.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1363, allocations: 0 / 478.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.1363, allocations: 8 kB / 478.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1364, allocations: 0 / 478.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1364, allocations: 3.984 kB / 478.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004667/0.1368, allocations: 448.6 kB / 478.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.137, allocations: 120.7 kB / 478.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.137, allocations: 8 kB / 478.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1371, allocations: 4 kB / 478.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.1372, allocations: 15.97 kB / 478.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.1372, allocations: 8 kB / 478.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.1374, allocations: 259.2 kB / 479 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1375, allocations: 0 / 479 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004443/0.1379, allocations: 92 kB / 479.1 MB, free: 0.875 MB / 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.0007532/0.1387, allocations: 0.9707 MB / 480.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006634/0.1393, allocations: 411.4 kB / 480.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1394, allocations: 0.5 kB / 480.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.1395, allocations: 95.89 kB / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.1401, allocations: 96.36 kB / 480.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004277/0.1444, allocations: 3.726 MB / 484.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.1449, allocations: 0.8545 MB / 485.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002806/0.1452, allocations: 88.12 kB / 485.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.1453, allocations: 151.4 kB / 485.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1454, allocations: 4 kB / 485.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03276/0.1781, allocations: 7.46 MB / 493 MB, free: 2.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.225/9.404, allocations: 18.56 kB / 493 MB, free: 2.809 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe 2>&1)