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.001052/0.001052, allocations: 105 kB / 17.06 MB, free: 6.023 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.001099/0.001099, allocations: 195 kB / 18 MB, free: 5.109 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.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1882/0.1882, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001583, allocations: 59.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3915, allocations: 58.06 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009228/0.4008, allocations: 9.559 MB / 0.513 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.407, allocations: 3.558 MB / 0.5164 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006961/0.4077, allocations: 29.88 kB / 0.5165 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002902/0.4107, allocations: 1.105 MB / 0.5175 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00277/0.4135, allocations: 0.8879 MB / 0.5184 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.415, allocations: 487.4 kB / 0.5189 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.4179, allocations: 1.803 MB / 0.5206 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.4193, allocations: 0.9728 MB / 0.5216 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.4208, allocations: 0.7785 MB / 0.5223 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.4223, allocations: 0.8989 MB / 0.5232 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001816/0.4225, allocations: 105.5 kB / 0.5233 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.4237, allocations: 0.534 MB / 0.5238 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007264/0.4244, allocations: 0.6355 MB / 0.5245 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008196/0.4252, allocations: 0.703 MB / 0.5251 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002525/0.4278, allocations: 1.913 MB / 0.527 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4278, allocations: 0 / 0.527 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4278, allocations: 0 / 0.527 GB, free: 9.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.4278, allocations: 1.188 kB / 0.527 GB, free: 9.539 MB / 398.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.003181/0.431, allocations: 1.626 MB / 0.5286 GB, free: 8.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4311, allocations: 13.98 kB / 0.5286 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002412/0.4313, allocations: 174.4 kB / 0.5288 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.433, allocations: 273.8 kB / 0.529 GB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.435, allocations: 0.9445 MB / 0.53 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.078e-05/0.4351, allocations: 80.81 kB / 0.53 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003602/0.4355, allocations: 139 kB / 0.5302 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/0.438, allocations: 1.488 MB / 0.5316 GB, free: 6.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/0.4381, allocations: 11.97 kB / 0.5316 GB, free: 6.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.4382, allocations: 41.5 kB / 0.5317 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003051/0.4385, allocations: 103 kB / 0.5318 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.4405, allocations: 1.254 MB / 0.533 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00803/0.4485, allocations: 5.629 MB / 0.5385 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009414/0.4495, allocations: 0.5964 MB / 0.5391 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005843/0.4501, allocations: 396.7 kB / 0.5395 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.4502, allocations: 12.25 kB / 0.5395 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.4502, allocations: 42.41 kB / 0.5395 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.106e-06/0.4502, allocations: 0 / 0.5395 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007499/0.4577, allocations: 3.629 MB / 0.5431 GB, free: 14.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.4578, allocations: 93.11 kB / 0.5431 GB, free: 14.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009459/0.4588, allocations: 0.7325 MB / 0.5439 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/0.4588, allocations: 44.77 kB / 0.5439 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/0.4592, allocations: 0.5849 MB / 0.5445 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.4595, allocations: 270.7 kB / 0.5447 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.4598, allocations: 182.2 kB / 0.5449 GB, free: 13.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.46, allocations: 407.1 kB / 0.5453 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000627/0.4606, allocations: 387.7 kB / 0.5457 GB, free: 12.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008287/0.4615, allocations: 0.6624 MB / 0.5463 GB, free: 12.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.4629, allocations: 1.144 MB / 0.5474 GB, free: 10.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.4629, allocations: 3.938 kB / 0.5474 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003232/0.4662, allocations: 1.713 MB / 0.5491 GB, free: 9.027 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.4662, allocations: 8 kB / 0.5491 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002585/0.4688, allocations: 1.317 MB / 0.5504 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001807/0.4706, allocations: 0.5832 MB / 0.551 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006223/0.4713, allocations: 171.7 kB / 0.5511 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/0.4842, allocations: 10.36 MB / 0.5613 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.4854, allocations: 47.95 kB / 0.5613 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/0.4855, allocations: 40 kB / 0.5613 GB, free: 11.91 MB / 430.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.001004/0.4865, allocations: 377.4 kB / 0.5617 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.4867, allocations: 90.88 kB / 0.5618 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/0.4891, allocations: 1.248 MB / 0.563 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.4892, allocations: 12 kB / 0.563 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4892, allocations: 4 kB / 0.563 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.4892, allocations: 3.984 kB / 0.563 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004843/0.494, allocations: 2.401 MB / 0.5654 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.4941, allocations: 4 kB / 0.5654 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.4945, allocations: 104.1 kB / 0.5655 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.4956, allocations: 383.7 kB / 0.5658 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.351e-05/0.4957, allocations: 27.98 kB / 0.5659 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008869/0.5046, allocations: 9.286 MB / 0.5749 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5046, allocations: 0 / 0.5749 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003093/0.5077, allocations: 1.682 MB / 0.5766 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004955/0.5082, allocations: 231.8 kB / 0.5768 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.5084, allocations: 31.92 kB / 0.5768 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.5089, allocations: 23.92 kB / 0.5768 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.509, allocations: 60.47 kB / 0.5769 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.5091, allocations: 20 kB / 0.5769 GB, free: 11.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006872/0.5098, allocations: 0.5068 MB / 0.5774 GB, free: 10.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5098, allocations: 0 / 0.5774 GB, free: 10.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001641/0.5114, allocations: 372 kB / 0.5778 GB, free: 10.15 MB / 446.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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003204/0.5146, allocations: 2.279 MB / 0.58 GB, free: 7.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.5173, allocations: 1.591 MB / 0.5816 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.5173, allocations: 0 / 0.5816 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.5189, allocations: 1.09 MB / 0.5826 GB, free: 5.004 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.5202, allocations: 204.2 kB / 0.5828 GB, free: 4.812 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/0.5374, allocations: 9.909 MB / 0.5925 GB, free: 10.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.5387, allocations: 1.255 MB / 0.5937 GB, free: 9.195 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007594/0.5394, allocations: 219.6 kB / 0.5939 GB, free: 8.977 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/0.5401, allocations: 439.3 kB / 0.5943 GB, free: 8.547 MB / 462.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5401, allocations: 0 / 0.5943 GB, free: 8.547 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05857/0.5987, allocations: 25.5 MB / 0.6192 GB, free: 15.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.8, allocations: 6.188 kB / 0.6192 GB, free: 15.3 MB / 494.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/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)