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.001571/0.001571, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.754/1.754, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008747/0.0008746, allocations: 91.66 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1956/0.1956, allocations: 38 MB / 348 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.84e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.5907, allocations: 99.44 MB / 0.5531 GB, free: 11.36 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.591, allocations: 79.95 kB / 0.5532 GB, free: 11.28 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0383/0.6293, allocations: 13.08 MB / 0.566 GB, free: 14.07 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6294, allocations: 4 kB / 0.566 GB, free: 14.07 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.167e-05/0.6294, allocations: 8 kB / 0.566 GB, free: 14.06 MB / 411.1 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.001287/0.6307, allocations: 0.6795 MB / 0.5667 GB, free: 13.34 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/0.6308, allocations: 12.03 kB / 0.5667 GB, free: 13.32 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005043/0.6313, allocations: 87.28 kB / 0.5668 GB, free: 13.24 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.6334, allocations: 0.8486 MB / 0.5676 GB, free: 12.35 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.6334, allocations: 12 kB / 0.5676 GB, free: 12.34 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.47e-05/0.6335, allocations: 24 kB / 0.5676 GB, free: 12.31 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007625/0.6343, allocations: 465.9 kB / 0.5681 GB, free: 11.86 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008987/0.6352, allocations: 0.6013 MB / 0.5687 GB, free: 11.22 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.6352, allocations: 4 kB / 0.5687 GB, free: 11.22 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.6353, allocations: 0 / 0.5687 GB, free: 11.22 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.6354, allocations: 48.69 kB / 0.5687 GB, free: 11.17 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.6393, allocations: 2.427 MB / 0.5711 GB, free: 8.633 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.6398, allocations: 341.7 kB / 0.5714 GB, free: 8.277 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.6401, allocations: 258.4 kB / 0.5717 GB, free: 8.02 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.6402, allocations: 11.97 kB / 0.5717 GB, free: 8.008 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.6402, allocations: 46.48 kB / 0.5717 GB, free: 7.953 MB / 411.1 MB Notification: Performance of pre-optimization done (n=46): time 1.774e-06/0.6402, allocations: 0 / 0.5717 GB, free: 7.953 MB / 411.1 MB Notification: Performance of matching and sorting (n=47): time 0.002875/0.6431, allocations: 1.548 MB / 0.5732 GB, free: 6.355 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.6432, allocations: 85.38 kB / 0.5733 GB, free: 6.254 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.6435, allocations: 234.2 kB / 0.5735 GB, free: 6.023 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.6435, allocations: 25.7 kB / 0.5735 GB, free: 5.992 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.6437, allocations: 244.5 kB / 0.5738 GB, free: 5.75 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.6438, allocations: 161.6 kB / 0.5739 GB, free: 5.59 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.042e-05/0.6439, allocations: 0 / 0.5739 GB, free: 5.59 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.6441, allocations: 342.8 kB / 0.5743 GB, free: 5.246 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002949/0.6444, allocations: 217 kB / 0.5745 GB, free: 5.035 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.6448, allocations: 361.5 kB / 0.5748 GB, free: 4.621 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.6456, allocations: 384 kB / 0.5752 GB, free: 4.242 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6456, allocations: 4 kB / 0.5752 GB, free: 4.238 MB / 411.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001216/0.6468, allocations: 0.7228 MB / 0.5759 GB, free: 3.512 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.6469, allocations: 11.95 kB / 0.5759 GB, free: 3.5 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.6469, allocations: 4.594 kB / 0.5759 GB, free: 3.496 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.6469, allocations: 8 kB / 0.5759 GB, free: 3.488 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/0.6473, allocations: 123.7 kB / 0.576 GB, free: 3.367 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.6474, allocations: 7.984 kB / 0.576 GB, free: 3.359 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.6476, allocations: 31.95 kB / 0.5761 GB, free: 3.328 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.6477, allocations: 20 kB / 0.5761 GB, free: 3.309 MB / 411.1 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.00013/0.6478, allocations: 118.7 kB / 0.5762 GB, free: 3.188 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001038/0.6489, allocations: 0.5993 MB / 0.5768 GB, free: 2.582 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.755e-05/0.6489, allocations: 35.52 kB / 0.5768 GB, free: 2.547 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.6501, allocations: 0.6336 MB / 0.5774 GB, free: 1.906 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.027e-05/0.6502, allocations: 28 kB / 0.5775 GB, free: 1.879 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.6502, allocations: 8 kB / 0.5775 GB, free: 1.871 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.6502, allocations: 0 / 0.5775 GB, free: 1.871 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.6523, allocations: 1.224 MB / 0.5787 GB, free: 0.5938 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.6524, allocations: 0 / 0.5787 GB, free: 0.5938 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003809/0.6528, allocations: 75.88 kB / 0.5787 GB, free: 0.5195 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.6528, allocations: 4 kB / 0.5787 GB, free: 0.5156 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.829e-05/0.6528, allocations: 4 kB / 0.5787 GB, free: 0.5117 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.6528, allocations: 4 kB / 0.5788 GB, free: 0.5078 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.6528, allocations: 0 / 0.5788 GB, free: 0.5078 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.6543, allocations: 1.065 MB / 0.5798 GB, free: 15.39 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.23e-05/0.6544, allocations: 116.7 kB / 0.5799 GB, free: 15.25 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.652e-05/0.6545, allocations: 3.953 kB / 0.5799 GB, free: 15.25 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.6547, allocations: 23.91 kB / 0.5799 GB, free: 15.23 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.6548, allocations: 23.97 kB / 0.58 GB, free: 15.2 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.6548, allocations: 8 kB / 0.58 GB, free: 15.2 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.655, allocations: 182 kB / 0.5801 GB, free: 15.02 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.655, allocations: 4 kB / 0.5801 GB, free: 15.02 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.6555, allocations: 115.9 kB / 0.5803 GB, free: 14.9 MB / 427.1 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.002034/0.6576, allocations: 1.912 MB / 0.5821 GB, free: 12.93 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.000728/0.6583, allocations: 0.517 MB / 0.5826 GB, free: 12.41 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6584, allocations: 0 / 0.5826 GB, free: 12.41 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.6587, allocations: 251.8 kB / 0.5829 GB, free: 12.17 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.6591, allocations: 54.2 kB / 0.5829 GB, free: 12.11 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.661, allocations: 1.047 MB / 0.5839 GB, free: 11.02 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.6615, allocations: 0.8864 MB / 0.5848 GB, free: 10.1 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.6618, allocations: 127.2 kB / 0.5849 GB, free: 9.977 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.662, allocations: 147.4 kB / 0.5851 GB, free: 9.832 MB / 427.1 MB Notification: Performance of SimCode: time 2.91e-07/0.662, allocations: 3.938 kB / 0.5851 GB, free: 9.828 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.6893, allocations: 7.121 MB / 0.592 GB, free: 2.727 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.6895, allocations: 150.6 kB / 0.5922 GB, free: 2.531 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.704, allocations: 0 / 0.5922 GB, free: 2.531 MB / 427.1 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