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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001119/0.001119, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001319/0.001319, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1778/0.1778, allocations: 38.03 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 61.05 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09585, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007951/0.1038, allocations: 7.515 MB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004021/0.1079, allocations: 2.972 MB / 467.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.1082, allocations: 23.88 kB / 467.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.1099, allocations: 0.7389 MB / 468.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001316/0.1112, allocations: 0.6998 MB / 468.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007473/0.1119, allocations: 379.1 kB / 469.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.1132, allocations: 1.337 MB / 470.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007676/0.114, allocations: 0.7169 MB / 471.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005374/0.1146, allocations: 0.5526 MB / 471.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007226/0.1153, allocations: 0.6306 MB / 472.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1154, allocations: 72 kB / 472.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.1161, allocations: 479.2 kB / 473.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003494/0.1165, allocations: 450.9 kB / 473.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004314/0.1169, allocations: 0.5092 MB / 474 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.1181, allocations: 1.402 MB / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1181, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1181, allocations: 3.938 kB / 475.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1181, allocations: 0 / 475.4 MB, free: 5.438 MB / 350.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.0019/0.12, allocations: 1.284 MB / 476.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.1201, allocations: 11.89 kB / 476.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.1202, allocations: 139.6 kB / 476.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.1213, allocations: 207.5 kB / 477 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.1225, allocations: 0.7098 MB / 477.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/0.1225, allocations: 62.12 kB / 477.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/0.1228, allocations: 95.97 kB / 477.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1241, allocations: 1.103 MB / 479 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.1242, allocations: 0 / 479 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.975e-05/0.1243, allocations: 35.98 kB / 479 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.1244, allocations: 69.97 kB / 479.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1256, allocations: 0.8704 MB / 480 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.1301, allocations: 4.008 MB / 484 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.1307, allocations: 443 kB / 484.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003442/0.131, allocations: 285.4 kB / 484.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.1311, allocations: 8.422 kB / 484.7 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.1311, allocations: 46.94 kB / 484.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.583e-06/0.1311, allocations: 0 / 484.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002553/0.1337, allocations: 1.709 MB / 486.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.1337, allocations: 85.48 kB / 486.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.1343, allocations: 0.5978 MB / 487.2 MB, free: 9.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.1344, allocations: 33.7 kB / 487.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1346, allocations: 466.5 kB / 487.6 MB, free: 8.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.1348, allocations: 189.3 kB / 487.8 MB, free: 8.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.135, allocations: 138.6 kB / 488 MB, free: 8.391 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1351, allocations: 378.8 kB / 488.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.1355, allocations: 249.8 kB / 488.6 MB, free: 7.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.1359, allocations: 480.9 kB / 489 MB, free: 7.203 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008763/0.1368, allocations: 0.7703 MB / 489.8 MB, free: 6.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1368, allocations: 4 kB / 489.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00175/0.1386, allocations: 1.114 MB / 490.9 MB, free: 5.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1386, allocations: 8 kB / 490.9 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001231/0.1398, allocations: 0.7959 MB / 491.7 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006355/0.1405, allocations: 218.3 kB / 491.9 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.141, allocations: 163.7 kB / 492.1 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/0.1461, allocations: 5.661 MB / 497.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004573/0.1465, allocations: 40.03 kB / 497.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.1466, allocations: 32 kB / 497.8 MB, free: 13.8 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004112/0.147, allocations: 301.5 kB / 498.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.1471, allocations: 71.16 kB / 498.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.1481, allocations: 0.6084 MB / 498.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1482, allocations: 11.98 kB / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1482, allocations: 0 / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.1482, allocations: 288 / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.1508, allocations: 1.486 MB / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.1509, allocations: 4 kB / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000577/0.1514, allocations: 127.7 kB / 0.4887 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.1515, allocations: 7.938 kB / 0.4887 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-05/0.1515, allocations: 16 kB / 0.4887 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1515, allocations: 8.141 kB / 0.4887 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.1516, allocations: 4 kB / 0.4887 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.1527, allocations: 0.9271 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.153, allocations: 188.1 kB / 0.4898 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.439e-05/0.1531, allocations: 19.94 kB / 0.4898 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.1534, allocations: 15.98 kB / 0.4899 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.39e-05/0.1535, allocations: 32.39 kB / 0.4899 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.1535, allocations: 19.94 kB / 0.4899 GB, free: 9.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005075/0.154, allocations: 423 kB / 0.4903 GB, free: 9.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.154, allocations: 0 / 0.4903 GB, free: 9.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007946/0.1548, allocations: 236 kB / 0.4905 GB, free: 9.188 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001647/0.1565, allocations: 1.507 MB / 0.492 GB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.1585, allocations: 1.17 MB / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.1585, allocations: 320 / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003969/0.1589, allocations: 266.3 kB / 0.4934 GB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009562/0.1599, allocations: 158.1 kB / 0.4936 GB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.1723, allocations: 7.489 MB / 0.5009 GB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008424/0.1732, allocations: 1.079 MB / 0.5019 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005918/0.1738, allocations: 193.8 kB / 0.5021 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.1743, allocations: 323.3 kB / 0.5024 GB, free: 12.56 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1743, allocations: 0 / 0.5024 GB, free: 12.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2159/0.3902, allocations: 16.44 MB / 0.5185 GB, free: 71.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.26, allocations: 5.203 kB / 0.5185 GB, free: 71.38 MB / 398.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/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)