Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001831/0.001831, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009378/0.0009379, allocations: 90.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1661/0.1661, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.907e-05/1.901e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4203/0.5394, allocations: 94.09 MB / 0.5479 GB, free: 0.6758 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.5397, allocations: 91.94 kB / 0.548 GB, free: 0.5859 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01896/0.5587, allocations: 6.569 MB / 0.5544 GB, free: 9.961 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5587, allocations: 0 / 0.5544 GB, free: 9.961 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.05e-05/0.5588, allocations: 4 kB / 0.5544 GB, free: 9.957 MB / 395.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.0008321/0.5596, allocations: 0.5312 MB / 0.555 GB, free: 9.383 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.5597, allocations: 8.031 kB / 0.555 GB, free: 9.375 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.579e-05/0.5598, allocations: 39.83 kB / 0.555 GB, free: 9.336 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.5618, allocations: 0.761 MB / 0.5558 GB, free: 8.535 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.5619, allocations: 16 kB / 0.5558 GB, free: 8.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.5619, allocations: 15.98 kB / 0.5558 GB, free: 8.504 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003599/0.5623, allocations: 156.7 kB / 0.5559 GB, free: 8.352 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.5627, allocations: 253.9 kB / 0.5562 GB, free: 8.066 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.5628, allocations: 8 kB / 0.5562 GB, free: 8.059 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.5628, allocations: 0 / 0.5562 GB, free: 8.059 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.5628, allocations: 4 kB / 0.5562 GB, free: 8.055 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.5642, allocations: 1.181 MB / 0.5573 GB, free: 6.801 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.5645, allocations: 97.25 kB / 0.5574 GB, free: 6.688 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.129e-05/0.5646, allocations: 42.66 kB / 0.5575 GB, free: 6.641 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.5646, allocations: 4 kB / 0.5575 GB, free: 6.637 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.5646, allocations: 34.56 kB / 0.5575 GB, free: 6.594 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.5647, allocations: 0 / 0.5575 GB, free: 6.594 MB / 395.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007257/0.5654, allocations: 432.4 kB / 0.5579 GB, free: 6.117 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.5654, allocations: 85.11 kB / 0.558 GB, free: 6.016 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.5657, allocations: 202.3 kB / 0.5582 GB, free: 5.809 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.5657, allocations: 25.7 kB / 0.5582 GB, free: 5.777 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.5658, allocations: 207.5 kB / 0.5584 GB, free: 5.57 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.232e-05/0.5658, allocations: 35.45 kB / 0.5585 GB, free: 5.535 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.5659, allocations: 0 / 0.5585 GB, free: 5.535 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.566, allocations: 334.8 kB / 0.5588 GB, free: 5.199 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.728e-05/0.5661, allocations: 32 kB / 0.5588 GB, free: 5.168 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.5662, allocations: 124.8 kB / 0.5589 GB, free: 5 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.322e-05/0.5663, allocations: 55.91 kB / 0.559 GB, free: 4.945 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5663, allocations: 0 / 0.559 GB, free: 4.945 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002552/0.5666, allocations: 177.1 kB / 0.5591 GB, free: 4.766 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5666, allocations: 8 kB / 0.5591 GB, free: 4.758 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5666, allocations: 4 kB / 0.5592 GB, free: 4.754 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.5666, allocations: 4 kB / 0.5592 GB, free: 4.75 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.5668, allocations: 47.91 kB / 0.5592 GB, free: 4.703 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.5668, allocations: 4.438 kB / 0.5592 GB, free: 4.699 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.5669, allocations: 8.562 kB / 0.5592 GB, free: 4.691 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.567, allocations: 8 kB / 0.5592 GB, free: 4.684 MB / 395.1 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 8.977e-05/0.5671, allocations: 116.8 kB / 0.5593 GB, free: 4.562 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001774/0.5673, allocations: 121.2 kB / 0.5594 GB, free: 4.438 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.637e-05/0.5673, allocations: 27.66 kB / 0.5595 GB, free: 4.41 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.5675, allocations: 119.4 kB / 0.5596 GB, free: 4.293 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.5675, allocations: 0 / 0.5596 GB, free: 4.293 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5676, allocations: 0 / 0.5596 GB, free: 4.293 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5676, allocations: 8.031 kB / 0.5596 GB, free: 4.285 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.5681, allocations: 431.7 kB / 0.56 GB, free: 3.816 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5681, allocations: 0 / 0.56 GB, free: 3.816 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.5682, allocations: 16 kB / 0.56 GB, free: 3.801 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.5682, allocations: 4 kB / 0.56 GB, free: 3.797 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.5682, allocations: 3.984 kB / 0.56 GB, free: 3.793 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5682, allocations: 4 kB / 0.56 GB, free: 3.789 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.5682, allocations: 4 kB / 0.56 GB, free: 3.785 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.5686, allocations: 292.3 kB / 0.5603 GB, free: 3.465 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.744e-05/0.5687, allocations: 96.84 kB / 0.5604 GB, free: 3.352 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.5687, allocations: 11.94 kB / 0.5604 GB, free: 3.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-05/0.5688, allocations: 0 / 0.5604 GB, free: 3.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.905e-05/0.5688, allocations: 16.05 kB / 0.5604 GB, free: 3.324 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.5689, allocations: 4 kB / 0.5604 GB, free: 3.32 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.569, allocations: 158 kB / 0.5606 GB, free: 3.168 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.569, allocations: 0 / 0.5606 GB, free: 3.168 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.5693, allocations: 40 kB / 0.5606 GB, free: 3.129 MB / 395.1 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.0006245/0.5699, allocations: 0.9659 MB / 0.5616 GB, free: 2.121 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.5702, allocations: 103.8 kB / 0.5617 GB, free: 2.02 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5702, allocations: 0.9375 kB / 0.5617 GB, free: 2.02 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.728e-05/0.5702, allocations: 39.92 kB / 0.5617 GB, free: 1.98 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.5706, allocations: 52.61 kB / 0.5618 GB, free: 1.93 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008999/0.5715, allocations: 417.8 kB / 0.5622 GB, free: 1.473 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.5719, allocations: 0.7795 MB / 0.5629 GB, free: 0.668 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.5721, allocations: 34.06 kB / 0.563 GB, free: 0.6367 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.5722, allocations: 83.34 kB / 0.563 GB, free: 0.5547 MB / 395.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5722, allocations: 0 / 0.563 GB, free: 0.5547 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.5958, allocations: 3.802 MB / 0.5667 GB, free: 12.76 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.5961, allocations: 158 kB / 0.5669 GB, free: 12.57 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.497, allocations: 0 / 0.5669 GB, free: 12.57 MB / 411.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat does not exist to compare? outputFormat=mat