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.001149/0.001154, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001227/0.001227, allocations: 191 kB / 18 MB, free: 5.098 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1857/0.1857, allocations: 38.03 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 59.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3055, allocations: 58.05 MB / 0.5036 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.004345/0.3099, allocations: 3.43 MB / 0.5069 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.3116, allocations: 1.445 MB / 0.5084 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.3118, allocations: 13.62 kB / 0.5084 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000775/0.3125, allocations: 252.8 kB / 0.5086 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006234/0.3132, allocations: 279.8 kB / 0.5089 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.3135, allocations: 113.8 kB / 0.509 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000467/0.314, allocations: 347.9 kB / 0.5093 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.3143, allocations: 133.5 kB / 0.5094 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.3146, allocations: 154.4 kB / 0.5096 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.3148, allocations: 147.1 kB / 0.5097 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.3148, allocations: 14.66 kB / 0.5097 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005329/0.3154, allocations: 307.7 kB / 0.51 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.3155, allocations: 94.42 kB / 0.5101 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.3157, allocations: 112.9 kB / 0.5102 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000554/0.3162, allocations: 345.8 kB / 0.5106 GB, free: 3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3162, allocations: 4 kB / 0.5106 GB, free: 2.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3162, allocations: 0 / 0.5106 GB, free: 2.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.3163, allocations: 0 / 0.5106 GB, free: 2.996 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.0006784/0.3169, allocations: 0.5154 MB / 0.5111 GB, free: 2.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.317, allocations: 13.33 kB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.899e-05/0.3171, allocations: 54.91 kB / 0.5111 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009145/0.318, allocations: 91.69 kB / 0.5112 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.3183, allocations: 280.3 kB / 0.5115 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.3183, allocations: 10.91 kB / 0.5115 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.3184, allocations: 20.16 kB / 0.5115 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.3189, allocations: 312.9 kB / 0.5118 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3189, allocations: 9.125 kB / 0.5118 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.3189, allocations: 5.938 kB / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/0.319, allocations: 15.36 kB / 0.5119 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.3194, allocations: 292 kB / 0.5121 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.321, allocations: 1.291 MB / 0.5134 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.3216, allocations: 211.3 kB / 0.5136 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.231e-05/0.3217, allocations: 61.5 kB / 0.5137 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.3218, allocations: 3.188 kB / 0.5137 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.3218, allocations: 36.22 kB / 0.5137 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.3218, allocations: 0 / 0.5137 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008919/0.3227, allocations: 442.8 kB / 0.5141 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3227, allocations: 79.61 kB / 0.5142 GB, free: 408 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.3229, allocations: 191 kB / 0.5144 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.3229, allocations: 29.7 kB / 0.5144 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.323, allocations: 166.9 kB / 0.5146 GB, free: 92 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.323, allocations: 53.28 kB / 0.5146 GB, free: 48 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.3231, allocations: 50.08 kB / 0.5147 GB, free: 12 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3232, allocations: 333.6 kB / 0.515 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.305e-05/0.3233, allocations: 55.44 kB / 0.515 GB, free: 15.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.3235, allocations: 146.9 kB / 0.5152 GB, free: 15.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.3238, allocations: 223.9 kB / 0.5154 GB, free: 15.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.3238, allocations: 4 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004599/0.3242, allocations: 261.2 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3243, allocations: 8.281 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3243, allocations: 3.406 kB / 0.5156 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.3245, allocations: 47.03 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.3247, allocations: 45.7 kB / 0.5157 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.3259, allocations: 1.443 MB / 0.5171 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.3261, allocations: 10.48 kB / 0.5172 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.3261, allocations: 9.766 kB / 0.5172 GB, free: 13.76 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.0001708/0.3263, allocations: 160.4 kB / 0.5173 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.3263, allocations: 20.03 kB / 0.5173 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004044/0.3267, allocations: 187.8 kB / 0.5175 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3268, allocations: 3.391 kB / 0.5175 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3268, allocations: 1.219 kB / 0.5175 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3268, allocations: 0.75 kB / 0.5175 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009582/0.3277, allocations: 0.5673 MB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3278, allocations: 1.719 kB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.3279, allocations: 23.8 kB / 0.5181 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.328, allocations: 31.31 kB / 0.5181 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.3281, allocations: 6.562 kB / 0.5181 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.3292, allocations: 1.424 MB / 0.5195 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3292, allocations: 1.438 kB / 0.5195 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004831/0.3297, allocations: 303.1 kB / 0.5198 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.3298, allocations: 92.33 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.3298, allocations: 3.922 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3299, allocations: 6.797 kB / 0.5199 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.33, allocations: 17.91 kB / 0.5199 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.33, allocations: 8.625 kB / 0.5199 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.3302, allocations: 143.3 kB / 0.5201 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3302, allocations: 0 / 0.5201 GB, free: 11.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004374/0.3306, allocations: 52.66 kB / 0.5201 GB, free: 11.18 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.000709/0.3313, allocations: 0.8378 MB / 0.5209 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.3318, allocations: 266 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3319, allocations: 1.844 kB / 0.5212 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002549/0.3321, allocations: 178.5 kB / 0.5214 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.3325, allocations: 43.8 kB / 0.5214 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.3354, allocations: 2.386 MB / 0.5237 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3358, allocations: 0.761 MB / 0.5245 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.3359, allocations: 34.92 kB / 0.5245 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.225e-05/0.336, allocations: 59.78 kB / 0.5246 GB, free: 7.48 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.336, allocations: 0 / 0.5246 GB, free: 7.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.3598, allocations: 3.893 MB / 0.5284 GB, free: 6.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.517/9.877, allocations: 2.031 kB / 0.5284 GB, free: 6.887 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)