Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001107/0.001107, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001112/0.001112, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.331/1.331, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1797/0.1797, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 68.34 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1009, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005367/0.1064, allocations: 3.906 MB / 460.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.1077, allocations: 0.8728 MB / 461.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.1079, allocations: 11.94 kB / 461.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.1081, allocations: 43.58 kB / 461.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00045/0.1086, allocations: 163.1 kB / 462 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1088, allocations: 83.84 kB / 462 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.1092, allocations: 378.7 kB / 462.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1094, allocations: 84.53 kB / 462.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.1096, allocations: 163.3 kB / 462.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.1099, allocations: 159.4 kB / 462.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.1099, allocations: 16 kB / 462.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.479e-05/0.11, allocations: 16 kB / 462.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.1101, allocations: 87.72 kB / 462.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.1102, allocations: 131.3 kB / 463.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.1105, allocations: 247.1 kB / 463.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1105, allocations: 4 kB / 463.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1105, allocations: 3.938 kB / 463.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.1106, allocations: 0 / 463.3 MB, free: 1.578 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008061/0.1114, allocations: 0.5506 MB / 463.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1114, allocations: 15.83 kB / 463.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.1115, allocations: 58.73 kB / 463.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.218e-05/0.1116, allocations: 32.5 kB / 464 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000406/0.112, allocations: 307.8 kB / 464.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.112, allocations: 20.44 kB / 464.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.112, allocations: 16 kB / 464.3 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.1124, allocations: 270 kB / 464.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1124, allocations: 0 / 464.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.1125, allocations: 15.98 kB / 464.6 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1125, allocations: 8 kB / 464.6 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.1127, allocations: 159.8 kB / 464.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.114, allocations: 1.187 MB / 465.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.1142, allocations: 69.17 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.561e-05/0.1142, allocations: 37.75 kB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.1143, allocations: 0 / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.1143, allocations: 38.56 kB / 466.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.1143, allocations: 0 / 466.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007302/0.115, allocations: 400.8 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1151, allocations: 81.05 kB / 466.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.1154, allocations: 254.5 kB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1154, allocations: 29.7 kB / 466.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1155, allocations: 191.6 kB / 467 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.1156, allocations: 31.62 kB / 467 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.1156, allocations: 41.61 kB / 467.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1158, allocations: 330.8 kB / 467.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.427e-05/0.1158, allocations: 23.98 kB / 467.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.116, allocations: 123.1 kB / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.1162, allocations: 176.7 kB / 467.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1162, allocations: 4 kB / 467.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000258/0.1164, allocations: 181.4 kB / 467.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1165, allocations: 11.88 kB / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1165, allocations: 4 kB / 467.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1165, allocations: 4 kB / 467.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.1167, allocations: 35.98 kB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1167, allocations: 11.94 kB / 468 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.1168, allocations: 8 kB / 468 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1168, allocations: 8 kB / 468 MB, free: 12.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (22): * Single equations (assignments): 22 * 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.0001241/0.1169, allocations: 153.9 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.117, allocations: 23.66 kB / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.1172, allocations: 95.38 kB / 468.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.1172, allocations: 0 / 468.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1172, allocations: 448 / 468.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1172, allocations: 7.938 kB / 468.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004239/0.1176, allocations: 419.2 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1176, allocations: 4.031 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.552e-05/0.1177, allocations: 27.92 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1177, allocations: 0 / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1178, allocations: 4 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1178, allocations: 4 kB / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1178, allocations: 0 / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.118, allocations: 232.9 kB / 468.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.495e-05/0.1181, allocations: 96.81 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.1181, allocations: 4 kB / 469 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.1182, allocations: 4 kB / 469 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.145e-05/0.1182, allocations: 7.984 kB / 469 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.1183, allocations: 0 / 469 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.1184, allocations: 174 kB / 469.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1184, allocations: 0 / 469.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1187, allocations: 40 kB / 469.2 MB, free: 11.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0005032/0.1192, allocations: 0.7608 MB / 470 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001836/0.1194, allocations: 96.47 kB / 470.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1194, allocations: 0 / 470.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.162e-05/0.1195, allocations: 27.98 kB / 470.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.12, allocations: 57.08 kB / 470.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.1225, allocations: 2.298 MB / 472.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1229, allocations: 0.7636 MB / 473.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.123, allocations: 26.28 kB / 473.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.714e-05/0.1231, allocations: 71.41 kB / 473.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1231, allocations: 0 / 473.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.145, allocations: 4.079 MB / 477.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.607, allocations: 8.047 kB / 477.4 MB, free: 2.723 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)