Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.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.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial",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.001496/0.001496, allocations: 184.7 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001185/0.001184, allocations: 93.27 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3476/0.3476, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.333e-05/4.344e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.119, allocations: 56.32 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5233/0.6424, allocations: 100.1 MB / 0.5599 GB, free: 3.465 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.6428, allocations: 75.95 kB / 0.56 GB, free: 3.391 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06041/0.7032, allocations: 12.2 MB / 0.5719 GB, free: 7.059 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7033, allocations: 0 / 0.5719 GB, free: 7.059 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.887e-05/0.7033, allocations: 12 kB / 0.5719 GB, free: 7.047 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001805/0.7051, allocations: 0.6409 MB / 0.5725 GB, free: 6.355 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.7052, allocations: 8.031 kB / 0.5725 GB, free: 6.348 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001917/0.7054, allocations: 90.52 kB / 0.5726 GB, free: 6.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008449/0.7063, allocations: 79.39 kB / 0.5727 GB, free: 6.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003751/0.7101, allocations: 0.8451 MB / 0.5735 GB, free: 5.281 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/0.7102, allocations: 29 kB / 0.5735 GB, free: 5.254 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.7103, allocations: 40 kB / 0.5736 GB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.7119, allocations: 0.5978 MB / 0.5742 GB, free: 4.551 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.712, allocations: 4 kB / 0.5742 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.712, allocations: 16 kB / 0.5742 GB, free: 4.531 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.321e-05/0.7121, allocations: 28.7 kB / 0.5742 GB, free: 4.504 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.7134, allocations: 446.6 kB / 0.5746 GB, free: 4.066 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005558/0.719, allocations: 2.867 MB / 0.5774 GB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.7198, allocations: 225.3 kB / 0.5777 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/0.7202, allocations: 146 kB / 0.5778 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.395e-05/0.7203, allocations: 4.219 kB / 0.5778 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/0.7203, allocations: 38.5 kB / 0.5778 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 6.161e-06/0.7204, allocations: 3.984 kB / 0.5778 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.002657/0.723, allocations: 0.8779 MB / 0.5787 GB, free: 15.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.7231, allocations: 81.11 kB / 0.5788 GB, free: 15.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005586/0.7237, allocations: 286.5 kB / 0.579 GB, free: 15.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.7238, allocations: 29.7 kB / 0.5791 GB, free: 15.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.7241, allocations: 325.8 kB / 0.5794 GB, free: 14.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.7242, allocations: 106.5 kB / 0.5795 GB, free: 14.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.7243, allocations: 16.03 kB / 0.5795 GB, free: 14.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.7245, allocations: 334.8 kB / 0.5798 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.7249, allocations: 141.1 kB / 0.58 GB, free: 14.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006774/0.7256, allocations: 340.7 kB / 0.5803 GB, free: 13.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.7262, allocations: 207.8 kB / 0.5805 GB, free: 13.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.7262, allocations: 4 kB / 0.5805 GB, free: 13.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001456/0.7277, allocations: 0.5054 MB / 0.581 GB, free: 13.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.7278, allocations: 15.84 kB / 0.581 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.7278, allocations: 8 kB / 0.581 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.9e-05/0.7278, allocations: 12.03 kB / 0.581 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008293/0.7287, allocations: 111.8 kB / 0.5811 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.302e-05/0.7287, allocations: 15.98 kB / 0.5811 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.7292, allocations: 19.98 kB / 0.5811 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/0.7293, allocations: 24 kB / 0.5812 GB, free: 13 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * 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.0001613/0.7294, allocations: 136.7 kB / 0.5813 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.7295, allocations: 35.53 kB / 0.5813 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.7306, allocations: 349.5 kB / 0.5817 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.097e-05/0.7307, allocations: 11.98 kB / 0.5817 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.112e-05/0.7307, allocations: 0 / 0.5817 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.7307, allocations: 0 / 0.5817 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002377/0.7331, allocations: 0.8754 MB / 0.5825 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.7332, allocations: 4.094 kB / 0.5825 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006342/0.7338, allocations: 59.97 kB / 0.5826 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.266e-05/0.7339, allocations: 7.984 kB / 0.5826 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.7339, allocations: 8 kB / 0.5826 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.066e-05/0.7339, allocations: 15.83 kB / 0.5826 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.7339, allocations: 0 / 0.5826 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.7354, allocations: 0.6404 MB / 0.5833 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.7356, allocations: 104.6 kB / 0.5834 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.148e-05/0.7357, allocations: 12.03 kB / 0.5834 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.7361, allocations: 15.98 kB / 0.5834 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.7361, allocations: 19.92 kB / 0.5834 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-05/0.7362, allocations: 15.98 kB / 0.5834 GB, free: 10.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004196/0.7366, allocations: 222.1 kB / 0.5836 GB, free: 10.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7366, allocations: 0 / 0.5836 GB, free: 10.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007519/0.7374, allocations: 108 kB / 0.5837 GB, free: 10.23 MB / 426.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 (29): * Single equations (assignments): 27 * Array equations: 1 * 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.002145/0.7396, allocations: 1.454 MB / 0.5851 GB, free: 8.719 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.7407, allocations: 366.5 kB / 0.5855 GB, free: 8.363 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.7407, allocations: 4 kB / 0.5855 GB, free: 8.359 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004123/0.7412, allocations: 143.8 kB / 0.5856 GB, free: 8.219 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.7418, allocations: 65.48 kB / 0.5857 GB, free: 8.152 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/0.7449, allocations: 0.9633 MB / 0.5866 GB, free: 7.133 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.7457, allocations: 0.8787 MB / 0.5875 GB, free: 6.223 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000394/0.7461, allocations: 135.4 kB / 0.5876 GB, free: 6.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7461, allocations: 0 / 0.5876 GB, free: 6.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.762/3.508, allocations: 6.913 MB / 0.5944 GB, free: 15.17 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)