Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.0007554/0.0007556, allocations: 87.69 kB / 16.31 MB, free: 5.684 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.0008695/0.0008695, allocations: 176.5 kB / 17.21 MB, free: 5.602 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.409/1.409, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1879/0.1879, allocations: 38.09 MB / 330.4 MB, free: 8.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003115, allocations: 9.562 kB / 400.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1298, allocations: 59.16 MB / 459.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.0112/0.141, allocations: 10.03 MB / 469.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007098/0.1482, allocations: 3.808 MB / 473.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.1496, allocations: 63.56 kB / 473.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009904/0.1506, allocations: 329.8 kB / 473.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002613/0.1533, allocations: 0.9176 MB / 474.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.1548, allocations: 467.2 kB / 474.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002984/0.1578, allocations: 2.182 MB / 477.1 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002353/0.1602, allocations: 1.318 MB / 478.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.1615, allocations: 0.6067 MB / 479 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.163, allocations: 0.8762 MB / 479.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.1631, allocations: 52 kB / 480 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009532/0.1641, allocations: 423.2 kB / 480.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000578/0.1646, allocations: 0.5922 MB / 481 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.165, allocations: 265 kB / 481.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.1668, allocations: 1.426 MB / 482.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.1668, allocations: 0 / 482.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1668, allocations: 0 / 482.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.1668, allocations: 0 / 482.7 MB, free: 15.88 MB / 366.1 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.002907/0.1697, allocations: 1.395 MB / 484 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.1698, allocations: 11.97 kB / 484.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002215/0.17, allocations: 181.4 kB / 484.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0015/0.1715, allocations: 274 kB / 484.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.1734, allocations: 0.882 MB / 485.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.007e-05/0.1735, allocations: 82.09 kB / 485.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000355/0.1739, allocations: 143.8 kB / 485.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.1764, allocations: 1.478 MB / 487.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/0.1765, allocations: 7.938 kB / 487.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.1766, allocations: 47.98 kB / 487.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002871/0.1769, allocations: 102.1 kB / 487.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.1789, allocations: 1.246 MB / 488.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00862/0.1875, allocations: 5.672 MB / 494.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009424/0.1885, allocations: 0.586 MB / 494.7 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005734/0.1891, allocations: 395.3 kB / 495.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.018e-05/0.1892, allocations: 16.55 kB / 495.1 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.1893, allocations: 51.06 kB / 495.2 MB, free: 2.766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.705e-06/0.1893, allocations: 0 / 495.2 MB, free: 2.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.00772/0.197, allocations: 3.634 MB / 498.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.781e-05/0.1971, allocations: 89.75 kB / 498.9 MB, free: 14.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009365/0.198, allocations: 0.7234 MB / 499.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.1981, allocations: 41.64 kB / 499.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004454/0.1986, allocations: 0.588 MB / 0.4885 GB, free: 13.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.1988, allocations: 268.2 kB / 0.4888 GB, free: 13.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.1988, allocations: 20 kB / 0.4888 GB, free: 13.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.1991, allocations: 406.8 kB / 0.4892 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006104/0.1997, allocations: 389.8 kB / 0.4896 GB, free: 12.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008202/0.2005, allocations: 0.6574 MB / 0.4902 GB, free: 11.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007928/0.2013, allocations: 0.4948 MB / 0.4907 GB, free: 11.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2013, allocations: 4 kB / 0.4907 GB, free: 11.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003206/0.2045, allocations: 1.709 MB / 0.4924 GB, free: 9.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.2046, allocations: 8 kB / 0.4924 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002432/0.207, allocations: 1.307 MB / 0.4937 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00177/0.2088, allocations: 0.5692 MB / 0.4942 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006342/0.2095, allocations: 179.7 kB / 0.4944 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2889/0.4983, allocations: 9.423 MB / 0.5036 GB, free: 52.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008606/0.4992, allocations: 54.48 kB / 0.5036 GB, free: 52.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/0.4993, allocations: 48.81 kB / 0.5037 GB, free: 52.47 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * 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%) 4,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0007341/0.5, allocations: 379.7 kB / 0.504 GB, free: 52.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.5002, allocations: 88.39 kB / 0.5041 GB, free: 52.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.5025, allocations: 1.253 MB / 0.5054 GB, free: 52.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.5026, allocations: 7.281 kB / 0.5054 GB, free: 52.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.5026, allocations: 3.781 kB / 0.5054 GB, free: 52.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.5026, allocations: 5.312 kB / 0.5054 GB, free: 52.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/0.507, allocations: 2.396 MB / 0.5077 GB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.507, allocations: 7.938 kB / 0.5077 GB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004703/0.5075, allocations: 105.7 kB / 0.5078 GB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001097/0.5086, allocations: 379.5 kB / 0.5082 GB, free: 51.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.5087, allocations: 23.23 kB / 0.5082 GB, free: 51.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007248/0.5159, allocations: 8.492 MB / 0.5165 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.516, allocations: 2.25 kB / 0.5165 GB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/0.519, allocations: 1.673 MB / 0.5181 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000456/0.5195, allocations: 231.7 kB / 0.5184 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/0.5197, allocations: 23.28 kB / 0.5184 GB, free: 43.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.5201, allocations: 24.59 kB / 0.5184 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.5203, allocations: 75.72 kB / 0.5185 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.174e-05/0.5203, allocations: 22.34 kB / 0.5185 GB, free: 43.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009034/0.5212, allocations: 0.4967 MB / 0.519 GB, free: 42.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5212, allocations: 0 / 0.519 GB, free: 42.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001823/0.5231, allocations: 367.3 kB / 0.5193 GB, free: 42.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * 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.00326/0.5263, allocations: 2.27 MB / 0.5215 GB, free: 41.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002658/0.529, allocations: 1.575 MB / 0.5231 GB, free: 40.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.529, allocations: 1.5 kB / 0.5231 GB, free: 40.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00164/0.5307, allocations: 1.081 MB / 0.5241 GB, free: 40 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.5319, allocations: 199.2 kB / 0.5243 GB, free: 39.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.5426, allocations: 7.671 MB / 0.5318 GB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/0.5435, allocations: 1.257 MB / 0.533 GB, free: 34.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000746/0.5443, allocations: 217.4 kB / 0.5333 GB, free: 34.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.5448, allocations: 445.2 kB / 0.5337 GB, free: 34.4 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5448, allocations: 3.938 kB / 0.5337 GB, free: 34.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/0.5811, allocations: 23.58 MB / 0.5567 GB, free: 12 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/0.5813, allocations: 244.6 kB / 0.5569 GB, free: 11.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/3.014, allocations: 0 / 0.5569 GB, free: 11.75 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat does not exist to compare? outputFormat=mat