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.001026/0.001026, 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.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008612/0.0008612, allocations: 96.12 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1555/0.1555, allocations: 38.07 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002592, allocations: 11.98 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2211, allocations: 56.32 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3328, allocations: 94.85 MB / 0.5618 GB, free: 7.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.333, allocations: 91.94 kB / 0.5619 GB, free: 7.461 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01806/0.3511, allocations: 6.633 MB / 0.5683 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3512, allocations: 4 kB / 0.5683 GB, free: 0.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.3512, allocations: 7.938 kB / 0.5684 GB, free: 0.7422 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.0008077/0.352, allocations: 0.5707 MB / 0.5689 GB, free: 128 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.352, allocations: 8.031 kB / 0.5689 GB, free: 120 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.374e-05/0.3521, allocations: 54.55 kB / 0.569 GB, free: 56 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.642e-05/0.3522, allocations: 39.92 kB / 0.569 GB, free: 16 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.354, allocations: 0.7802 MB / 0.5698 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.354, allocations: 20.36 kB / 0.5698 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.354, allocations: 24 kB / 0.5698 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000394/0.3544, allocations: 282.8 kB / 0.5701 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3545, allocations: 7.984 kB / 0.5701 GB, free: 14.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.3545, allocations: 12 kB / 0.5701 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3545, allocations: 4 kB / 0.5701 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002738/0.3548, allocations: 184.8 kB / 0.5703 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.3559, allocations: 1.224 MB / 0.5715 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.3562, allocations: 121.4 kB / 0.5716 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.3562, allocations: 0 / 0.5716 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.3562, allocations: 34.62 kB / 0.5716 GB, free: 13.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.3563, allocations: 0 / 0.5716 GB, free: 13.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007158/0.357, allocations: 480.5 kB / 0.5721 GB, free: 12.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.357, allocations: 85.17 kB / 0.5722 GB, free: 12.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.3572, allocations: 217.8 kB / 0.5724 GB, free: 12.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3572, allocations: 33.7 kB / 0.5724 GB, free: 12.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-05/0.3573, allocations: 195.6 kB / 0.5726 GB, free: 12.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.3574, allocations: 39.44 kB / 0.5726 GB, free: 12.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/0.3574, allocations: 4 kB / 0.5726 GB, free: 12.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.3575, allocations: 338.8 kB / 0.573 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.065e-05/0.3576, allocations: 31.98 kB / 0.573 GB, free: 11.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.3577, allocations: 132.7 kB / 0.5731 GB, free: 11.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.884e-05/0.3578, allocations: 60.67 kB / 0.5732 GB, free: 11.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3578, allocations: 0 / 0.5732 GB, free: 11.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002698/0.3581, allocations: 212.9 kB / 0.5734 GB, free: 11.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3581, allocations: 8 kB / 0.5734 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3581, allocations: 4 kB / 0.5734 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3581, allocations: 4 kB / 0.5734 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.3583, allocations: 44.36 kB / 0.5734 GB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3583, allocations: 12 kB / 0.5734 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.3584, allocations: 4 kB / 0.5735 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.3584, allocations: 15.98 kB / 0.5735 GB, free: 11.11 MB / 410.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.0001207/0.3586, allocations: 157.7 kB / 0.5736 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.3586, allocations: 23.66 kB / 0.5736 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.3588, allocations: 131.3 kB / 0.5738 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3588, allocations: 0 / 0.5738 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3588, allocations: 0 / 0.5738 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3589, allocations: 8 kB / 0.5738 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/0.3593, allocations: 479.2 kB / 0.5742 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3593, allocations: 0 / 0.5742 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.3595, allocations: 23.98 kB / 0.5743 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3595, allocations: 0 / 0.5743 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.3595, allocations: 8 kB / 0.5743 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3595, allocations: 0 / 0.5743 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3595, allocations: 0 / 0.5743 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.3598, allocations: 315.2 kB / 0.5746 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.825e-05/0.3599, allocations: 96.86 kB / 0.5747 GB, free: 9.773 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.3599, allocations: 3.953 kB / 0.5747 GB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.36, allocations: 8 kB / 0.5747 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.21e-05/0.3601, allocations: 12.05 kB / 0.5747 GB, free: 9.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3601, allocations: 4 kB / 0.5747 GB, free: 9.746 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001346/0.3602, allocations: 170 kB / 0.5748 GB, free: 9.582 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3602, allocations: 0 / 0.5748 GB, free: 9.582 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.3605, allocations: 51.94 kB / 0.5749 GB, free: 9.531 MB / 410.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.0005782/0.3611, allocations: 0.9838 MB / 0.5759 GB, free: 8.508 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.3613, allocations: 112.5 kB / 0.576 GB, free: 8.398 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3613, allocations: 0 / 0.576 GB, free: 8.398 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.794e-05/0.3614, allocations: 52.05 kB / 0.576 GB, free: 8.348 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3617, allocations: 63.62 kB / 0.5761 GB, free: 8.289 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/0.3644, allocations: 3.569 MB / 0.5796 GB, free: 4.586 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.3648, allocations: 0.7794 MB / 0.5803 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.365, allocations: 30.22 kB / 0.5803 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.3651, allocations: 91.34 kB / 0.5804 GB, free: 3.664 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3651, allocations: 0 / 0.5804 GB, free: 3.664 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01462/0.3797, allocations: 4.266 MB / 0.5846 GB, free: 15.45 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.38, allocations: 199.8 kB / 0.5848 GB, free: 15.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.053, allocations: 0 / 0.5848 GB, free: 15.21 MB / 426.7 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