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.00239/0.002391, allocations: 184.9 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.348/2.348, 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.001604/0.001603, allocations: 97 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2849/0.2849, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.632e-05/3.643e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 56.32 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.5996, allocations: 100.1 MB / 0.5599 GB, free: 3.453 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.5999, allocations: 75.97 kB / 0.56 GB, free: 3.379 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06506/0.665, allocations: 13.18 MB / 0.5728 GB, free: 6.074 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.665, allocations: 4 kB / 0.5728 GB, free: 6.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.376e-05/0.6651, allocations: 12 kB / 0.5728 GB, free: 6.059 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00203/0.6671, allocations: 0.6678 MB / 0.5735 GB, free: 5.344 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.6672, allocations: 12.03 kB / 0.5735 GB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002567/0.6675, allocations: 86.5 kB / 0.5736 GB, free: 5.238 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009083/0.6684, allocations: 91.3 kB / 0.5737 GB, free: 5.148 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.6722, allocations: 0.8525 MB / 0.5745 GB, free: 4.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.6723, allocations: 32.77 kB / 0.5745 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.6725, allocations: 36 kB / 0.5746 GB, free: 4.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.6742, allocations: 0.6514 MB / 0.5752 GB, free: 3.492 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.6743, allocations: 4 kB / 0.5752 GB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.6744, allocations: 16 kB / 0.5752 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002149/0.6746, allocations: 44.75 kB / 0.5753 GB, free: 3.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.6764, allocations: 0.6279 MB / 0.5759 GB, free: 2.805 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006321/0.6828, allocations: 2.44 MB / 0.5783 GB, free: 248 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009896/0.6838, allocations: 345.7 kB / 0.5786 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/0.6845, allocations: 250 kB / 0.5788 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-05/0.6845, allocations: 11.94 kB / 0.5788 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.6846, allocations: 42.5 kB / 0.5789 GB, free: 15.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=46): time 3.798e-06/0.6846, allocations: 4 kB / 0.5789 GB, free: 15.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.003287/0.6879, allocations: 1.251 MB / 0.5801 GB, free: 14.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.386e-05/0.6881, allocations: 81.39 kB / 0.5802 GB, free: 14.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.6885, allocations: 259.3 kB / 0.5804 GB, free: 13.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.6886, allocations: 33.7 kB / 0.5805 GB, free: 13.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.6888, allocations: 290.3 kB / 0.5807 GB, free: 13.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.6891, allocations: 169.6 kB / 0.5809 GB, free: 13.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/0.6891, allocations: 12 kB / 0.5809 GB, free: 13.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6893, allocations: 330.8 kB / 0.5812 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005469/0.6899, allocations: 209 kB / 0.5814 GB, free: 12.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007154/0.6906, allocations: 354.6 kB / 0.5818 GB, free: 12.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007165/0.6913, allocations: 289 kB / 0.582 GB, free: 12.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.6913, allocations: 0 / 0.582 GB, free: 12.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001603/0.693, allocations: 0.6335 MB / 0.5827 GB, free: 11.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.961e-05/0.693, allocations: 11.91 kB / 0.5827 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.6931, allocations: 4 kB / 0.5827 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.227e-05/0.6931, allocations: 8 kB / 0.5827 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009077/0.694, allocations: 115.8 kB / 0.5828 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.6941, allocations: 7.938 kB / 0.5828 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/0.6946, allocations: 35.97 kB / 0.5828 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.787e-05/0.6947, allocations: 20 kB / 0.5829 GB, free: 11.34 MB / 426.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.0001882/0.6949, allocations: 129 kB / 0.583 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.6951, allocations: 39.48 kB / 0.583 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.6966, allocations: 0.529 MB / 0.5835 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.786e-05/0.6967, allocations: 16 kB / 0.5835 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.6967, allocations: 3.984 kB / 0.5835 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.6967, allocations: 0 / 0.5835 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.7, allocations: 1.18 MB / 0.5847 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.7001, allocations: 0 / 0.5847 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000791/0.7009, allocations: 75.88 kB / 0.5848 GB, free: 9.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.378e-05/0.7009, allocations: 4 kB / 0.5848 GB, free: 9.289 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/0.701, allocations: 8 kB / 0.5848 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.701, allocations: 0 / 0.5848 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.701, allocations: 4 kB / 0.5848 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.7032, allocations: 0.9516 MB / 0.5857 GB, free: 8.273 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.7035, allocations: 120.6 kB / 0.5858 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/0.7036, allocations: 8 kB / 0.5858 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004319/0.7041, allocations: 23.91 kB / 0.5859 GB, free: 8.105 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.7041, allocations: 19.97 kB / 0.5859 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.105e-05/0.7042, allocations: 12 kB / 0.5859 GB, free: 8.074 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000362/0.7046, allocations: 202.2 kB / 0.5861 GB, free: 7.875 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7046, allocations: 0 / 0.5861 GB, free: 7.875 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007723/0.7054, allocations: 131.9 kB / 0.5862 GB, free: 7.746 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 (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.002776/0.7082, allocations: 1.795 MB / 0.588 GB, free: 5.898 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.7096, allocations: 0.5111 MB / 0.5885 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/0.7097, allocations: 320 / 0.5885 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006121/0.7103, allocations: 247.8 kB / 0.5887 GB, free: 5.145 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007052/0.711, allocations: 68.67 kB / 0.5888 GB, free: 5.078 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.7143, allocations: 1.11 MB / 0.5899 GB, free: 3.914 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00071/0.7151, allocations: 0.891 MB / 0.5907 GB, free: 2.992 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.7156, allocations: 147.4 kB / 0.5909 GB, free: 2.848 MB / 426.7 MB Notification: Performance of SimCode: time 1.333e-06/0.7156, allocations: 0 / 0.5909 GB, free: 2.848 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.784/3.5, allocations: 7.689 MB / 0.5984 GB, free: 11.15 MB / 442.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)