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.001603/0.001603, allocations: 106.2 kB / 17.06 MB, free: 6.016 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.002067/0.002067, allocations: 195 kB / 18 MB, free: 5.094 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1813/0.1813, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2988, allocations: 58.06 MB / 0.5036 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009777/0.3086, allocations: 9.549 MB / 0.513 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006998/0.3156, allocations: 3.562 MB / 0.5164 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.3169, allocations: 32.81 kB / 0.5165 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.3204, allocations: 1.101 MB / 0.5175 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003045/0.3234, allocations: 0.8888 MB / 0.5184 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001606/0.3251, allocations: 491.3 kB / 0.5189 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003393/0.3285, allocations: 1.805 MB / 0.5206 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/0.3302, allocations: 0.9729 MB / 0.5216 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.3317, allocations: 0.7752 MB / 0.5223 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001841/0.3335, allocations: 0.8986 MB / 0.5232 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.3339, allocations: 105.4 kB / 0.5233 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.3353, allocations: 0.535 MB / 0.5238 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009486/0.3363, allocations: 0.6379 MB / 0.5245 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.3378, allocations: 0.7036 MB / 0.5252 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003085/0.3409, allocations: 1.908 MB / 0.527 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.341, allocations: 1.562 kB / 0.527 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.341, allocations: 0 / 0.527 GB, free: 9.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.635e-05/0.341, allocations: 0 / 0.527 GB, free: 9.418 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.004253/0.3453, allocations: 1.622 MB / 0.5286 GB, free: 8.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3454, allocations: 14.09 kB / 0.5286 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003698/0.3457, allocations: 179.4 kB / 0.5288 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001848/0.3476, allocations: 268.7 kB / 0.529 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.3501, allocations: 0.9496 MB / 0.53 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.313e-05/0.3502, allocations: 83.94 kB / 0.5301 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003774/0.3506, allocations: 129.1 kB / 0.5302 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/0.3536, allocations: 1.495 MB / 0.5316 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.245e-05/0.3537, allocations: 7.938 kB / 0.5316 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.3538, allocations: 40.97 kB / 0.5317 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003381/0.3542, allocations: 99.12 kB / 0.5318 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002723/0.3569, allocations: 1.258 MB / 0.533 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009782/0.3667, allocations: 5.626 MB / 0.5385 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009375/0.3677, allocations: 0.5971 MB / 0.5391 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006066/0.3683, allocations: 400 kB / 0.5395 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.755e-05/0.3684, allocations: 12.38 kB / 0.5395 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.3684, allocations: 41.84 kB / 0.5395 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.126e-06/0.3684, allocations: 0 / 0.5395 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008205/0.3766, allocations: 3.629 MB / 0.5431 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3767, allocations: 92.98 kB / 0.5432 GB, free: 14.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.3779, allocations: 0.7325 MB / 0.5439 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.434e-05/0.378, allocations: 40.27 kB / 0.5439 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.3784, allocations: 0.5931 MB / 0.5445 GB, free: 13.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.3787, allocations: 266.9 kB / 0.5447 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/0.379, allocations: 182.1 kB / 0.5449 GB, free: 13.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3792, allocations: 403.1 kB / 0.5453 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006212/0.3798, allocations: 388.1 kB / 0.5457 GB, free: 12.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007984/0.3806, allocations: 0.6678 MB / 0.5463 GB, free: 11.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.3821, allocations: 1.144 MB / 0.5474 GB, free: 10.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.3821, allocations: 7.938 kB / 0.5474 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003446/0.3856, allocations: 1.709 MB / 0.5491 GB, free: 8.922 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3856, allocations: 8 kB / 0.5491 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002629/0.3883, allocations: 1.317 MB / 0.5504 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.3902, allocations: 0.5793 MB / 0.551 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.3908, allocations: 171.7 kB / 0.5511 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.4029, allocations: 10.36 MB / 0.5613 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.4039, allocations: 47.97 kB / 0.5613 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.404, allocations: 43.98 kB / 0.5613 GB, free: 11.81 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.000791/0.4048, allocations: 377.4 kB / 0.5617 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002582/0.4051, allocations: 86.88 kB / 0.5618 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002476/0.4076, allocations: 1.256 MB / 0.563 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.4076, allocations: 12 kB / 0.563 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.4076, allocations: 4.062 kB / 0.563 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.4076, allocations: 7.984 kB / 0.563 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005423/0.4131, allocations: 2.393 MB / 0.5654 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/0.4131, allocations: 3.984 kB / 0.5654 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004954/0.4136, allocations: 104.1 kB / 0.5655 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.4148, allocations: 383.8 kB / 0.5658 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.35e-05/0.4149, allocations: 23.98 kB / 0.5659 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008631/0.4235, allocations: 9.287 MB / 0.5749 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.4235, allocations: 7.938 kB / 0.5749 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.4264, allocations: 1.674 MB / 0.5766 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006109/0.4271, allocations: 235.8 kB / 0.5768 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.4273, allocations: 27.94 kB / 0.5768 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005386/0.4278, allocations: 27.97 kB / 0.5768 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.428, allocations: 60.42 kB / 0.5769 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.4281, allocations: 27.98 kB / 0.5769 GB, free: 10.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007061/0.4288, allocations: 0.5029 MB / 0.5774 GB, free: 10.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4288, allocations: 0 / 0.5774 GB, free: 10.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001568/0.4304, allocations: 368 kB / 0.5778 GB, free: 10.05 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.003348/0.4337, allocations: 2.268 MB / 0.58 GB, free: 7.711 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.4363, allocations: 1.593 MB / 0.5815 GB, free: 6.066 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.4363, allocations: 1.812 kB / 0.5815 GB, free: 6.066 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.4379, allocations: 1.094 MB / 0.5826 GB, free: 4.906 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.4391, allocations: 199.2 kB / 0.5828 GB, free: 4.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/0.4554, allocations: 9.911 MB / 0.5925 GB, free: 10.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4565, allocations: 1.258 MB / 0.5937 GB, free: 9.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006195/0.4572, allocations: 215.6 kB / 0.5939 GB, free: 8.875 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.4578, allocations: 443.3 kB / 0.5943 GB, free: 8.441 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4578, allocations: 0 / 0.5943 GB, free: 8.441 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06236/0.5201, allocations: 25.5 MB / 0.6192 GB, free: 15.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.91, allocations: 6.188 kB / 0.6192 GB, free: 15.2 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)