Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.002124/0.002124, allocations: 185.5 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 1.938/1.938, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001191/0.00119, allocations: 80.53 kB / 267.1 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3271/0.3271, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.558e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 56.31 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5004/0.6041, allocations: 116.9 MB / 0.5763 GB, free: 2.688 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003534/0.6045, allocations: 91.94 kB / 0.5763 GB, free: 2.598 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1741/0.7786, allocations: 38.08 MB / 0.6135 GB, free: 12.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.7787, allocations: 0 / 0.6135 GB, free: 12.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001043/0.7788, allocations: 32 kB / 0.6136 GB, free: 12.02 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004667/0.7835, allocations: 1.288 MB / 0.6148 GB, free: 10.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.7836, allocations: 8.031 kB / 0.6148 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000585/0.7842, allocations: 177.4 kB / 0.615 GB, free: 10.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/0.787, allocations: 258.1 kB / 0.6152 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006655/0.7937, allocations: 1.549 MB / 0.6167 GB, free: 8.637 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.7939, allocations: 86.09 kB / 0.6168 GB, free: 8.551 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004169/0.7943, allocations: 115.9 kB / 0.6169 GB, free: 8.438 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003866/0.7982, allocations: 1.444 MB / 0.6184 GB, free: 6.922 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/0.7983, allocations: 8 kB / 0.6184 GB, free: 6.914 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.7985, allocations: 43.97 kB / 0.6184 GB, free: 6.871 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002573/0.7988, allocations: 86.19 kB / 0.6185 GB, free: 6.785 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.8023, allocations: 1.203 MB / 0.6197 GB, free: 5.574 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01365/0.816, allocations: 5.667 MB / 0.6252 GB, free: 15.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.8176, allocations: 0.5861 MB / 0.6258 GB, free: 14.96 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009368/0.8186, allocations: 383.3 kB / 0.6261 GB, free: 14.59 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.8e-05/0.8187, allocations: 12.56 kB / 0.6261 GB, free: 14.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.8187, allocations: 39.12 kB / 0.6262 GB, free: 14.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=67): time 2.996e-06/0.8188, allocations: 4 kB / 0.6262 GB, free: 14.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=74): time 0.00999/0.8288, allocations: 2.797 MB / 0.6289 GB, free: 11.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.8289, allocations: 85.89 kB / 0.629 GB, free: 11.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.8302, allocations: 0.6369 MB / 0.6296 GB, free: 10.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.8304, allocations: 41.7 kB / 0.6297 GB, free: 10.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005788/0.8309, allocations: 0.5943 MB / 0.6302 GB, free: 10.26 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003681/0.8313, allocations: 280.1 kB / 0.6305 GB, free: 9.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.927e-05/0.8314, allocations: 20 kB / 0.6305 GB, free: 9.961 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.8316, allocations: 350.8 kB / 0.6309 GB, free: 9.609 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.8327, allocations: 377.9 kB / 0.6312 GB, free: 9.238 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.8339, allocations: 0.642 MB / 0.6318 GB, free: 8.473 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.8353, allocations: 0.4939 MB / 0.6323 GB, free: 7.977 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.8353, allocations: 7.953 kB / 0.6323 GB, free: 7.969 MB / 474.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005521/0.8408, allocations: 1.623 MB / 0.6339 GB, free: 6.328 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.532e-05/0.8409, allocations: 8 kB / 0.6339 GB, free: 6.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00462/0.8455, allocations: 1.273 MB / 0.6352 GB, free: 5.031 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003466/0.849, allocations: 0.5808 MB / 0.6357 GB, free: 4.438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.8503, allocations: 167.7 kB / 0.6359 GB, free: 4.273 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3721/1.222, allocations: 9.376 MB / 0.6451 GB, free: 122.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/1.224, allocations: 47.56 kB / 0.6451 GB, free: 122.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/1.224, allocations: 46.06 kB / 0.6451 GB, free: 122.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (94): * Single equations (assignments): 90 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002644/1.224, allocations: 163.8 kB / 0.6453 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/1.224, allocations: 89.42 kB / 0.6454 GB, free: 122.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/1.228, allocations: 1.23 MB / 0.6466 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.889e-05/1.228, allocations: 7.688 kB / 0.6466 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/1.228, allocations: 3.281 kB / 0.6466 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/1.228, allocations: 8.828 kB / 0.6466 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007626/1.236, allocations: 2.377 MB / 0.6489 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/1.236, allocations: 2.5 kB / 0.6489 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/1.237, allocations: 105.5 kB / 0.649 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/1.239, allocations: 378.1 kB / 0.6494 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/1.239, allocations: 28.22 kB / 0.6494 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/1.25, allocations: 8.483 MB / 0.6577 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.25, allocations: 8 kB / 0.6577 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004758/1.255, allocations: 1.736 MB / 0.6594 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00083/1.256, allocations: 228.7 kB / 0.6596 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/1.256, allocations: 26.23 kB / 0.6596 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008866/1.257, allocations: 22.8 kB / 0.6597 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/1.257, allocations: 67.09 kB / 0.6597 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.342e-05/1.257, allocations: 29.89 kB / 0.6598 GB, free: 114.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001079/1.258, allocations: 499.3 kB / 0.6602 GB, free: 114.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.258, allocations: 0 / 0.6602 GB, free: 114.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00236/1.261, allocations: 358.2 kB / 0.6606 GB, free: 114.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005317/1.266, allocations: 2.933 MB / 0.6634 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004044/1.27, allocations: 1.541 MB / 0.6649 GB, free: 112.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/1.27, allocations: 0 / 0.6649 GB, free: 112.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002723/1.273, allocations: 1.069 MB / 0.666 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/1.275, allocations: 185.5 kB / 0.6662 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/1.283, allocations: 2.597 MB / 0.6687 GB, free: 111.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/1.284, allocations: 1.285 MB / 0.67 GB, free: 110.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008913/1.285, allocations: 447.1 kB / 0.6704 GB, free: 110.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.783e-06/1.285, allocations: 0 / 0.6704 GB, free: 110.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.385/4.67, allocations: 36.99 MB / 0.7065 GB, free: 102.2 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)