Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001007/0.001007, 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.189/1.189, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.000781/0.000781, allocations: 96.06 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.1561/0.1561, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002664/0.0002664, 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.33 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1091/0.3302, allocations: 94.22 MB / 0.5612 GB, free: 8.191 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.3304, allocations: 87.95 kB / 0.5613 GB, free: 8.105 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01524/0.3457, allocations: 6.16 MB / 0.5673 GB, free: 1.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3457, allocations: 3.938 kB / 0.5673 GB, free: 1.871 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.3457, allocations: 4 kB / 0.5673 GB, free: 1.867 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006691/0.3464, allocations: 0.5428 MB / 0.5678 GB, free: 1.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.3464, allocations: 8.031 kB / 0.5678 GB, free: 1.27 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.3465, allocations: 54.55 kB / 0.5679 GB, free: 1.207 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.591e-05/0.3465, allocations: 39.92 kB / 0.5679 GB, free: 1.168 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.3482, allocations: 0.7693 MB / 0.5687 GB, free: 368 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.3483, allocations: 16.44 kB / 0.5687 GB, free: 348 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.3483, allocations: 20 kB / 0.5687 GB, free: 328 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.3486, allocations: 266 kB / 0.5689 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.3486, allocations: 0 / 0.5689 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.3487, allocations: 8 kB / 0.5689 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3487, allocations: 8 kB / 0.569 GB, free: 20 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.3489, allocations: 163.7 kB / 0.5691 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.35, allocations: 1.175 MB / 0.5703 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.3501, allocations: 81.28 kB / 0.5703 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.3501, allocations: 0 / 0.5703 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3502, allocations: 30.56 kB / 0.5704 GB, free: 14.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.3502, allocations: 8 kB / 0.5704 GB, free: 14.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006026/0.3508, allocations: 401 kB / 0.5708 GB, free: 14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.3508, allocations: 81.11 kB / 0.5708 GB, free: 13.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.351, allocations: 221.6 kB / 0.571 GB, free: 13.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.351, allocations: 25.7 kB / 0.5711 GB, free: 13.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.3511, allocations: 191.6 kB / 0.5713 GB, free: 13.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3512, allocations: 31.62 kB / 0.5713 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/0.3512, allocations: 4 kB / 0.5713 GB, free: 13.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.063e-05/0.3513, allocations: 330.8 kB / 0.5716 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.552e-05/0.3513, allocations: 28.36 kB / 0.5716 GB, free: 13.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.241e-05/0.3514, allocations: 121.5 kB / 0.5717 GB, free: 12.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.205e-05/0.3515, allocations: 47.94 kB / 0.5718 GB, free: 12.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3515, allocations: 0 / 0.5718 GB, free: 12.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002269/0.3517, allocations: 185.1 kB / 0.572 GB, free: 12.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3518, allocations: 8 kB / 0.572 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.3518, allocations: 4 kB / 0.572 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3518, allocations: 4.438 kB / 0.572 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.3519, allocations: 39.92 kB / 0.572 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.352, allocations: 11.98 kB / 0.572 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.475e-05/0.3521, allocations: 8 kB / 0.572 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.3521, allocations: 12 kB / 0.5721 GB, free: 12.58 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 (22): * 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): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.3522, allocations: 153.7 kB / 0.5722 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.3522, allocations: 19.72 kB / 0.5722 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.3524, allocations: 87.39 kB / 0.5723 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3524, allocations: 4 kB / 0.5723 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3524, allocations: 11.92 kB / 0.5723 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3524, allocations: 3.984 kB / 0.5723 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.3528, allocations: 419.3 kB / 0.5727 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3528, allocations: 0 / 0.5727 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.746e-05/0.3529, allocations: 15.94 kB / 0.5727 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3529, allocations: 4 kB / 0.5727 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.3529, allocations: 4.422 kB / 0.5727 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3529, allocations: 0 / 0.5727 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3529, allocations: 4 kB / 0.5727 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.3532, allocations: 263.3 kB / 0.573 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.3532, allocations: 88.95 kB / 0.5731 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.3533, allocations: 8 kB / 0.5731 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.445e-05/0.3534, allocations: 3.953 kB / 0.5731 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.3534, allocations: 12.05 kB / 0.5731 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.3534, allocations: 4 kB / 0.5731 GB, free: 11.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001206/0.3535, allocations: 166 kB / 0.5733 GB, free: 11.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3535, allocations: 3.938 kB / 0.5733 GB, free: 11.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002727/0.3538, allocations: 40 kB / 0.5733 GB, free: 11.16 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 (9): * Single equations (assignments): 8 * 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.0004433/0.3542, allocations: 0.9407 MB / 0.5742 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001417/0.3544, allocations: 84.45 kB / 0.5743 GB, free: 10.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3544, allocations: 8.25 kB / 0.5743 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.007e-05/0.3545, allocations: 20 kB / 0.5743 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.3548, allocations: 56.41 kB / 0.5744 GB, free: 10.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.3568, allocations: 3.461 MB / 0.5778 GB, free: 6.426 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.3571, allocations: 0.7679 MB / 0.5785 GB, free: 5.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.916e-05/0.3572, allocations: 30.28 kB / 0.5785 GB, free: 5.602 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.982e-05/0.3573, allocations: 79.34 kB / 0.5786 GB, free: 5.523 MB / 410.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3573, allocations: 0 / 0.5786 GB, free: 5.523 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01343/0.3707, allocations: 3.863 MB / 0.5824 GB, free: 1.719 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.3709, allocations: 180.2 kB / 0.5826 GB, free: 1.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/1.929, allocations: 7.812 kB / 0.5826 GB, free: 1.477 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat does not exist to compare? outputFormat=mat