Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.0009348/0.0009348, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008194/0.0008193, allocations: 92.12 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1587/0.1587, allocations: 38.08 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2409, allocations: 56.33 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.3496, allocations: 93.94 MB / 0.5609 GB, free: 8.457 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.3498, allocations: 91.95 kB / 0.561 GB, free: 8.367 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01744/0.3673, allocations: 6.476 MB / 0.5673 GB, free: 1.816 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.3673, allocations: 0 / 0.5673 GB, free: 1.816 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.3673, allocations: 8 kB / 0.5673 GB, free: 1.809 MB / 394.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.0008627/0.3682, allocations: 0.5742 MB / 0.5679 GB, free: 1.188 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.3682, allocations: 8.031 kB / 0.5679 GB, free: 1.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.551e-05/0.3683, allocations: 62.5 kB / 0.5679 GB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.3684, allocations: 35.61 kB / 0.568 GB, free: 1.074 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.3698, allocations: 0.6672 MB / 0.5686 GB, free: 376 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.3698, allocations: 20.44 kB / 0.5686 GB, free: 356 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3699, allocations: 31.98 kB / 0.5687 GB, free: 324 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.3703, allocations: 289.8 kB / 0.569 GB, free: 0 / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.3704, allocations: 0 / 0.569 GB, free: 0 / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.3704, allocations: 16.03 kB / 0.569 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3704, allocations: 4 kB / 0.569 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002882/0.3707, allocations: 191.8 kB / 0.5692 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.3721, allocations: 1.28 MB / 0.5704 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.3724, allocations: 123.8 kB / 0.5705 GB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.3724, allocations: 0 / 0.5705 GB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.3724, allocations: 42.5 kB / 0.5706 GB, free: 14.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.3724, allocations: 0 / 0.5706 GB, free: 14.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008258/0.3733, allocations: 0.5314 MB / 0.5711 GB, free: 13.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.3733, allocations: 110.8 kB / 0.5712 GB, free: 13.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.3735, allocations: 205.9 kB / 0.5714 GB, free: 13.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.3735, allocations: 29.7 kB / 0.5714 GB, free: 13.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.3736, allocations: 199.5 kB / 0.5716 GB, free: 13.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.3737, allocations: 38.45 kB / 0.5716 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/0.3737, allocations: 4 kB / 0.5716 GB, free: 13.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.3738, allocations: 334.8 kB / 0.572 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.3739, allocations: 39.98 kB / 0.572 GB, free: 12.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.374, allocations: 136.2 kB / 0.5721 GB, free: 12.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.863e-05/0.3741, allocations: 59.92 kB / 0.5722 GB, free: 12.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3741, allocations: 4 kB / 0.5722 GB, free: 12.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003711/0.3745, allocations: 229.9 kB / 0.5724 GB, free: 12.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3745, allocations: 7.953 kB / 0.5724 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3745, allocations: 7.938 kB / 0.5724 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00011/0.3746, allocations: 28.84 kB / 0.5725 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/0.375, allocations: 68.28 kB / 0.5725 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.375, allocations: 4 kB / 0.5725 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.3752, allocations: 8 kB / 0.5725 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.3752, allocations: 11.98 kB / 0.5725 GB, free: 12.03 MB / 410.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 () * Number of clocked 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 0.0001255/0.3753, allocations: 145.8 kB / 0.5727 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.3754, allocations: 27.72 kB / 0.5727 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.3757, allocations: 155 kB / 0.5729 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3757, allocations: 7.984 kB / 0.5729 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3757, allocations: 0 / 0.5729 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3757, allocations: 7.984 kB / 0.5729 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.376, allocations: 293.4 kB / 0.5732 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.376, allocations: 0 / 0.5732 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.3762, allocations: 35.91 kB / 0.5732 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3762, allocations: 4 kB / 0.5732 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.3762, allocations: 4 kB / 0.5732 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.3762, allocations: 7.953 kB / 0.5732 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3763, allocations: 0 / 0.5732 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.3766, allocations: 393.5 kB / 0.5736 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-05/0.3767, allocations: 108.7 kB / 0.5737 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.3767, allocations: 4 kB / 0.5737 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.3769, allocations: 8.062 kB / 0.5737 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.3769, allocations: 11.98 kB / 0.5737 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3769, allocations: 0 / 0.5737 GB, free: 10.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001286/0.3771, allocations: 173.9 kB / 0.5739 GB, free: 10.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3771, allocations: 0 / 0.5739 GB, free: 10.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.3774, allocations: 51.98 kB / 0.5739 GB, free: 10.51 MB / 410.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 () * Number of clocked 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.0006027/0.378, allocations: 1.074 MB / 0.575 GB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.3783, allocations: 206.4 kB / 0.5752 GB, free: 9.176 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3784, allocations: 4.25 kB / 0.5752 GB, free: 9.172 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.353e-05/0.3784, allocations: 59.92 kB / 0.5752 GB, free: 9.113 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.3788, allocations: 48.48 kB / 0.5753 GB, free: 9.066 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/0.3812, allocations: 3.548 MB / 0.5787 GB, free: 5.387 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.3815, allocations: 0.7796 MB / 0.5795 GB, free: 4.582 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.3817, allocations: 38.28 kB / 0.5795 GB, free: 4.547 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3818, allocations: 87.39 kB / 0.5796 GB, free: 4.461 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3818, allocations: 0 / 0.5796 GB, free: 4.461 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01552/0.3973, allocations: 4.545 MB / 0.5841 GB, free: 15.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.3976, allocations: 204.6 kB / 0.5843 GB, free: 15.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.035, allocations: 3.75 kB / 0.5843 GB, free: 15.74 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat does not exist to compare? outputFormat=mat