Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001286/0.001286, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001218/0.001219, allocations: 189.4 kB / 18 MB, free: 5.09 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1825/0.1825, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.362, allocations: 58.05 MB / 0.5036 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.005544/0.3676, allocations: 4.584 MB / 0.5081 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.3698, allocations: 1.463 MB / 0.5095 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002146/0.3701, allocations: 17.94 kB / 0.5095 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.3711, allocations: 380.9 kB / 0.5099 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006506/0.3718, allocations: 228.5 kB / 0.5101 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008709/0.3727, allocations: 257.8 kB / 0.5104 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007515/0.3734, allocations: 0.5617 MB / 0.5109 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006336/0.3741, allocations: 334.3 kB / 0.5112 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000432/0.3745, allocations: 252.2 kB / 0.5115 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006293/0.3752, allocations: 318.8 kB / 0.5118 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/0.3753, allocations: 34.81 kB / 0.5118 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003799/0.3756, allocations: 133.6 kB / 0.5119 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002867/0.3759, allocations: 234.3 kB / 0.5122 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000266/0.3762, allocations: 248.5 kB / 0.5124 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008403/0.3771, allocations: 0.5945 MB / 0.513 GB, free: 1.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3771, allocations: 0 / 0.513 GB, free: 1.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3771, allocations: 1.094 kB / 0.513 GB, free: 1.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3771, allocations: 0 / 0.513 GB, free: 1.785 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001508/0.3786, allocations: 0.7851 MB / 0.5137 GB, free: 1.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.3787, allocations: 14.81 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.3788, allocations: 86.05 kB / 0.5138 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006409/0.3795, allocations: 99.94 kB / 0.5139 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.3801, allocations: 420 kB / 0.5143 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.3801, allocations: 29.34 kB / 0.5144 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.3803, allocations: 60.52 kB / 0.5144 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009104/0.3812, allocations: 0.6481 MB / 0.5151 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.3812, allocations: 5.625 kB / 0.5151 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.3813, allocations: 16.88 kB / 0.5151 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.3814, allocations: 28.27 kB / 0.5151 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.3822, allocations: 489 kB / 0.5156 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00415/0.3863, allocations: 3.017 MB / 0.5185 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.3867, allocations: 177.2 kB / 0.5187 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.3869, allocations: 106.8 kB / 0.5188 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.3869, allocations: 7.594 kB / 0.5188 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.387, allocations: 40.5 kB / 0.5188 GB, free: 13.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.294e-06/0.387, allocations: 0 / 0.5188 GB, free: 13.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.001697/0.3887, allocations: 0.8518 MB / 0.5197 GB, free: 13.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.3888, allocations: 81.64 kB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/0.3892, allocations: 348 kB / 0.5201 GB, free: 12.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.3893, allocations: 34.83 kB / 0.5201 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.3895, allocations: 309.3 kB / 0.5204 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.004e-05/0.3896, allocations: 80.16 kB / 0.5205 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.3897, allocations: 87.94 kB / 0.5206 GB, free: 12.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.3899, allocations: 347.9 kB / 0.5209 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.3902, allocations: 122.9 kB / 0.521 GB, free: 12.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.3906, allocations: 334.5 kB / 0.5213 GB, free: 11.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006868/0.3913, allocations: 0.4981 MB / 0.5218 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.3913, allocations: 6.125 kB / 0.5218 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001167/0.3925, allocations: 0.5554 MB / 0.5224 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3925, allocations: 7.969 kB / 0.5224 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005197/0.3931, allocations: 274.1 kB / 0.5226 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/0.3934, allocations: 87.75 kB / 0.5227 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.3938, allocations: 92.34 kB / 0.5228 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.3959, allocations: 1.728 MB / 0.5245 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.3962, allocations: 24.2 kB / 0.5245 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.3963, allocations: 24.05 kB / 0.5245 GB, free: 9.418 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003328/0.3966, allocations: 221.8 kB / 0.5248 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3967, allocations: 31.69 kB / 0.5248 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005412/0.3973, allocations: 294.9 kB / 0.5251 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3973, allocations: 4.828 kB / 0.5251 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.3973, allocations: 0 / 0.5251 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3973, allocations: 2.797 kB / 0.5251 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.3987, allocations: 0.7911 MB / 0.5258 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.3987, allocations: 1.094 kB / 0.5258 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.399, allocations: 54.02 kB / 0.5259 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.399, allocations: 3.062 kB / 0.5259 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.3991, allocations: 7.594 kB / 0.5259 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3991, allocations: 3.297 kB / 0.5259 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.3991, allocations: 5.469 kB / 0.5259 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007085/0.3998, allocations: 476.6 kB / 0.5264 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3999, allocations: 108.3 kB / 0.5265 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.4, allocations: 12.23 kB / 0.5265 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.4002, allocations: 9.922 kB / 0.5265 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.4002, allocations: 16.86 kB / 0.5265 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.4002, allocations: 11.27 kB / 0.5265 GB, free: 8.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002939/0.4005, allocations: 234.7 kB / 0.5267 GB, free: 8.066 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4006, allocations: 1.062 kB / 0.5267 GB, free: 8.066 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005675/0.4011, allocations: 96.61 kB / 0.5268 GB, free: 8.055 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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.001025/0.4022, allocations: 1.013 MB / 0.5278 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009566/0.4031, allocations: 449 kB / 0.5283 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4032, allocations: 0 / 0.5283 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.4034, allocations: 115 kB / 0.5284 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.4039, allocations: 76.83 kB / 0.5284 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/0.4099, allocations: 3.993 MB / 0.5323 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005777/0.4105, allocations: 0.87 MB / 0.5332 GB, free: 3.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.4108, allocations: 110.9 kB / 0.5333 GB, free: 3.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.411, allocations: 146.4 kB / 0.5334 GB, free: 3.402 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.411, allocations: 4 kB / 0.5334 GB, free: 3.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03671/0.4477, allocations: 7.412 MB / 0.5407 GB, free: 188 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.94, allocations: 9.453 kB / 0.5407 GB, free: 180 kB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)