Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001273/0.001273, 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.565/1.565, 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.000922/0.0009221, allocations: 78.78 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.1646/0.1646, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.931e-05/3.96e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 56.32 MB / 474.1 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4783/0.593, allocations: 100.1 MB / 0.5608 GB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.5933, allocations: 80.02 kB / 0.5609 GB, free: 2.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03793/0.6313, allocations: 13.17 MB / 0.5737 GB, free: 7.266 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6313, allocations: 3.938 kB / 0.5737 GB, free: 7.262 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.004e-05/0.6314, allocations: 12 kB / 0.5738 GB, free: 7.25 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001711/0.6331, allocations: 0.6739 MB / 0.5744 GB, free: 6.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.6331, allocations: 8.031 kB / 0.5744 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000224/0.6334, allocations: 82.59 kB / 0.5745 GB, free: 6.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006509/0.634, allocations: 91.28 kB / 0.5746 GB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/0.6364, allocations: 0.8593 MB / 0.5754 GB, free: 5.629 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.6365, allocations: 27.03 kB / 0.5754 GB, free: 5.613 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.6366, allocations: 34.75 kB / 0.5755 GB, free: 5.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.6377, allocations: 0.6553 MB / 0.5761 GB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.6378, allocations: 0 / 0.5761 GB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.6378, allocations: 19.23 kB / 0.5761 GB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.638, allocations: 48.56 kB / 0.5762 GB, free: 5.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.639, allocations: 0.6271 MB / 0.5768 GB, free: 4.578 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003964/0.643, allocations: 2.437 MB / 0.5792 GB, free: 2.379 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.6436, allocations: 346.7 kB / 0.5795 GB, free: 2.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003481/0.6439, allocations: 241.2 kB / 0.5797 GB, free: 1.953 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.644, allocations: 11.94 kB / 0.5797 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.644, allocations: 42.38 kB / 0.5798 GB, free: 1.895 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 4.729e-06/0.644, allocations: 4 kB / 0.5798 GB, free: 1.891 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002216/0.6463, allocations: 1.258 MB / 0.581 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.6463, allocations: 81.39 kB / 0.5811 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.6467, allocations: 257.2 kB / 0.5813 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.6467, allocations: 29.39 kB / 0.5814 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.6469, allocations: 235 kB / 0.5816 GB, free: 308 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.6471, allocations: 173.1 kB / 0.5818 GB, free: 152 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/0.6471, allocations: 11 kB / 0.5818 GB, free: 148 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.6474, allocations: 346.9 kB / 0.5821 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.6477, allocations: 213 kB / 0.5823 GB, free: 15.67 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.6481, allocations: 356.6 kB / 0.5826 GB, free: 15.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.6486, allocations: 283.3 kB / 0.5829 GB, free: 15.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.6486, allocations: 4 kB / 0.5829 GB, free: 15.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009964/0.6496, allocations: 0.6415 MB / 0.5835 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.6496, allocations: 8 kB / 0.5836 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.6496, allocations: 4 kB / 0.5836 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/0.6497, allocations: 11.94 kB / 0.5836 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.6502, allocations: 111 kB / 0.5837 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.6502, allocations: 11.94 kB / 0.5837 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.6505, allocations: 31.03 kB / 0.5837 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.6506, allocations: 19.38 kB / 0.5837 GB, free: 14.44 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.6507, allocations: 130.6 kB / 0.5839 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.6508, allocations: 39.48 kB / 0.5839 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009619/0.6518, allocations: 0.5407 MB / 0.5844 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/0.6518, allocations: 15.06 kB / 0.5844 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6518, allocations: 0 / 0.5844 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.6518, allocations: 3.984 kB / 0.5844 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.6539, allocations: 1.175 MB / 0.5856 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6539, allocations: 0 / 0.5856 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.6543, allocations: 79.56 kB / 0.5857 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.6543, allocations: 4 kB / 0.5857 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.6544, allocations: 7.625 kB / 0.5857 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.6544, allocations: 4 kB / 0.5857 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6544, allocations: 0 / 0.5857 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.6556, allocations: 0.9482 MB / 0.5866 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.6558, allocations: 108.6 kB / 0.5867 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.6558, allocations: 15.22 kB / 0.5867 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.6561, allocations: 23.53 kB / 0.5867 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.6561, allocations: 19.97 kB / 0.5868 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/0.6562, allocations: 11 kB / 0.5868 GB, free: 11.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.6564, allocations: 198.8 kB / 0.587 GB, free: 11.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.114e-06/0.6564, allocations: 0 / 0.587 GB, free: 11.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006252/0.657, allocations: 140.3 kB / 0.5871 GB, free: 11.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 30 * 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.001706/0.6588, allocations: 1.787 MB / 0.5888 GB, free: 9.926 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008109/0.6596, allocations: 0.5175 MB / 0.5894 GB, free: 9.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.6596, allocations: 320 / 0.5894 GB, free: 9.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003256/0.6599, allocations: 249.9 kB / 0.5896 GB, free: 9.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.6604, allocations: 62.56 kB / 0.5896 GB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.6625, allocations: 1.065 MB / 0.5907 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000535/0.663, allocations: 0.8858 MB / 0.5916 GB, free: 7.461 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003947/0.6634, allocations: 131.1 kB / 0.5917 GB, free: 7.328 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.6637, allocations: 147.2 kB / 0.5918 GB, free: 7.285 MB / 394.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6637, allocations: 0 / 0.5918 GB, free: 7.285 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.6881, allocations: 7.568 MB / 0.5992 GB, free: 15.77 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.6884, allocations: 157.1 kB / 0.5994 GB, free: 15.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.925, allocations: 0 / 0.5994 GB, free: 15.55 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat does not exist to compare? outputFormat=mat