Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.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.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",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.002553/0.002558, 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 2.053/2.053, 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.001129/0.001129, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2627/0.2627, allocations: 38.07 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004617, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 56.34 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.6184, allocations: 96.39 MB / 0.562 GB, free: 2.977 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.6188, allocations: 96.91 kB / 0.5621 GB, free: 2.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05614/0.675, allocations: 12.53 MB / 0.5744 GB, free: 8.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.675, allocations: 0 / 0.5744 GB, free: 8.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.741e-05/0.6751, allocations: 8 kB / 0.5744 GB, free: 8.156 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001782/0.6769, allocations: 0.6715 MB / 0.575 GB, free: 7.469 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.677, allocations: 8.031 kB / 0.575 GB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001702/0.6771, allocations: 74.53 kB / 0.5751 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.6782, allocations: 95.36 kB / 0.5752 GB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00393/0.6821, allocations: 0.8754 MB / 0.576 GB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.6823, allocations: 26.62 kB / 0.5761 GB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.6824, allocations: 31.88 kB / 0.5761 GB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.6837, allocations: 473.1 kB / 0.5766 GB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.727e-05/0.6837, allocations: 3.938 kB / 0.5766 GB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.6838, allocations: 15.7 kB / 0.5766 GB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.08e-05/0.6839, allocations: 28.73 kB / 0.5766 GB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009258/0.6848, allocations: 344.2 kB / 0.5769 GB, free: 5.863 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.6887, allocations: 1.725 MB / 0.5786 GB, free: 4.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.6892, allocations: 157.1 kB / 0.5788 GB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.6892, allocations: 288 / 0.5788 GB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.6893, allocations: 34.62 kB / 0.5788 GB, free: 4.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 1.853e-06/0.6893, allocations: 0 / 0.5788 GB, free: 4.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.002459/0.6917, allocations: 0.8846 MB / 0.5797 GB, free: 3.281 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.6918, allocations: 81.11 kB / 0.5797 GB, free: 3.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.6923, allocations: 279.4 kB / 0.58 GB, free: 2.945 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.6924, allocations: 25.7 kB / 0.58 GB, free: 2.914 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.6926, allocations: 306.8 kB / 0.5803 GB, free: 2.648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.041e-05/0.6927, allocations: 60.36 kB / 0.5804 GB, free: 2.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.6927, allocations: 5.625 kB / 0.5804 GB, free: 2.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6929, allocations: 333.4 kB / 0.5807 GB, free: 2.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.6932, allocations: 95.28 kB / 0.5808 GB, free: 2.203 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.6935, allocations: 212.1 kB / 0.581 GB, free: 1.988 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.6939, allocations: 140.6 kB / 0.5811 GB, free: 1.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.6939, allocations: 0 / 0.5811 GB, free: 1.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001471/0.6954, allocations: 454.6 kB / 0.5816 GB, free: 1.551 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.6954, allocations: 4 kB / 0.5816 GB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009989/0.6965, allocations: 312.7 kB / 0.5819 GB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008392/0.6973, allocations: 135.1 kB / 0.582 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.6977, allocations: 63.03 kB / 0.5821 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/0.7021, allocations: 2.254 MB / 0.5843 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003908/0.7025, allocations: 11.3 kB / 0.5843 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.7026, allocations: 15.75 kB / 0.5843 GB, free: 15.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003764/0.703, allocations: 194.5 kB / 0.5845 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.463e-05/0.7031, allocations: 27.62 kB / 0.5845 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007237/0.7038, allocations: 261.7 kB / 0.5847 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.7038, allocations: 3.953 kB / 0.5847 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.7038, allocations: 256 / 0.5847 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.946e-06/0.7038, allocations: 4 kB / 0.5848 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.7057, allocations: 0.7493 MB / 0.5855 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.7057, allocations: 0 / 0.5855 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.7061, allocations: 31.98 kB / 0.5855 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.7063, allocations: 37.52 kB / 0.5855 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.7064, allocations: 7.438 kB / 0.5856 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.886e-06/0.7064, allocations: 4 kB / 0.5856 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.7064, allocations: 11.98 kB / 0.5856 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009592/0.7074, allocations: 467.7 kB / 0.586 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.7076, allocations: 112 kB / 0.5861 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.654e-05/0.7077, allocations: 7.203 kB / 0.5861 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.7079, allocations: 11.92 kB / 0.5861 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.708, allocations: 23.05 kB / 0.5862 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.708, allocations: 4 kB / 0.5862 GB, free: 13.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003752/0.7084, allocations: 221.1 kB / 0.5864 GB, free: 13.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7084, allocations: 0 / 0.5864 GB, free: 13.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007526/0.7092, allocations: 92.69 kB / 0.5865 GB, free: 13.08 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001525/0.7107, allocations: 1.24 MB / 0.5877 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.7119, allocations: 401.4 kB / 0.5881 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.7119, allocations: 0 / 0.5881 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003407/0.7123, allocations: 182.3 kB / 0.5882 GB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.7129, allocations: 63.44 kB / 0.5883 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006614/0.7196, allocations: 4.537 MB / 0.5927 GB, free: 6.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.7202, allocations: 0.853 MB / 0.5936 GB, free: 6.117 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/0.7205, allocations: 126.5 kB / 0.5937 GB, free: 6.082 MB / 394.7 MB Notification: Performance of SimCode: time 3.306e-06/0.7205, allocations: 0 / 0.5937 GB, free: 6.082 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.175/3.895, allocations: 7.58 MB / 0.6011 GB, free: 14.57 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)