Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001615/0.001615, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001753/0.001753, allocations: 200 kB / 18.01 MB, free: 5.047 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.393/1.393, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1763/0.1763, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 68.12 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3126, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004356/0.317, allocations: 4.06 MB / 0.5076 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3182, allocations: 0.9241 MB / 0.5085 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3184, allocations: 11.5 kB / 0.5085 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.3186, allocations: 46.45 kB / 0.5085 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004359/0.319, allocations: 180.1 kB / 0.5087 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.3192, allocations: 88.67 kB / 0.5088 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.3196, allocations: 400.4 kB / 0.5092 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.3199, allocations: 118.3 kB / 0.5093 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.3201, allocations: 176.4 kB / 0.5095 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.3204, allocations: 185.5 kB / 0.5096 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.318e-05/0.3205, allocations: 20.19 kB / 0.5097 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.316e-05/0.3205, allocations: 19 kB / 0.5097 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.3206, allocations: 91.23 kB / 0.5098 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.3208, allocations: 136.8 kB / 0.5099 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.3211, allocations: 301.6 kB / 0.5102 GB, free: 3.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3211, allocations: 0 / 0.5102 GB, free: 3.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3211, allocations: 4 kB / 0.5102 GB, free: 3.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.3212, allocations: 0 / 0.5102 GB, free: 3.227 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007853/0.3219, allocations: 0.5988 MB / 0.5108 GB, free: 2.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.322, allocations: 12.7 kB / 0.5108 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.591e-05/0.322, allocations: 55.75 kB / 0.5108 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.3221, allocations: 36.77 kB / 0.5109 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003937/0.3225, allocations: 343.1 kB / 0.5112 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.3225, allocations: 20.22 kB / 0.5112 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.63e-05/0.3226, allocations: 22.38 kB / 0.5112 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.3229, allocations: 286.8 kB / 0.5115 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.323, allocations: 1.062 kB / 0.5115 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.323, allocations: 14.97 kB / 0.5115 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.323, allocations: 5.625 kB / 0.5115 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002801/0.3233, allocations: 181.5 kB / 0.5117 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.3244, allocations: 1.231 MB / 0.5129 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.3247, allocations: 113.6 kB / 0.513 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.843e-05/0.3247, allocations: 45.28 kB / 0.5131 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3248, allocations: 1.75 kB / 0.5131 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.3248, allocations: 37.5 kB / 0.5131 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3248, allocations: 0 / 0.5131 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006889/0.3255, allocations: 0.4889 MB / 0.5136 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.3255, allocations: 78.94 kB / 0.5136 GB, free: 456 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.3257, allocations: 253.1 kB / 0.5139 GB, free: 304 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.856e-06/0.3257, allocations: 25.7 kB / 0.5139 GB, free: 272 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.217e-05/0.3258, allocations: 203.5 kB / 0.5141 GB, free: 96 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.3259, allocations: 44.31 kB / 0.5142 GB, free: 60 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.3259, allocations: 49.17 kB / 0.5142 GB, free: 24 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3261, allocations: 335.6 kB / 0.5145 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.321e-05/0.3262, allocations: 36.81 kB / 0.5146 GB, free: 15.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.3263, allocations: 128 kB / 0.5147 GB, free: 15.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.3266, allocations: 193.8 kB / 0.5149 GB, free: 15.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3266, allocations: 1.188 kB / 0.5149 GB, free: 15.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000308/0.3269, allocations: 206.5 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3269, allocations: 7.281 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3269, allocations: 3.188 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.3269, allocations: 9.188 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.3271, allocations: 48.12 kB / 0.5151 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.3271, allocations: 9.125 kB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.3272, allocations: 12.31 kB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.3273, allocations: 13.69 kB / 0.5152 GB, free: 15.24 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): 24 * 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.0001412/0.3274, allocations: 149.1 kB / 0.5153 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.3275, allocations: 23.95 kB / 0.5153 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.3277, allocations: 133.4 kB / 0.5154 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3277, allocations: 9.969 kB / 0.5155 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.3277, allocations: 2.016 kB / 0.5155 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3278, allocations: 3.938 kB / 0.5155 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005677/0.3283, allocations: 470.8 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3283, allocations: 0 / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.3285, allocations: 33.38 kB / 0.5159 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3285, allocations: 1.469 kB / 0.5159 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3285, allocations: 6.141 kB / 0.516 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3285, allocations: 1.5 kB / 0.516 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3285, allocations: 5.438 kB / 0.516 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.3289, allocations: 274.9 kB / 0.5162 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.301e-05/0.3289, allocations: 98.34 kB / 0.5163 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.329, allocations: 5.984 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3291, allocations: 8.641 kB / 0.5163 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-05/0.3291, allocations: 15.45 kB / 0.5163 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.3291, allocations: 4.531 kB / 0.5163 GB, free: 14.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001602/0.3293, allocations: 171.2 kB / 0.5165 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3293, allocations: 0 / 0.5165 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.3296, allocations: 45.22 kB / 0.5166 GB, free: 14.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006204/0.3302, allocations: 0.8145 MB / 0.5173 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.3305, allocations: 110.9 kB / 0.5175 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3305, allocations: 2.344 kB / 0.5175 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.374e-05/0.3306, allocations: 45.97 kB / 0.5175 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.331, allocations: 55.86 kB / 0.5176 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.3339, allocations: 2.45 MB / 0.5199 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.3344, allocations: 0.77 MB / 0.5207 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.3345, allocations: 34.02 kB / 0.5207 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.3346, allocations: 84.8 kB / 0.5208 GB, free: 10.7 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3346, allocations: 0 / 0.5208 GB, free: 10.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.3615, allocations: 4.601 MB / 0.5253 GB, free: 10.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.97, allocations: 5.312 kB / 0.5253 GB, free: 10.09 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)