Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 98.89 kB / 16.31 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 188.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3152/0.3152, allocations: 38.06 MB / 309.7 MB, free: 8.855 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005735/0.0005739, allocations: 12 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1097, allocations: 56.33 MB / 432.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008764/0.1185, allocations: 7.469 MB / 440.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005737/0.1243, allocations: 3.169 MB / 443.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007115/0.1251, allocations: 47.69 kB / 443.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.1256, allocations: 214.6 kB / 443.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00168/0.1273, allocations: 0.588 MB / 444.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009634/0.1283, allocations: 343.3 kB / 444.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.1293, allocations: 0.7299 MB / 445.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.1308, allocations: 0.9129 MB / 446.4 MB, free: 9.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000549/0.1313, allocations: 398.6 kB / 446.8 MB, free: 8.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005445/0.1319, allocations: 406.6 kB / 447.2 MB, free: 8.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.132, allocations: 39.94 kB / 447.2 MB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006328/0.1326, allocations: 359.4 kB / 447.6 MB, free: 7.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003477/0.133, allocations: 375.1 kB / 447.9 MB, free: 7.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1332, allocations: 209.1 kB / 448.1 MB, free: 7.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.1343, allocations: 1.052 MB / 449.2 MB, free: 6.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1343, allocations: 0 / 449.2 MB, free: 6.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1343, allocations: 0 / 449.2 MB, free: 6.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1343, allocations: 0 / 449.2 MB, free: 6.262 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001912/0.1362, allocations: 1.117 MB / 450.3 MB, free: 5.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1363, allocations: 8.031 kB / 450.3 MB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.1364, allocations: 135.5 kB / 450.4 MB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.1376, allocations: 230.5 kB / 450.7 MB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.1391, allocations: 0.6931 MB / 451.4 MB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.619e-05/0.1391, allocations: 66 kB / 451.4 MB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.1393, allocations: 99.81 kB / 451.5 MB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1408, allocations: 1.076 MB / 452.6 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.1409, allocations: 0 / 452.6 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.206e-05/0.141, allocations: 35.98 kB / 452.6 MB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000162/0.1411, allocations: 73.95 kB / 452.7 MB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.1424, allocations: 0.8548 MB / 453.6 MB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1892/0.3316, allocations: 4.001 MB / 457.6 MB, free: 48.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.3322, allocations: 436.4 kB / 458 MB, free: 48.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.3322, allocations: 10.19 kB / 458 MB, free: 48.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.3322, allocations: 41.41 kB / 458 MB, free: 48.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.3323, allocations: 0 / 458 MB, free: 48.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=51): time 0.002358/0.3346, allocations: 1.717 MB / 459.7 MB, free: 47.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.3347, allocations: 88.48 kB / 459.8 MB, free: 47.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004749/0.3351, allocations: 0.5831 MB / 460.4 MB, free: 47.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.3352, allocations: 36.95 kB / 460.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.3354, allocations: 467 kB / 460.9 MB, free: 47.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.806e-05/0.3355, allocations: 187.2 kB / 461.1 MB, free: 47.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.3355, allocations: 21.39 kB / 461.1 MB, free: 47.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.717e-05/0.3356, allocations: 380.1 kB / 461.5 MB, free: 46.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.3359, allocations: 250.4 kB / 461.7 MB, free: 46.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.3363, allocations: 465.4 kB / 462.2 MB, free: 46.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.3368, allocations: 348.4 kB / 462.5 MB, free: 46.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3368, allocations: 0 / 462.5 MB, free: 46.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001529/0.3383, allocations: 1.102 MB / 463.6 MB, free: 46.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3383, allocations: 9.562 kB / 463.6 MB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001184/0.3395, allocations: 0.7964 MB / 464.4 MB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.3402, allocations: 220.6 kB / 464.6 MB, free: 46.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004636/0.3406, allocations: 155.4 kB / 464.8 MB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003842/0.3445, allocations: 5.331 MB / 470.1 MB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.3449, allocations: 42.31 kB / 470.2 MB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.345, allocations: 27.84 kB / 470.2 MB, free: 42.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * 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: 3 * 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: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003232/0.3453, allocations: 301.9 kB / 470.5 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.187e-05/0.3454, allocations: 67.75 kB / 470.6 MB, free: 41.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000758/0.3462, allocations: 0.6142 MB / 471.2 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3462, allocations: 6.562 kB / 471.2 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.3462, allocations: 0 / 471.2 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3462, allocations: 11.14 kB / 471.2 MB, free: 41.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.3481, allocations: 1.481 MB / 472.7 MB, free: 40.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3481, allocations: 3.062 kB / 472.7 MB, free: 40.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005478/0.3486, allocations: 132.2 kB / 472.8 MB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.3487, allocations: 8.141 kB / 472.8 MB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.3487, allocations: 15.47 kB / 472.8 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3487, allocations: 3.156 kB / 472.8 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3487, allocations: 0 / 472.8 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009244/0.3496, allocations: 1.003 MB / 473.8 MB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.3499, allocations: 183.9 kB / 474 MB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.35, allocations: 20.89 kB / 474 MB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/0.3503, allocations: 24.2 kB / 474.1 MB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.3503, allocations: 27.66 kB / 474.1 MB, free: 40.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.3503, allocations: 16.92 kB / 474.1 MB, free: 40.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003448/0.3507, allocations: 423.9 kB / 474.5 MB, free: 39.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3507, allocations: 0 / 474.5 MB, free: 39.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006942/0.3514, allocations: 231.8 kB / 474.7 MB, free: 39.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001292/0.3527, allocations: 1.993 MB / 476.7 MB, free: 38.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3539, allocations: 1.017 MB / 477.8 MB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.354, allocations: 0 / 477.8 MB, free: 37.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3542, allocations: 257 kB / 478 MB, free: 37.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005685/0.3548, allocations: 134.8 kB / 478.1 MB, free: 37.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007349/0.3622, allocations: 10.05 MB / 488.2 MB, free: 30.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.3628, allocations: 1.095 MB / 489.3 MB, free: 29.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005178/0.3634, allocations: 194.2 kB / 489.5 MB, free: 29.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003461/0.3637, allocations: 331.3 kB / 489.8 MB, free: 29.19 MB / 382.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3637, allocations: 0 / 489.8 MB, free: 29.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0344/0.3981, allocations: 15.76 MB / 0.4937 GB, free: 27.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.3983, allocations: 215.6 kB / 0.4939 GB, free: 27.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.515, allocations: 1.031 kB / 0.4939 GB, free: 27.49 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) Environment - environmentSimulation: