Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001549/0.001549, allocations: 174.7 kB / 13.63 MB, free: 1.684 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.47/1.47, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009205/0.0009205, allocations: 82.77 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2801/0.2801, allocations: 37.99 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.573e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 56.32 MB / 474.1 MB, free: 4.691 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4178/0.5379, allocations: 101.3 MB / 0.562 GB, free: 1.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.5382, allocations: 93.92 kB / 0.5621 GB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04296/0.5811, allocations: 15.1 MB / 0.5768 GB, free: 4.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5812, allocations: 0 / 0.5768 GB, free: 4.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.189e-05/0.5813, allocations: 12 kB / 0.5768 GB, free: 4.328 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001796/0.5831, allocations: 0.6715 MB / 0.5775 GB, free: 3.637 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.5831, allocations: 12.03 kB / 0.5775 GB, free: 3.625 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002368/0.5834, allocations: 86.62 kB / 0.5776 GB, free: 3.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/0.5841, allocations: 91.06 kB / 0.5777 GB, free: 3.469 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/0.5866, allocations: 0.854 MB / 0.5785 GB, free: 2.707 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.5866, allocations: 31.72 kB / 0.5785 GB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.5867, allocations: 39.7 kB / 0.5786 GB, free: 2.652 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.5879, allocations: 0.6653 MB / 0.5792 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.588, allocations: 0 / 0.5792 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.377e-05/0.588, allocations: 23.56 kB / 0.5792 GB, free: 2.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/0.5882, allocations: 60.61 kB / 0.5793 GB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.5893, allocations: 0.6241 MB / 0.5799 GB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.5934, allocations: 2.549 MB / 0.5824 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.5939, allocations: 330.3 kB / 0.5827 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.5942, allocations: 231.6 kB / 0.5829 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.5942, allocations: 4 kB / 0.5829 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.5943, allocations: 41.98 kB / 0.583 GB, free: 14.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.5943, allocations: 0 / 0.583 GB, free: 14.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=44): time 0.001995/0.5963, allocations: 1.221 MB / 0.5842 GB, free: 13.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.5964, allocations: 84.55 kB / 0.5843 GB, free: 13.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.5967, allocations: 236.7 kB / 0.5845 GB, free: 13.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.5967, allocations: 38.98 kB / 0.5845 GB, free: 13.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.5969, allocations: 246.1 kB / 0.5848 GB, free: 13.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.597, allocations: 153.2 kB / 0.5849 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.597, allocations: 10.31 kB / 0.5849 GB, free: 13.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5972, allocations: 347.6 kB / 0.5852 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.5975, allocations: 202 kB / 0.5854 GB, free: 12.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003669/0.5978, allocations: 318.2 kB / 0.5857 GB, free: 12.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.5982, allocations: 262.1 kB / 0.586 GB, free: 12.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5982, allocations: 4 kB / 0.586 GB, free: 12.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001174/0.5994, allocations: 0.6919 MB / 0.5867 GB, free: 11.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.5994, allocations: 8.062 kB / 0.5867 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008441/0.6003, allocations: 0.5216 MB / 0.5872 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.6007, allocations: 108.9 kB / 0.5873 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003113/0.6011, allocations: 79.81 kB / 0.5874 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/0.6038, allocations: 3.005 MB / 0.5903 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.6041, allocations: 27.22 kB / 0.5903 GB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.6041, allocations: 19.98 kB / 0.5903 GB, free: 7.949 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.6043, allocations: 123.9 kB / 0.5905 GB, free: 7.832 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.6044, allocations: 35.53 kB / 0.5905 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009072/0.6053, allocations: 0.522 MB / 0.591 GB, free: 7.414 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-05/0.6053, allocations: 15.19 kB / 0.591 GB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.6053, allocations: 0 / 0.591 GB, free: 7.402 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.6054, allocations: 7.938 kB / 0.591 GB, free: 7.395 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.607, allocations: 1.075 MB / 0.5921 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.6071, allocations: 8 kB / 0.5921 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004139/0.6075, allocations: 75.81 kB / 0.5922 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.6075, allocations: 4 kB / 0.5922 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.6076, allocations: 11.19 kB / 0.5922 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.6076, allocations: 4 kB / 0.5922 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6076, allocations: 3.938 kB / 0.5922 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.6087, allocations: 0.8524 MB / 0.593 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.6089, allocations: 146.7 kB / 0.5931 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/0.609, allocations: 3.312 kB / 0.5932 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.6093, allocations: 27.66 kB / 0.5932 GB, free: 5.508 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.6093, allocations: 19.64 kB / 0.5932 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.198e-05/0.6094, allocations: 11.55 kB / 0.5932 GB, free: 5.484 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002297/0.6096, allocations: 194 kB / 0.5934 GB, free: 5.328 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6096, allocations: 0 / 0.5934 GB, free: 5.328 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006744/0.6103, allocations: 130.4 kB / 0.5935 GB, free: 5.211 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 3 * 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.001645/0.6119, allocations: 1.664 MB / 0.5951 GB, free: 3.695 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.6132, allocations: 0.74 MB / 0.5959 GB, free: 3.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.6132, allocations: 0 / 0.5959 GB, free: 3.082 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.6135, allocations: 238.6 kB / 0.5961 GB, free: 2.918 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.6139, allocations: 61.38 kB / 0.5962 GB, free: 2.875 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.6158, allocations: 1.055 MB / 0.5972 GB, free: 1.898 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.6163, allocations: 0.884 MB / 0.598 GB, free: 1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003449/0.6166, allocations: 99.19 kB / 0.5981 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.6168, allocations: 146.3 kB / 0.5983 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of SimCode: time 7.61e-07/0.6168, allocations: 0 / 0.5983 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.411/2.028, allocations: 7.94 MB / 0.606 GB, free: 8.98 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/2.028, allocations: 179.9 kB / 0.6062 GB, free: 8.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/4.417, allocations: 4.062 kB / 0.6062 GB, free: 8.746 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat does not exist to compare? outputFormat=mat