Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00123/0.00123, allocations: 179.6 kB / 8.349 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.608/1.608, allocations: 194.4 MB / 203.1 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00166/0.00166, allocations: 113.5 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1679/0.1679, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.012e-05, allocations: 4 kB / 390.5 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3406, allocations: 53.23 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.4639, allocations: 88.42 MB / 0.5196 GB, free: 9.117 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.4642, allocations: 87.94 kB / 0.5197 GB, free: 9.031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01768/0.4819, allocations: 6.088 MB / 0.5257 GB, free: 2.871 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.482, allocations: 0 / 0.5257 GB, free: 2.871 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.482, allocations: 8 kB / 0.5257 GB, free: 2.863 MB / 378.7 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.0008472/0.4829, allocations: 0.4962 MB / 0.5262 GB, free: 2.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.4829, allocations: 8.031 kB / 0.5262 GB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.671e-05/0.483, allocations: 27.72 kB / 0.5262 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.4849, allocations: 0.7556 MB / 0.5269 GB, free: 1.488 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.485, allocations: 4 kB / 0.5269 GB, free: 1.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.972e-05/0.485, allocations: 12 kB / 0.527 GB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000263/0.4853, allocations: 136.8 kB / 0.5271 GB, free: 1.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.4857, allocations: 237.3 kB / 0.5273 GB, free: 1.078 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4857, allocations: 7.953 kB / 0.5273 GB, free: 1.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.4857, allocations: 0 / 0.5273 GB, free: 1.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.4857, allocations: 4 kB / 0.5273 GB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2671/0.7528, allocations: 1.123 MB / 0.5284 GB, free: 88.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.7531, allocations: 68.42 kB / 0.5285 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.379e-05/0.7532, allocations: 27.91 kB / 0.5285 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.7532, allocations: 5.875 kB / 0.5285 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.7533, allocations: 34.55 kB / 0.5285 GB, free: 88.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 3.256e-06/0.7533, allocations: 0 / 0.5285 GB, free: 88.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.001021/0.7543, allocations: 375.3 kB / 0.5289 GB, free: 87.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.7544, allocations: 86.89 kB / 0.529 GB, free: 87.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.7547, allocations: 195.9 kB / 0.5292 GB, free: 87.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.7547, allocations: 25.7 kB / 0.5292 GB, free: 87.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.755, allocations: 194.6 kB / 0.5294 GB, free: 87.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.755, allocations: 32.09 kB / 0.5294 GB, free: 87.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-06/0.755, allocations: 1.375 kB / 0.5294 GB, free: 87.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.7552, allocations: 329.6 kB / 0.5297 GB, free: 87.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.242e-05/0.7553, allocations: 20.75 kB / 0.5298 GB, free: 87.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.7554, allocations: 116.9 kB / 0.5299 GB, free: 87.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.7555, allocations: 41.19 kB / 0.5299 GB, free: 87.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.7556, allocations: 1.141 kB / 0.5299 GB, free: 87.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003565/0.7559, allocations: 157.8 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.756, allocations: 6.922 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.756, allocations: 4.344 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.756, allocations: 5.781 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.7562, allocations: 38.56 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.7562, allocations: 8.547 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.7564, allocations: 15.58 kB / 0.5301 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.7564, allocations: 7.812 kB / 0.5301 GB, free: 87.04 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.3e-05/0.7565, allocations: 108.9 kB / 0.5302 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001569/0.7567, allocations: 90.86 kB / 0.5303 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.7567, allocations: 18.98 kB / 0.5303 GB, free: 86.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001821/0.7569, allocations: 88.81 kB / 0.5304 GB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.7569, allocations: 11.94 kB / 0.5304 GB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.7569, allocations: 0 / 0.5304 GB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.7569, allocations: 1.859 kB / 0.5304 GB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.7574, allocations: 369.5 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7574, allocations: 2 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.7576, allocations: 19.69 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.7576, allocations: 1.953 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.7576, allocations: 9.047 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.7576, allocations: 1.344 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.7576, allocations: 0.8125 kB / 0.5308 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.7579, allocations: 249.5 kB / 0.5311 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.758, allocations: 94.89 kB / 0.5312 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.758, allocations: 4.938 kB / 0.5312 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.484e-05/0.7581, allocations: 1.625 kB / 0.5312 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.467e-05/0.7581, allocations: 7.891 kB / 0.5312 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.7581, allocations: 2.781 kB / 0.5312 GB, free: 86.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.7583, allocations: 152.3 kB / 0.5313 GB, free: 86.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7583, allocations: 0 / 0.5313 GB, free: 86.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003591/0.7587, allocations: 36.56 kB / 0.5314 GB, free: 86.18 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004431/0.7591, allocations: 0.9131 MB / 0.5322 GB, free: 85.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.7593, allocations: 73.05 kB / 0.5323 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7593, allocations: 2.594 kB / 0.5323 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.897e-05/0.7594, allocations: 27.86 kB / 0.5323 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.7598, allocations: 42.89 kB / 0.5324 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009821/0.7608, allocations: 394.2 kB / 0.5328 GB, free: 85.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.761, allocations: 0.7668 MB / 0.5335 GB, free: 84.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.7612, allocations: 23.8 kB / 0.5335 GB, free: 84.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.287e-05/0.7613, allocations: 72.23 kB / 0.5336 GB, free: 84.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.7613, allocations: 0 / 0.5336 GB, free: 84.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.7876, allocations: 3.329 MB / 0.5369 GB, free: 84.19 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/0.7878, allocations: 134.1 kB / 0.537 GB, free: 84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.519, allocations: 4 kB / 0.537 GB, free: 84 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)