Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",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.001515/0.001515, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.958/1.958, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001117/0.001117, allocations: 90.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2614/0.2614, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007093/0.0007094, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.142, allocations: 56.34 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5297/0.6718, allocations: 101.4 MB / 0.5669 GB, free: 14.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/0.6722, allocations: 92.39 kB / 0.567 GB, free: 14.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07097/0.7432, allocations: 15.12 MB / 0.5818 GB, free: 1.023 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7432, allocations: 0 / 0.5818 GB, free: 1.023 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.99e-05/0.7433, allocations: 16 kB / 0.5818 GB, free: 1.008 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002046/0.7453, allocations: 0.7309 MB / 0.5825 GB, free: 264 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.7454, allocations: 12.02 kB / 0.5825 GB, free: 252 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.7456, allocations: 88.2 kB / 0.5826 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000911/0.7465, allocations: 91.28 kB / 0.5827 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003525/0.75, allocations: 0.8624 MB / 0.5836 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.463e-05/0.7501, allocations: 22 kB / 0.5836 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.7502, allocations: 39.67 kB / 0.5836 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.7518, allocations: 0.6745 MB / 0.5843 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.7519, allocations: 7.938 kB / 0.5843 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.076e-05/0.752, allocations: 22.75 kB / 0.5843 GB, free: 14.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002569/0.7523, allocations: 56.89 kB / 0.5844 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.7538, allocations: 0.6318 MB / 0.585 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005433/0.7593, allocations: 2.561 MB / 0.5875 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008011/0.7601, allocations: 329.3 kB / 0.5878 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.454e-05/0.7602, allocations: 7.75 kB / 0.5878 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.7602, allocations: 42.48 kB / 0.5878 GB, free: 11.58 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 3.046e-06/0.7602, allocations: 0 / 0.5878 GB, free: 11.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=44): time 0.003505/0.7638, allocations: 1.653 MB / 0.5894 GB, free: 10.13 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.7639, allocations: 85.09 kB / 0.5895 GB, free: 10.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.7643, allocations: 240.2 kB / 0.5898 GB, free: 9.824 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.7643, allocations: 32.83 kB / 0.5898 GB, free: 9.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.7646, allocations: 296.6 kB / 0.5901 GB, free: 9.531 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.7647, allocations: 157.2 kB / 0.5902 GB, free: 9.395 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.7648, allocations: 9.25 kB / 0.5902 GB, free: 9.391 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.765, allocations: 335.8 kB / 0.5905 GB, free: 9.062 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004754/0.7655, allocations: 211.3 kB / 0.5908 GB, free: 8.918 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.7661, allocations: 325.6 kB / 0.5911 GB, free: 8.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006114/0.7667, allocations: 261.3 kB / 0.5913 GB, free: 8.449 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.7667, allocations: 0 / 0.5913 GB, free: 8.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001932/0.7687, allocations: 0.6857 MB / 0.592 GB, free: 7.922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.7687, allocations: 8 kB / 0.592 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001427/0.7702, allocations: 0.5231 MB / 0.5925 GB, free: 7.531 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006837/0.7709, allocations: 109.6 kB / 0.5926 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.7715, allocations: 79.25 kB / 0.5927 GB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00428/0.7758, allocations: 3.044 MB / 0.5957 GB, free: 4.293 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.7764, allocations: 31.86 kB / 0.5957 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.7765, allocations: 23.36 kB / 0.5957 GB, free: 4.246 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004331/0.7769, allocations: 204.1 kB / 0.5959 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.033e-05/0.777, allocations: 31.56 kB / 0.5959 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.7783, allocations: 0.5231 MB / 0.5964 GB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-05/0.7784, allocations: 22.73 kB / 0.5965 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.7784, allocations: 0 / 0.5965 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.7784, allocations: 4 kB / 0.5965 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0026/0.781, allocations: 1.083 MB / 0.5975 GB, free: 2.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.7811, allocations: 4 kB / 0.5975 GB, free: 2.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008062/0.7819, allocations: 75.5 kB / 0.5976 GB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.7819, allocations: 4.062 kB / 0.5976 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.782, allocations: 11.64 kB / 0.5976 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/0.782, allocations: 7.984 kB / 0.5976 GB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.782, allocations: 3.938 kB / 0.5976 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.7837, allocations: 0.8645 MB / 0.5985 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/0.7841, allocations: 144 kB / 0.5986 GB, free: 1.777 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.018e-05/0.7842, allocations: 7.688 kB / 0.5986 GB, free: 1.773 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.7846, allocations: 19.66 kB / 0.5986 GB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.7847, allocations: 23.89 kB / 0.5987 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.002e-05/0.7847, allocations: 8 kB / 0.5987 GB, free: 1.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003245/0.7851, allocations: 196.8 kB / 0.5989 GB, free: 1.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7851, allocations: 4 kB / 0.5989 GB, free: 1.566 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007892/0.7859, allocations: 134.1 kB / 0.599 GB, free: 1.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * 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.002363/0.7883, allocations: 1.67 MB / 0.6006 GB, free: 15.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.7901, allocations: 0.7501 MB / 0.6013 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.7901, allocations: 4 kB / 0.6013 GB, free: 15.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005257/0.7906, allocations: 240.6 kB / 0.6016 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.7913, allocations: 56.27 kB / 0.6016 GB, free: 15.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00773/0.799, allocations: 5.351 MB / 0.6069 GB, free: 10.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.7997, allocations: 0.8861 MB / 0.6077 GB, free: 9.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.8001, allocations: 150.3 kB / 0.6079 GB, free: 9.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8001, allocations: 0 / 0.6079 GB, free: 9.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.928/3.728, allocations: 8.912 MB / 0.6166 GB, free: 312 kB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)