Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_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.002106/0.002106, allocations: 185.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.186/2.186, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 82.72 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2808/0.2808, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.469e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4931/0.605, allocations: 99.44 MB / 0.5524 GB, free: 9.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.6053, allocations: 77.48 kB / 0.5525 GB, free: 9.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05418/0.6595, allocations: 13.08 MB / 0.5653 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.6596, allocations: 0 / 0.5653 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.245e-05/0.6596, allocations: 11.94 kB / 0.5653 GB, free: 0.5742 MB / 362.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.001651/0.6613, allocations: 0.6787 MB / 0.566 GB, free: 15.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.6613, allocations: 8.031 kB / 0.566 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008797/0.6622, allocations: 91.23 kB / 0.5661 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/0.6657, allocations: 0.8501 MB / 0.5669 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.6657, allocations: 12 kB / 0.5669 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.6659, allocations: 27.44 kB / 0.5669 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001257/0.6671, allocations: 461.2 kB / 0.5674 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.6685, allocations: 0.6064 MB / 0.568 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.6686, allocations: 0 / 0.568 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.6687, allocations: 4 kB / 0.568 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001978/0.6689, allocations: 48.73 kB / 0.568 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006652/0.6756, allocations: 2.433 MB / 0.5704 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.6764, allocations: 343.3 kB / 0.5707 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005228/0.677, allocations: 255.5 kB / 0.571 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.073e-05/0.6771, allocations: 4 kB / 0.571 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.6771, allocations: 46.44 kB / 0.571 GB, free: 11.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.847e-06/0.6771, allocations: 0 / 0.571 GB, free: 11.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.004995/0.6821, allocations: 1.557 MB / 0.5725 GB, free: 10.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.6823, allocations: 81.39 kB / 0.5726 GB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.6826, allocations: 229.3 kB / 0.5728 GB, free: 9.867 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.051e-05/0.6827, allocations: 33.72 kB / 0.5728 GB, free: 9.828 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.6829, allocations: 292.6 kB / 0.5731 GB, free: 9.574 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.6831, allocations: 159.7 kB / 0.5733 GB, free: 9.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.6832, allocations: 0 / 0.5733 GB, free: 9.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.6834, allocations: 336.6 kB / 0.5736 GB, free: 9.105 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.6839, allocations: 213.6 kB / 0.5738 GB, free: 8.965 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006545/0.6845, allocations: 362.8 kB / 0.5742 GB, free: 8.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.6859, allocations: 389.4 kB / 0.5745 GB, free: 8.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6859, allocations: 0 / 0.5745 GB, free: 8.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002356/0.6883, allocations: 0.7061 MB / 0.5752 GB, free: 7.766 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.659e-05/0.6884, allocations: 12.55 kB / 0.5752 GB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.6884, allocations: 4 kB / 0.5752 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.851e-05/0.6885, allocations: 12 kB / 0.5752 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.6898, allocations: 119.4 kB / 0.5754 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.929e-05/0.6899, allocations: 7.984 kB / 0.5754 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/0.6905, allocations: 23.97 kB / 0.5754 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.657e-05/0.6906, allocations: 19.31 kB / 0.5754 GB, free: 7.578 MB / 378.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.0001766/0.6907, allocations: 119.9 kB / 0.5755 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001934/0.6927, allocations: 0.6022 MB / 0.5761 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.6928, allocations: 31.58 kB / 0.5761 GB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.6948, allocations: 0.6436 MB / 0.5768 GB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/0.695, allocations: 24.02 kB / 0.5768 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.695, allocations: 0 / 0.5768 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.695, allocations: 3.984 kB / 0.5768 GB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003864/0.6989, allocations: 1.224 MB / 0.578 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.6989, allocations: 4 kB / 0.578 GB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.6997, allocations: 67.95 kB / 0.5781 GB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.639e-06/0.6997, allocations: 3.938 kB / 0.5781 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-05/0.6998, allocations: 11.67 kB / 0.5781 GB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.6998, allocations: 7.938 kB / 0.5781 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.6998, allocations: 0 / 0.5781 GB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.7024, allocations: 1.067 MB / 0.5791 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.7026, allocations: 111.8 kB / 0.5792 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.793e-05/0.7027, allocations: 7.953 kB / 0.5792 GB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004319/0.7031, allocations: 20 kB / 0.5793 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.7032, allocations: 27.84 kB / 0.5793 GB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.7033, allocations: 8 kB / 0.5793 GB, free: 4.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002664/0.7036, allocations: 180.6 kB / 0.5795 GB, free: 4.086 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7036, allocations: 0 / 0.5795 GB, free: 4.086 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000788/0.7044, allocations: 119.4 kB / 0.5796 GB, free: 3.973 MB / 378.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.003102/0.7075, allocations: 1.914 MB / 0.5814 GB, free: 2.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.7088, allocations: 0.5147 MB / 0.5819 GB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7088, allocations: 0 / 0.5819 GB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.7093, allocations: 254.9 kB / 0.5822 GB, free: 1.715 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006625/0.71, allocations: 62.81 kB / 0.5822 GB, free: 1.664 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.713, allocations: 1.096 MB / 0.5833 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/0.7137, allocations: 0.8761 MB / 0.5842 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.7142, allocations: 154.5 kB / 0.5843 GB, free: 15.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7142, allocations: 4 kB / 0.5843 GB, free: 15.71 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.662/3.376, allocations: 7.728 MB / 0.5919 GB, free: 8.055 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)