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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.001121/0.001121, 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.563/1.563, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001771/0.001771, allocations: 108.7 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.1595/0.1595, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.312e-05, allocations: 0 / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2844, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.4084, allocations: 89.06 MB / 0.5202 GB, free: 8.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4087, allocations: 87.95 kB / 0.5203 GB, free: 8.414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01922/0.4279, allocations: 6.556 MB / 0.5267 GB, free: 1.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.428, allocations: 0 / 0.5267 GB, free: 1.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.723e-05/0.428, allocations: 11.94 kB / 0.5267 GB, free: 1.77 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.0009328/0.429, allocations: 0.5312 MB / 0.5273 GB, free: 1.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.429, allocations: 12.03 kB / 0.5273 GB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.4291, allocations: 27.62 kB / 0.5273 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.4313, allocations: 0.7688 MB / 0.5281 GB, free: 356 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.4313, allocations: 7.984 kB / 0.5281 GB, free: 348 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.4314, allocations: 12 kB / 0.5281 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003615/0.4318, allocations: 156.8 kB / 0.5282 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2611/0.6928, allocations: 252.8 kB / 0.5285 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.6929, allocations: 0 / 0.5285 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.693, allocations: 1.062 kB / 0.5285 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.693, allocations: 6.891 kB / 0.5285 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.6949, allocations: 1.168 MB / 0.5296 GB, free: 87.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.6953, allocations: 102 kB / 0.5297 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.628e-05/0.6954, allocations: 42.27 kB / 0.5297 GB, free: 87.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.6955, allocations: 2.047 kB / 0.5298 GB, free: 87.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.6955, allocations: 38.94 kB / 0.5298 GB, free: 87.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.6955, allocations: 0 / 0.5298 GB, free: 87.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009831/0.6965, allocations: 441.4 kB / 0.5302 GB, free: 87.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.6965, allocations: 79.27 kB / 0.5303 GB, free: 87.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.6968, allocations: 203.7 kB / 0.5305 GB, free: 87.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.6969, allocations: 25.7 kB / 0.5305 GB, free: 87.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.697, allocations: 200.1 kB / 0.5307 GB, free: 86.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.6971, allocations: 39.8 kB / 0.5307 GB, free: 86.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-06/0.6971, allocations: 0 / 0.5307 GB, free: 86.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.6972, allocations: 336.1 kB / 0.5311 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.93e-05/0.6973, allocations: 29.03 kB / 0.5311 GB, free: 86.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.6974, allocations: 127.1 kB / 0.5312 GB, free: 86.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.6975, allocations: 55.06 kB / 0.5313 GB, free: 86.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.6975, allocations: 0.5 kB / 0.5313 GB, free: 86.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003375/0.6978, allocations: 181.4 kB / 0.5314 GB, free: 86.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.6979, allocations: 6.844 kB / 0.5314 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.6979, allocations: 3.156 kB / 0.5314 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.6979, allocations: 13.14 kB / 0.5315 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.6981, allocations: 46.92 kB / 0.5315 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.6981, allocations: 10.05 kB / 0.5315 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.6983, allocations: 8.828 kB / 0.5315 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.6983, allocations: 9.25 kB / 0.5315 GB, free: 86.4 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 (24): * Single equations (assignments): 24 * 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.392e-05/0.6984, allocations: 110.3 kB / 0.5316 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001937/0.6986, allocations: 119.8 kB / 0.5317 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.517e-05/0.6986, allocations: 26.34 kB / 0.5318 GB, free: 86.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.6989, allocations: 118.4 kB / 0.5319 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.6989, allocations: 2.25 kB / 0.5319 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.6989, allocations: 0 / 0.5319 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6989, allocations: 1.828 kB / 0.5319 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000534/0.6995, allocations: 434.2 kB / 0.5323 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6995, allocations: 5.547 kB / 0.5323 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.6996, allocations: 21.16 kB / 0.5323 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.6997, allocations: 1.219 kB / 0.5323 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.6997, allocations: 4.391 kB / 0.5323 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.6997, allocations: 5.969 kB / 0.5323 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.6997, allocations: 1.031 kB / 0.5323 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.7, allocations: 289.7 kB / 0.5326 GB, free: 85.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/0.7001, allocations: 98.73 kB / 0.5327 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.7001, allocations: 2.828 kB / 0.5327 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.7002, allocations: 5.031 kB / 0.5327 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.7003, allocations: 7.047 kB / 0.5327 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.7003, allocations: 7.766 kB / 0.5327 GB, free: 85.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001664/0.7005, allocations: 159.6 kB / 0.5329 GB, free: 85.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7005, allocations: 0.5938 kB / 0.5329 GB, free: 85.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003815/0.7009, allocations: 41.69 kB / 0.5329 GB, free: 85.52 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 (13): * Single equations (assignments): 12 * 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.0005755/0.7015, allocations: 0.9689 MB / 0.5339 GB, free: 84.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002272/0.7017, allocations: 98.66 kB / 0.534 GB, free: 84.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7017, allocations: 0 / 0.534 GB, free: 84.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.238e-05/0.7018, allocations: 40.12 kB / 0.534 GB, free: 84.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.7022, allocations: 54.94 kB / 0.5341 GB, free: 84.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009945/0.7032, allocations: 429.8 kB / 0.5345 GB, free: 84.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.7035, allocations: 0.7812 MB / 0.5352 GB, free: 83.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.7036, allocations: 36.31 kB / 0.5353 GB, free: 83.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.7038, allocations: 84.41 kB / 0.5353 GB, free: 83.68 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7038, allocations: 0 / 0.5353 GB, free: 83.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.7292, allocations: 3.801 MB / 0.5391 GB, free: 83.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/0.7295, allocations: 149 kB / 0.5392 GB, free: 83.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.55, allocations: 5.312 kB / 0.5392 GB, free: 83.25 MB / 378.7 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/linux/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)