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.001058/0.001059, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.52/1.52, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001562/0.001562, allocations: 114 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.174/0.174, allocations: 38.01 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004133, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 53.22 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.4366, allocations: 89.81 MB / 0.5341 GB, free: 5.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.4369, allocations: 98.19 kB / 0.5342 GB, free: 5.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01605/0.453, allocations: 6.609 MB / 0.5406 GB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.453, allocations: 0 / 0.5406 GB, free: 15.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.453, allocations: 8 kB / 0.5407 GB, free: 15.56 MB / 362.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.0009541/0.454, allocations: 0.5797 MB / 0.5412 GB, free: 14.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.454, allocations: 16.02 kB / 0.5412 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.4541, allocations: 57.55 kB / 0.5413 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.542e-05/0.4542, allocations: 27.62 kB / 0.5413 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.456, allocations: 0.7782 MB / 0.5421 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.456, allocations: 16.44 kB / 0.5421 GB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.4561, allocations: 18 kB / 0.5421 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.4565, allocations: 288.5 kB / 0.5424 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4565, allocations: 0 / 0.5424 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.4566, allocations: 18.64 kB / 0.5424 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.4566, allocations: 4 kB / 0.5424 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.4569, allocations: 180.9 kB / 0.5426 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.4582, allocations: 1.226 MB / 0.5438 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.4585, allocations: 105.5 kB / 0.5439 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.4585, allocations: 8.047 kB / 0.5439 GB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.4586, allocations: 38.06 kB / 0.5439 GB, free: 12.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.4586, allocations: 0 / 0.5439 GB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007803/0.4594, allocations: 493.1 kB / 0.5444 GB, free: 11.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.4594, allocations: 77.11 kB / 0.5445 GB, free: 11.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.4596, allocations: 221.3 kB / 0.5447 GB, free: 11.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.4596, allocations: 25.83 kB / 0.5447 GB, free: 11.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.4597, allocations: 202 kB / 0.5449 GB, free: 11.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.4598, allocations: 41.14 kB / 0.5449 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/0.4598, allocations: 3.125 kB / 0.5449 GB, free: 11.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4599, allocations: 332.6 kB / 0.5453 GB, free: 11.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.286e-05/0.46, allocations: 34.36 kB / 0.5453 GB, free: 11.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.4601, allocations: 128.7 kB / 0.5454 GB, free: 10.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.184e-05/0.4602, allocations: 57.48 kB / 0.5455 GB, free: 10.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4602, allocations: 4 kB / 0.5455 GB, free: 10.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002785/0.4605, allocations: 200 kB / 0.5457 GB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4605, allocations: 8 kB / 0.5457 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4605, allocations: 4 kB / 0.5457 GB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.4605, allocations: 4 kB / 0.5457 GB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.4607, allocations: 55.86 kB / 0.5457 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.4607, allocations: 7.938 kB / 0.5457 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.4608, allocations: 11.16 kB / 0.5457 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.4609, allocations: 11.53 kB / 0.5458 GB, free: 10.61 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.461, allocations: 156.3 kB / 0.5459 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.371e-05/0.4611, allocations: 30.64 kB / 0.5459 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000216/0.4613, allocations: 126.5 kB / 0.5461 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4613, allocations: 4 kB / 0.5461 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4613, allocations: 3.953 kB / 0.5461 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4613, allocations: 3.984 kB / 0.5461 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005067/0.4618, allocations: 478.5 kB / 0.5465 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4618, allocations: 7.938 kB / 0.5465 GB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.462, allocations: 16.19 kB / 0.5465 GB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.462, allocations: 4 kB / 0.5465 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.462, allocations: 11.27 kB / 0.5466 GB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.462, allocations: 0 / 0.5466 GB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.462, allocations: 11.92 kB / 0.5466 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003005/0.4623, allocations: 302.3 kB / 0.5469 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.8e-05/0.4624, allocations: 95.89 kB / 0.547 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.4624, allocations: 4 kB / 0.547 GB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/0.4625, allocations: 3.375 kB / 0.547 GB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.522e-05/0.4626, allocations: 7.984 kB / 0.547 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.4626, allocations: 4 kB / 0.547 GB, free: 9.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.4627, allocations: 178.7 kB / 0.5471 GB, free: 9.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4627, allocations: 0 / 0.5471 GB, free: 9.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003044/0.463, allocations: 47.5 kB / 0.5472 GB, free: 9.219 MB / 362.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 () * 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 (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.0005773/0.4636, allocations: 0.9803 MB / 0.5481 GB, free: 8.242 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001998/0.4638, allocations: 110 kB / 0.5482 GB, free: 8.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4639, allocations: 0 / 0.5482 GB, free: 8.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.4639, allocations: 47.17 kB / 0.5483 GB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.4643, allocations: 56.16 kB / 0.5483 GB, free: 8.082 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.4668, allocations: 3.585 MB / 0.5518 GB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.4671, allocations: 0.782 MB / 0.5526 GB, free: 3.719 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.4673, allocations: 34.27 kB / 0.5526 GB, free: 3.688 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.302e-05/0.4674, allocations: 81.72 kB / 0.5527 GB, free: 3.66 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4674, allocations: 0 / 0.5527 GB, free: 3.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2156/0.683, allocations: 4.262 MB / 0.5569 GB, free: 15.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.6832, allocations: 191.3 kB / 0.5571 GB, free: 15.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.501, allocations: 4.062 kB / 0.5571 GB, free: 15.18 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)