Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001088/0.001088, allocations: 109.9 kB / 17.06 MB, free: 6.02 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.001208/0.001208, allocations: 192 kB / 18 MB, free: 5.102 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.32/1.32, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1824/0.1824, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.88 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3214, allocations: 58.05 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004415/0.3258, allocations: 3.455 MB / 0.507 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3278, allocations: 1.504 MB / 0.5084 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.3279, allocations: 9.812 kB / 0.5085 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.3287, allocations: 253.2 kB / 0.5087 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006109/0.3294, allocations: 284.3 kB / 0.509 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.3297, allocations: 125.3 kB / 0.5091 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.3301, allocations: 346.1 kB / 0.5094 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002922/0.3304, allocations: 135 kB / 0.5095 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.3307, allocations: 151.9 kB / 0.5097 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.3309, allocations: 162.9 kB / 0.5098 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.331, allocations: 14.91 kB / 0.5099 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004962/0.3315, allocations: 332.5 kB / 0.5102 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3316, allocations: 102.9 kB / 0.5103 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.3317, allocations: 107.7 kB / 0.5104 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.3323, allocations: 362.5 kB / 0.5107 GB, free: 2.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3323, allocations: 0 / 0.5107 GB, free: 2.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3323, allocations: 0 / 0.5107 GB, free: 2.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3323, allocations: 0 / 0.5107 GB, free: 2.965 MB / 382.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.000639/0.3329, allocations: 0.5135 MB / 0.5112 GB, free: 2.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.333, allocations: 17.89 kB / 0.5112 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.189e-05/0.333, allocations: 57.94 kB / 0.5113 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009405/0.334, allocations: 93.95 kB / 0.5114 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.3343, allocations: 263 kB / 0.5116 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.3343, allocations: 16.14 kB / 0.5117 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.3344, allocations: 16 kB / 0.5117 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.3349, allocations: 326.4 kB / 0.512 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3349, allocations: 1.5 kB / 0.512 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.335, allocations: 9.875 kB / 0.512 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.335, allocations: 17.19 kB / 0.512 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.3355, allocations: 300.2 kB / 0.5123 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.3371, allocations: 1.266 MB / 0.5135 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.3375, allocations: 230.9 kB / 0.5138 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.3377, allocations: 100.9 kB / 0.5138 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.3377, allocations: 3.109 kB / 0.5139 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.3377, allocations: 37.33 kB / 0.5139 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.3377, allocations: 0 / 0.5139 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007993/0.3385, allocations: 449.1 kB / 0.5143 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.3386, allocations: 80.06 kB / 0.5144 GB, free: 464 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.3388, allocations: 200.8 kB / 0.5146 GB, free: 328 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.3388, allocations: 31.2 kB / 0.5146 GB, free: 292 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.791e-05/0.3389, allocations: 160.8 kB / 0.5148 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.3389, allocations: 60.41 kB / 0.5148 GB, free: 96 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.891e-05/0.339, allocations: 56.58 kB / 0.5149 GB, free: 56 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3391, allocations: 329.7 kB / 0.5152 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.3393, allocations: 84.59 kB / 0.5153 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.3395, allocations: 155.7 kB / 0.5154 GB, free: 15.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.3398, allocations: 266.4 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3399, allocations: 1.281 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000454/0.3403, allocations: 297.9 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3403, allocations: 5.906 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3404, allocations: 7.156 kB / 0.516 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3404, allocations: 8.281 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.3406, allocations: 51.95 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3407, allocations: 4.422 kB / 0.516 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.3408, allocations: 18.34 kB / 0.5161 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.3409, allocations: 13.62 kB / 0.5161 GB, free: 15.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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.0001556/0.341, allocations: 151.2 kB / 0.5162 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.3411, allocations: 24.06 kB / 0.5162 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.3415, allocations: 235.2 kB / 0.5165 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3415, allocations: 6.469 kB / 0.5165 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3415, allocations: 1.219 kB / 0.5165 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3415, allocations: 1.578 kB / 0.5165 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.3431, allocations: 0.9458 MB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.3432, allocations: 7.906 kB / 0.5174 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.3433, allocations: 37.08 kB / 0.5174 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/0.3433, allocations: 5.156 kB / 0.5174 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.3434, allocations: 14.39 kB / 0.5175 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.3434, allocations: 14.34 kB / 0.5175 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3434, allocations: 4.344 kB / 0.5175 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000461/0.3439, allocations: 412.5 kB / 0.5179 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.649e-05/0.344, allocations: 100.5 kB / 0.518 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.344, allocations: 16.67 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.3442, allocations: 12.45 kB / 0.518 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.3442, allocations: 25.42 kB / 0.518 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.3443, allocations: 13.08 kB / 0.518 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3444, allocations: 149.7 kB / 0.5182 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3444, allocations: 0 / 0.5182 GB, free: 13.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003994/0.3448, allocations: 50.69 kB / 0.5182 GB, free: 13.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * 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.0006798/0.3455, allocations: 0.9415 MB / 0.5191 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003783/0.3459, allocations: 229.1 kB / 0.5194 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3459, allocations: 0 / 0.5194 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.3461, allocations: 104 kB / 0.5195 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.3466, allocations: 47.31 kB / 0.5195 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.3498, allocations: 2.689 MB / 0.5221 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.3503, allocations: 0.7589 MB / 0.5229 GB, free: 9.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.3505, allocations: 53.39 kB / 0.5229 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3506, allocations: 65.72 kB / 0.523 GB, free: 9.941 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3506, allocations: 0 / 0.523 GB, free: 9.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3735, allocations: 4.126 MB / 0.527 GB, free: 9.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.976, allocations: 18.69 kB / 0.527 GB, free: 9.348 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)