Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001512/0.001512, allocations: 110 kB / 16.92 MB, free: 6.332 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.001691/0.001691, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.362/1.362, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1742/0.1742, allocations: 38.03 MB / 329.7 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 59.45 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.08727, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.0064/0.09371, allocations: 4.074 MB / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.09537, allocations: 0.8647 MB / 461.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.09565, allocations: 11.94 kB / 461.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.09587, allocations: 47.56 kB / 462 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006166/0.09653, allocations: 159 kB / 462.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.09683, allocations: 91.81 kB / 462.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000496/0.09733, allocations: 394.6 kB / 462.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.09758, allocations: 114.2 kB / 462.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.09791, allocations: 167.3 kB / 462.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.09827, allocations: 191.2 kB / 463 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.09833, allocations: 20 kB / 463.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.619e-05/0.09841, allocations: 24 kB / 463.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.09853, allocations: 79.73 kB / 463.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.0987, allocations: 143.3 kB / 463.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.09908, allocations: 283 kB / 463.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09909, allocations: 0 / 463.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.0991, allocations: 0 / 463.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.09912, allocations: 3.938 kB / 463.6 MB, free: 1.309 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001197/0.1003, allocations: 0.5971 MB / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.1004, allocations: 19.89 kB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.643e-05/0.1005, allocations: 50.73 kB / 464.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.1005, allocations: 32.56 kB / 464.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/0.101, allocations: 319 kB / 464.6 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1011, allocations: 12.81 kB / 464.6 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.1012, allocations: 47.77 kB / 464.7 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004198/0.1016, allocations: 294 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1017, allocations: 3.938 kB / 464.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.1017, allocations: 8 kB / 465 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1017, allocations: 4 kB / 465 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.102, allocations: 187.8 kB / 465.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.1036, allocations: 1.276 MB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.1038, allocations: 123.8 kB / 466.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.048e-05/0.1039, allocations: 50.61 kB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.104, allocations: 4 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.104, allocations: 38.55 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.104, allocations: 0 / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000871/0.1049, allocations: 0.5231 MB / 467.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.105, allocations: 107.1 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.1052, allocations: 246.7 kB / 467.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.1052, allocations: 29.64 kB / 467.5 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.1053, allocations: 203.5 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.1054, allocations: 43.45 kB / 467.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.1055, allocations: 37.7 kB / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1056, allocations: 330.8 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.019e-05/0.1057, allocations: 43.97 kB / 468.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.1058, allocations: 134.7 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.1061, allocations: 187.8 kB / 468.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1061, allocations: 4 kB / 468.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004084/0.1065, allocations: 226 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1065, allocations: 11.94 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1065, allocations: 3.938 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/0.1067, allocations: 36.78 kB / 468.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.107, allocations: 59.89 kB / 468.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.107, allocations: 4.344 kB / 468.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1071, allocations: 12 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.1072, allocations: 15.98 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * 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 initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.1073, allocations: 150.6 kB / 469 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.1074, allocations: 23.72 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.1076, allocations: 135.4 kB / 469.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1076, allocations: 7.938 kB / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1076, allocations: 0 / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1077, allocations: 4.094 kB / 469.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/0.108, allocations: 293.5 kB / 469.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.108, allocations: 0 / 469.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.1082, allocations: 27.92 kB / 469.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1082, allocations: 4 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1082, allocations: 7.938 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.1082, allocations: 7.938 kB / 469.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1082, allocations: 0.5469 kB / 469.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.1086, allocations: 367.2 kB / 469.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.1087, allocations: 96.94 kB / 470 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.1087, allocations: 4 kB / 470 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1089, allocations: 3.938 kB / 470 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.51e-05/0.1089, allocations: 11.98 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.1089, allocations: 4 kB / 470 MB, free: 10.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.1091, allocations: 170 kB / 470.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1091, allocations: 4 kB / 470.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003574/0.1094, allocations: 48 kB / 470.2 MB, free: 10.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0005912/0.11, allocations: 0.9004 MB / 471.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003164/0.1103, allocations: 216.8 kB / 471.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1104, allocations: 0 / 471.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.228e-05/0.1105, allocations: 52.36 kB / 471.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005172/0.111, allocations: 66.56 kB / 471.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.1138, allocations: 2.64 MB / 474.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1141, allocations: 0.7675 MB / 474.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.1142, allocations: 22.3 kB / 474.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1143, allocations: 95.39 kB / 474.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1143, allocations: 0 / 474.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.1375, allocations: 4.768 MB / 479.7 MB, free: 460 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.081/9.218, allocations: 3.938 kB / 479.7 MB, free: 456 kB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000270051 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)