Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.ImpedanceTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.001376/0.001376, allocations: 111.9 kB / 17.06 MB, free: 5.988 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.001258/0.001258, allocations: 195.9 kB / 18 MB, free: 5.074 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.448/1.448, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1991/0.1991, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3227, allocations: 58.06 MB / 0.5036 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004115/0.3269, allocations: 3.421 MB / 0.507 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.3286, allocations: 1.447 MB / 0.5084 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.3287, allocations: 9.094 kB / 0.5084 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007475/0.3294, allocations: 244.3 kB / 0.5086 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005883/0.33, allocations: 282.9 kB / 0.5089 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.3304, allocations: 117.8 kB / 0.509 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003867/0.3308, allocations: 346.4 kB / 0.5093 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.331, allocations: 138 kB / 0.5095 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/0.3313, allocations: 151.7 kB / 0.5096 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.3315, allocations: 149.9 kB / 0.5097 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.3315, allocations: 18.28 kB / 0.5098 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004875/0.332, allocations: 305.3 kB / 0.51 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3322, allocations: 98.03 kB / 0.5101 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.3323, allocations: 108.3 kB / 0.5102 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.3328, allocations: 347.8 kB / 0.5106 GB, free: 3.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3328, allocations: 1.031 kB / 0.5106 GB, free: 3.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3328, allocations: 0.8438 kB / 0.5106 GB, free: 3.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3328, allocations: 4 kB / 0.5106 GB, free: 3.133 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.0006338/0.3335, allocations: 0.5101 MB / 0.5111 GB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.3335, allocations: 13.45 kB / 0.5111 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.039e-05/0.3336, allocations: 51.8 kB / 0.5111 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008607/0.3344, allocations: 94.2 kB / 0.5112 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.3347, allocations: 275.4 kB / 0.5115 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3347, allocations: 10.91 kB / 0.5115 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.3348, allocations: 19.75 kB / 0.5115 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.3352, allocations: 312.7 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3353, allocations: 1.594 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.3353, allocations: 14.03 kB / 0.5118 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.3353, allocations: 14.91 kB / 0.5118 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000434/0.3358, allocations: 287.6 kB / 0.5121 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.3372, allocations: 1.296 MB / 0.5134 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005375/0.3377, allocations: 211.4 kB / 0.5136 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.514e-05/0.3378, allocations: 61.86 kB / 0.5137 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3379, allocations: 5.875 kB / 0.5137 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.3379, allocations: 32.69 kB / 0.5137 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.505e-06/0.3379, allocations: 0 / 0.5137 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008757/0.3388, allocations: 443.5 kB / 0.5141 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.57e-05/0.3388, allocations: 80.3 kB / 0.5142 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.339, allocations: 190.5 kB / 0.5144 GB, free: 424 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.339, allocations: 30.8 kB / 0.5144 GB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.3391, allocations: 161.6 kB / 0.5146 GB, free: 240 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.3391, allocations: 58.55 kB / 0.5146 GB, free: 192 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.3392, allocations: 41.09 kB / 0.5146 GB, free: 164 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3393, allocations: 336.8 kB / 0.515 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.068e-05/0.3394, allocations: 53.48 kB / 0.515 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.3396, allocations: 141.2 kB / 0.5152 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.3399, allocations: 231.3 kB / 0.5154 GB, free: 15.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3399, allocations: 1.438 kB / 0.5154 GB, free: 15.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000464/0.3404, allocations: 265.5 kB / 0.5156 GB, free: 15.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3404, allocations: 7.672 kB / 0.5156 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3404, allocations: 2.625 kB / 0.5156 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.3406, allocations: 47.2 kB / 0.5157 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.3408, allocations: 45.55 kB / 0.5157 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.3421, allocations: 1.443 MB / 0.5171 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.3423, allocations: 9.656 kB / 0.5171 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.3423, allocations: 10.28 kB / 0.5172 GB, free: 13.9 MB / 398.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 (24): * Single equations (assignments): 23 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001665/0.3425, allocations: 157.1 kB / 0.5173 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.486e-05/0.3425, allocations: 24.03 kB / 0.5173 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003975/0.3429, allocations: 187.5 kB / 0.5175 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3429, allocations: 2.219 kB / 0.5175 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.3429, allocations: 1.094 kB / 0.5175 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.343, allocations: 2.531 kB / 0.5175 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009426/0.3439, allocations: 0.567 MB / 0.5181 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3439, allocations: 1.094 kB / 0.5181 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.23e-05/0.344, allocations: 19.38 kB / 0.5181 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001585/0.3442, allocations: 36.03 kB / 0.5181 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.3442, allocations: 6.219 kB / 0.5181 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.3454, allocations: 1.428 MB / 0.5195 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3455, allocations: 1.469 kB / 0.5195 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.3459, allocations: 293.3 kB / 0.5198 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.558e-05/0.346, allocations: 99.94 kB / 0.5199 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.346, allocations: 3.281 kB / 0.5199 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.3462, allocations: 6.859 kB / 0.5199 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.3462, allocations: 18 kB / 0.5199 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.3462, allocations: 5.266 kB / 0.5199 GB, free: 11.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.3464, allocations: 146.7 kB / 0.5201 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3464, allocations: 0 / 0.5201 GB, free: 11.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004155/0.3468, allocations: 48.72 kB / 0.5201 GB, free: 11.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008277/0.3477, allocations: 0.8416 MB / 0.5209 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004997/0.3482, allocations: 266.1 kB / 0.5212 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3482, allocations: 0 / 0.5212 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.3484, allocations: 179 kB / 0.5214 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.3488, allocations: 36.64 kB / 0.5214 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.3518, allocations: 2.388 MB / 0.5237 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.3522, allocations: 0.7596 MB / 0.5245 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.3523, allocations: 40.48 kB / 0.5245 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.3524, allocations: 60.02 kB / 0.5246 GB, free: 7.625 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3524, allocations: 0 / 0.5246 GB, free: 7.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/0.3823, allocations: 3.888 MB / 0.5284 GB, free: 7.039 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.52, allocations: 5.188 kB / 0.5284 GB, free: 7.035 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest_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_ImpedanceTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1)