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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.002075/0.002075, allocations: 179.6 kB / 8.35 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.603/1.603, 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.0017/0.001699, allocations: 128.5 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.181/0.181, allocations: 37.93 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.849e-05, allocations: 4 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3122, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.4327, allocations: 88.15 MB / 0.5194 GB, free: 9.398 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.4331, allocations: 83.95 kB / 0.5195 GB, free: 9.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01824/0.4514, allocations: 6.395 MB / 0.5257 GB, free: 2.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4514, allocations: 0 / 0.5257 GB, free: 2.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.4514, allocations: 4 kB / 0.5257 GB, free: 2.836 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007952/0.4522, allocations: 0.5387 MB / 0.5262 GB, free: 2.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4523, allocations: 12.03 kB / 0.5262 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.701e-05/0.4523, allocations: 27.62 kB / 0.5263 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.4537, allocations: 0.6496 MB / 0.5269 GB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.4538, allocations: 8 kB / 0.5269 GB, free: 1.516 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.4539, allocations: 28.3 kB / 0.5269 GB, free: 1.488 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003018/0.4542, allocations: 164.8 kB / 0.5271 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.4546, allocations: 253.2 kB / 0.5273 GB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.4546, allocations: 3.938 kB / 0.5273 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.4547, allocations: 0 / 0.5273 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.4547, allocations: 11.98 kB / 0.5273 GB, free: 1.035 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2614/0.7161, allocations: 1.225 MB / 0.5285 GB, free: 88.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.7165, allocations: 115 kB / 0.5287 GB, free: 88.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.605e-05/0.7165, allocations: 40.53 kB / 0.5287 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.7166, allocations: 3.375 kB / 0.5287 GB, free: 87.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.7166, allocations: 37.83 kB / 0.5287 GB, free: 87.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.555e-06/0.7166, allocations: 0 / 0.5287 GB, free: 87.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.00102/0.7176, allocations: 0.4918 MB / 0.5292 GB, free: 87.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.7177, allocations: 106 kB / 0.5293 GB, free: 87.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.718, allocations: 202.9 kB / 0.5295 GB, free: 87.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.718, allocations: 26.3 kB / 0.5295 GB, free: 87.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.7181, allocations: 199.2 kB / 0.5297 GB, free: 87.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.7182, allocations: 38.23 kB / 0.5298 GB, free: 87.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-06/0.7182, allocations: 2.25 kB / 0.5298 GB, free: 87.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.7183, allocations: 334.3 kB / 0.5301 GB, free: 86.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.893e-05/0.7184, allocations: 33.05 kB / 0.5301 GB, free: 86.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.7186, allocations: 126 kB / 0.5302 GB, free: 86.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.7187, allocations: 51.52 kB / 0.5303 GB, free: 86.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.7187, allocations: 1.188 kB / 0.5303 GB, free: 86.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004152/0.7192, allocations: 206.5 kB / 0.5305 GB, free: 86.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.7192, allocations: 11.08 kB / 0.5305 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.7192, allocations: 2.688 kB / 0.5305 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.7194, allocations: 30.94 kB / 0.5305 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.7197, allocations: 67.25 kB / 0.5306 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.7198, allocations: 6.594 kB / 0.5306 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.7199, allocations: 3.703 kB / 0.5306 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.7199, allocations: 9.109 kB / 0.5306 GB, free: 86.76 MB / 378.7 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.55e-05/0.72, allocations: 112 kB / 0.5307 GB, free: 86.65 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002412/0.7203, allocations: 130.5 kB / 0.5308 GB, free: 86.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/0.7203, allocations: 22.3 kB / 0.5309 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.7206, allocations: 137.4 kB / 0.531 GB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.7207, allocations: 2.891 kB / 0.531 GB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.7207, allocations: 4.25 kB / 0.531 GB, free: 86.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.882e-06/0.7207, allocations: 6.078 kB / 0.531 GB, free: 86.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.7211, allocations: 247.9 kB / 0.5312 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.7211, allocations: 1.344 kB / 0.5312 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.7213, allocations: 38.3 kB / 0.5313 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.7213, allocations: 1.812 kB / 0.5313 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.7213, allocations: 1.875 kB / 0.5313 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.7213, allocations: 8.297 kB / 0.5313 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.7214, allocations: 1.219 kB / 0.5313 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.7217, allocations: 388.1 kB / 0.5317 GB, free: 86.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/0.7218, allocations: 96.86 kB / 0.5317 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.7218, allocations: 3.188 kB / 0.5318 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.722, allocations: 0 / 0.5318 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.722, allocations: 8.859 kB / 0.5318 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.722, allocations: 11.61 kB / 0.5318 GB, free: 86.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001351/0.7222, allocations: 156.8 kB / 0.5319 GB, free: 85.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7222, allocations: 0 / 0.5319 GB, free: 85.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004057/0.7226, allocations: 42.38 kB / 0.532 GB, free: 85.95 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.0005928/0.7232, allocations: 1.054 MB / 0.533 GB, free: 85.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.7235, allocations: 195.7 kB / 0.5332 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7236, allocations: 1.156 kB / 0.5332 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.528e-05/0.7236, allocations: 51.48 kB / 0.5332 GB, free: 84.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.7241, allocations: 54.56 kB / 0.5333 GB, free: 84.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.7252, allocations: 493 kB / 0.5337 GB, free: 84.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.7255, allocations: 0.7761 MB / 0.5345 GB, free: 83.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.7256, allocations: 30.98 kB / 0.5345 GB, free: 83.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.7258, allocations: 89.14 kB / 0.5346 GB, free: 83.92 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.7258, allocations: 5.25 kB / 0.5346 GB, free: 83.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.7547, allocations: 4.039 MB / 0.5386 GB, free: 83.67 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.7549, allocations: 133 kB / 0.5387 GB, free: 83.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.598, allocations: 3.375 kB / 0.5387 GB, free: 83.48 MB / 378.7 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/linux/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)