Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001622/0.001622, allocations: 106.6 kB / 16.92 MB, free: 5.707 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.001912/0.001912, allocations: 190.6 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.419/1.419, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1788/0.1788, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 61.25 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0816/0.08297, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005463/0.08846, allocations: 4.193 MB / 461.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.09, allocations: 0.9432 MB / 462.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.09021, allocations: 11.94 kB / 462.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.09042, allocations: 51.5 kB / 462.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.09095, allocations: 198.9 kB / 462.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.09119, allocations: 99.8 kB / 462.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.09172, allocations: 490.3 kB / 462.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.09197, allocations: 147.6 kB / 463.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.09227, allocations: 207.2 kB / 463.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.09271, allocations: 239.1 kB / 463.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.295e-05/0.09279, allocations: 28 kB / 463.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.068e-05/0.09288, allocations: 28 kB / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.09303, allocations: 131.6 kB / 463.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.09324, allocations: 171.1 kB / 463.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.09364, allocations: 370.7 kB / 464.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.09365, allocations: 7.938 kB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09366, allocations: 0 / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.09368, allocations: 0 / 464.2 MB, free: 0.6484 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001357/0.09504, allocations: 0.6946 MB / 464.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.09509, allocations: 15.89 kB / 464.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.234e-05/0.09517, allocations: 58.73 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.09525, allocations: 44.45 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.09586, allocations: 386.8 kB / 465.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.09589, allocations: 16.56 kB / 465.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.09594, allocations: 28 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004948/0.09644, allocations: 360.7 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.09646, allocations: 0 / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.0965, allocations: 12 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.09651, allocations: 11.98 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004038/0.09692, allocations: 261.9 kB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.09858, allocations: 1.446 MB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.09883, allocations: 149 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.09896, allocations: 81.73 kB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.09899, allocations: 4 kB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.09902, allocations: 42.48 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.09903, allocations: 0 / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.00107/0.1001, allocations: 0.672 MB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.1002, allocations: 81.11 kB / 468.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.1004, allocations: 300.6 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1005, allocations: 29.7 kB / 468.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1006, allocations: 227.5 kB / 469.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.383e-05/0.1007, allocations: 51.2 kB / 469.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.1007, allocations: 57.59 kB / 469.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1008, allocations: 338.8 kB / 469.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.101, allocations: 59.95 kB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.1011, allocations: 177.3 kB / 469.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.1014, allocations: 256.6 kB / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1014, allocations: 3.938 kB / 470 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004028/0.1019, allocations: 292.2 kB / 470.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1019, allocations: 10.03 kB / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1019, allocations: 0 / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1019, allocations: 8 kB / 470.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.1022, allocations: 59.91 kB / 470.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.1022, allocations: 11.92 kB / 470.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.1024, allocations: 8 kB / 470.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.1024, allocations: 15.98 kB / 470.4 MB, free: 9.996 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 (29): * Single equations (assignments): 29 * 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.0001451/0.1025, allocations: 166 kB / 470.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.1026, allocations: 31.56 kB / 470.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.103, allocations: 234.5 kB / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.103, allocations: 0 / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.103, allocations: 0 / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.103, allocations: 7.984 kB / 470.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007041/0.1037, allocations: 0.6201 MB / 471.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1037, allocations: 7.969 kB / 471.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.1039, allocations: 35.92 kB / 471.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.104, allocations: 8 kB / 471.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.104, allocations: 4 kB / 471.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.104, allocations: 4 kB / 471.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.104, allocations: 3.984 kB / 471.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004898/0.1045, allocations: 424.6 kB / 472 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.1046, allocations: 116.6 kB / 472.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.1046, allocations: 0 / 472.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1048, allocations: 11.98 kB / 472.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.1048, allocations: 15.98 kB / 472.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1049, allocations: 7.938 kB / 472.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001899/0.1051, allocations: 211.1 kB / 472.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1051, allocations: 0 / 472.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.1054, allocations: 56 kB / 472.4 MB, free: 7.941 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0006877/0.1061, allocations: 0.9549 MB / 473.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00033/0.1064, allocations: 203.9 kB / 473.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1065, allocations: 0 / 473.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.1066, allocations: 94.33 kB / 473.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.1071, allocations: 80.16 kB / 473.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.1102, allocations: 2.89 MB / 476.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.1106, allocations: 0.8063 MB / 477.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001902/0.1108, allocations: 50.94 kB / 477.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.111, allocations: 107.4 kB / 477.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.111, allocations: 4 kB / 477.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.134, allocations: 5.895 MB / 483.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.705/7.839, allocations: 15.36 kB / 483.5 MB, free: 12.7 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)