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.00218/0.002185, allocations: 186 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.037/2.037, allocations: 205.2 MB / 218.9 MB, free: 9.223 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.001128/0.001128, allocations: 93.02 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2677/0.2677, allocations: 37.97 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.742e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4896/0.5941, allocations: 96.31 MB / 0.5562 GB, free: 7.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.5944, allocations: 91.94 kB / 0.5563 GB, free: 7.277 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05522/0.6497, allocations: 12.5 MB / 0.5685 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6497, allocations: 0 / 0.5685 GB, free: 10.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.275e-05/0.6498, allocations: 8 kB / 0.5685 GB, free: 10.62 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001347/0.6511, allocations: 0.6171 MB / 0.5691 GB, free: 9.957 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.6512, allocations: 15.97 kB / 0.5691 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.6513, allocations: 78.52 kB / 0.5692 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009668/0.6523, allocations: 87.38 kB / 0.5693 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.6558, allocations: 0.8565 MB / 0.5701 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.207e-05/0.6558, allocations: 24.77 kB / 0.5701 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.656, allocations: 39.98 kB / 0.5702 GB, free: 8.801 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.6571, allocations: 458.6 kB / 0.5706 GB, free: 8.328 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.6571, allocations: 0 / 0.5706 GB, free: 8.328 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.6572, allocations: 19.95 kB / 0.5706 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.698e-05/0.6573, allocations: 24.77 kB / 0.5706 GB, free: 8.285 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000896/0.6582, allocations: 334.9 kB / 0.571 GB, free: 7.961 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003528/0.6617, allocations: 1.736 MB / 0.5726 GB, free: 6.105 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.6622, allocations: 145.1 kB / 0.5728 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/0.6625, allocations: 109.8 kB / 0.5729 GB, free: 5.832 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.6625, allocations: 0 / 0.5729 GB, free: 5.832 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.6626, allocations: 46.48 kB / 0.5729 GB, free: 5.777 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 4.569e-06/0.6626, allocations: 0 / 0.5729 GB, free: 5.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001899/0.6645, allocations: 0.7114 MB / 0.5736 GB, free: 5.012 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.6646, allocations: 77.11 kB / 0.5737 GB, free: 4.918 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.6651, allocations: 266.7 kB / 0.574 GB, free: 4.652 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.6651, allocations: 33.7 kB / 0.574 GB, free: 4.613 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.6654, allocations: 301.8 kB / 0.5743 GB, free: 4.312 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.195e-05/0.6655, allocations: 75.08 kB / 0.5743 GB, free: 4.238 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/0.6655, allocations: 11.97 kB / 0.5744 GB, free: 4.227 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.6657, allocations: 326.8 kB / 0.5747 GB, free: 3.898 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.6659, allocations: 92.25 kB / 0.5748 GB, free: 3.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.6663, allocations: 197.3 kB / 0.5749 GB, free: 3.566 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/0.6667, allocations: 132.5 kB / 0.5751 GB, free: 3.438 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.6667, allocations: 4 kB / 0.5751 GB, free: 3.434 MB / 410.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001453/0.6681, allocations: 452.2 kB / 0.5755 GB, free: 2.984 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.6682, allocations: 4 kB / 0.5755 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001006/0.6692, allocations: 301 kB / 0.5758 GB, free: 2.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008254/0.6701, allocations: 145 kB / 0.5759 GB, free: 2.539 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.6704, allocations: 51.92 kB / 0.576 GB, free: 2.488 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.6746, allocations: 2.208 MB / 0.5781 GB, free: 152 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.675, allocations: 12 kB / 0.5782 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.675, allocations: 15.98 kB / 0.5782 GB, free: 124 kB / 410.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 () * 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.0001561/0.6752, allocations: 122.9 kB / 0.5783 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.6753, allocations: 27.72 kB / 0.5783 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007335/0.676, allocations: 269.7 kB / 0.5786 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.6761, allocations: 11.98 kB / 0.5786 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6761, allocations: 0 / 0.5786 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.6761, allocations: 0 / 0.5786 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.6779, allocations: 0.7312 MB / 0.5793 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.6779, allocations: 3.938 kB / 0.5793 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.6783, allocations: 39.91 kB / 0.5793 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/0.6785, allocations: 44.89 kB / 0.5794 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.6786, allocations: 4 kB / 0.5794 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.6786, allocations: 4 kB / 0.5794 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6786, allocations: 0 / 0.5794 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000892/0.6795, allocations: 475.2 kB / 0.5798 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.6796, allocations: 104.7 kB / 0.5799 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/0.6797, allocations: 7.953 kB / 0.5799 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.68, allocations: 12.03 kB / 0.58 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.6801, allocations: 12.05 kB / 0.58 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.6801, allocations: 12 kB / 0.58 GB, free: 14.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003465/0.6805, allocations: 218.2 kB / 0.5802 GB, free: 13.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6805, allocations: 0 / 0.5802 GB, free: 13.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006677/0.6812, allocations: 96 kB / 0.5803 GB, free: 13.81 MB / 426.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 () * 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.001436/0.6826, allocations: 1.243 MB / 0.5815 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.6837, allocations: 396.2 kB / 0.5819 GB, free: 12.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6838, allocations: 4 kB / 0.5819 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003311/0.6841, allocations: 185.9 kB / 0.5821 GB, free: 11.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.6847, allocations: 57.27 kB / 0.5821 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.6868, allocations: 0.8216 MB / 0.5829 GB, free: 10.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005941/0.6874, allocations: 0.8499 MB / 0.5837 GB, free: 10.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.6878, allocations: 131.4 kB / 0.5839 GB, free: 9.977 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6878, allocations: 0 / 0.5839 GB, free: 9.977 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.808/3.496, allocations: 7.562 MB / 0.5913 GB, free: 2.398 MB / 426.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)