Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001486/0.001486, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001524/0.001524, 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.365/1.365, 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.1756/0.1756, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 67.89 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3307, allocations: 58.06 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005315/0.3361, allocations: 4.077 MB / 0.5076 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3375, allocations: 0.8541 MB / 0.5084 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.3377, allocations: 11.19 kB / 0.5084 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.3379, allocations: 48.09 kB / 0.5085 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004942/0.3385, allocations: 163.5 kB / 0.5086 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.3387, allocations: 92.38 kB / 0.5087 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.3392, allocations: 399.1 kB / 0.5091 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.3395, allocations: 114.4 kB / 0.5092 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.3398, allocations: 170.4 kB / 0.5094 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.3401, allocations: 182 kB / 0.5096 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.934e-05/0.3402, allocations: 20.41 kB / 0.5096 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.012e-05/0.3403, allocations: 21.31 kB / 0.5096 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3404, allocations: 87.91 kB / 0.5097 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.3405, allocations: 152 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.3409, allocations: 285 kB / 0.5101 GB, free: 3.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3409, allocations: 1.25 kB / 0.5101 GB, free: 3.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.341, allocations: 0 / 0.5101 GB, free: 3.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.341, allocations: 0 / 0.5101 GB, free: 3.289 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.0009506/0.3419, allocations: 0.6058 MB / 0.5107 GB, free: 2.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.342, allocations: 18.14 kB / 0.5107 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.137e-05/0.342, allocations: 55.89 kB / 0.5108 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.938e-05/0.3421, allocations: 35.98 kB / 0.5108 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000496/0.3426, allocations: 342.6 kB / 0.5111 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.3426, allocations: 13.69 kB / 0.5111 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3428, allocations: 36.48 kB / 0.5112 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004085/0.3432, allocations: 292.8 kB / 0.5115 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3432, allocations: 5.219 kB / 0.5115 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.3433, allocations: 6.625 kB / 0.5115 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.3433, allocations: 6.031 kB / 0.5115 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.3436, allocations: 184 kB / 0.5116 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3449, allocations: 1.285 MB / 0.5129 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.3451, allocations: 120.2 kB / 0.513 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.782e-05/0.3452, allocations: 49.09 kB / 0.5131 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3452, allocations: 1.438 kB / 0.5131 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.3453, allocations: 36.58 kB / 0.5131 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.554e-06/0.3453, allocations: 1.078 kB / 0.5131 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000879/0.3462, allocations: 0.5399 MB / 0.5136 GB, free: 488 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.3462, allocations: 108.6 kB / 0.5137 GB, free: 356 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.3465, allocations: 248.3 kB / 0.514 GB, free: 204 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.3465, allocations: 27.05 kB / 0.514 GB, free: 172 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3466, allocations: 198.6 kB / 0.5142 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.536e-05/0.3467, allocations: 41.39 kB / 0.5142 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.143e-05/0.3467, allocations: 44.08 kB / 0.5143 GB, free: 15.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3469, allocations: 339.4 kB / 0.5146 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.587e-05/0.347, allocations: 41.78 kB / 0.5146 GB, free: 15.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.3472, allocations: 125.1 kB / 0.5147 GB, free: 15.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/0.3475, allocations: 195 kB / 0.5149 GB, free: 15.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3475, allocations: 1.031 kB / 0.5149 GB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004462/0.3479, allocations: 229.6 kB / 0.5152 GB, free: 15.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.348, allocations: 11.3 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.348, allocations: 3.031 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001267/0.3481, allocations: 34.61 kB / 0.5152 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.3485, allocations: 64.44 kB / 0.5153 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.3485, allocations: 9.797 kB / 0.5153 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.3486, allocations: 7.438 kB / 0.5153 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.3486, allocations: 13.64 kB / 0.5153 GB, free: 15.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001643/0.3488, allocations: 150.9 kB / 0.5154 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.46e-05/0.3489, allocations: 26.03 kB / 0.5155 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.3492, allocations: 142.4 kB / 0.5156 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3492, allocations: 7.609 kB / 0.5156 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3492, allocations: 1.125 kB / 0.5156 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3492, allocations: 1.578 kB / 0.5156 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.3497, allocations: 284.4 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3497, allocations: 0.75 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.3499, allocations: 30.64 kB / 0.5159 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3499, allocations: 1.922 kB / 0.5159 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3499, allocations: 11.09 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3499, allocations: 1.344 kB / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3499, allocations: 0 / 0.5159 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.3504, allocations: 360.8 kB / 0.5163 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.3504, allocations: 100.2 kB / 0.5164 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.3505, allocations: 11.86 kB / 0.5164 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.3506, allocations: 3.938 kB / 0.5164 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.3507, allocations: 12.14 kB / 0.5164 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.3507, allocations: 4.875 kB / 0.5164 GB, free: 14.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.3509, allocations: 175.1 kB / 0.5166 GB, free: 14.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3509, allocations: 0 / 0.5166 GB, free: 14.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.3513, allocations: 46.25 kB / 0.5166 GB, free: 14.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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): 13 * 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.0007549/0.352, allocations: 0.9018 MB / 0.5175 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003884/0.3524, allocations: 205.7 kB / 0.5177 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3524, allocations: 0 / 0.5177 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.947e-05/0.3525, allocations: 49.44 kB / 0.5177 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/0.3531, allocations: 65.8 kB / 0.5178 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.3568, allocations: 2.632 MB / 0.5204 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.3572, allocations: 0.773 MB / 0.5211 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.3574, allocations: 26.41 kB / 0.5211 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.3575, allocations: 89.59 kB / 0.5212 GB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3575, allocations: 0 / 0.5212 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.389, allocations: 4.859 MB / 0.526 GB, free: 9.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.07, allocations: 9.125 kB / 0.526 GB, free: 9.676 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)