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.0008835/0.0008836, allocations: 97.17 kB / 16.3 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.000965/0.0009651, allocations: 180.5 kB / 17.19 MB, free: 5.906 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.281/1.281, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2726/0.2726, allocations: 38.07 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003045, allocations: 8 kB / 400.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2596, allocations: 59.16 MB / 459.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.00761/0.2672, allocations: 9.554 MB / 468.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005254/0.2725, allocations: 3.808 MB / 472.6 MB, free: 20.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008847/0.2734, allocations: 63.5 kB / 472.6 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007241/0.2741, allocations: 329.3 kB / 473 MB, free: 20.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002154/0.2763, allocations: 0.7216 MB / 473.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.2777, allocations: 461.4 kB / 474.1 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.2791, allocations: 0.9362 MB / 475.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.2811, allocations: 1.304 MB / 476.4 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008852/0.282, allocations: 0.5213 MB / 476.9 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009138/0.2829, allocations: 0.5689 MB / 477.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.283, allocations: 53.62 kB / 477.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008805/0.2839, allocations: 401.3 kB / 477.9 MB, free: 18.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004718/0.2844, allocations: 0.5309 MB / 478.4 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002736/0.2847, allocations: 265.6 kB / 478.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2859, allocations: 1.426 MB / 480.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.2859, allocations: 0 / 480.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2859, allocations: 5.031 kB / 480.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.2859, allocations: 0 / 480.1 MB, free: 16.96 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002195/0.2881, allocations: 1.406 MB / 481.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2881, allocations: 9.875 kB / 481.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.2883, allocations: 172.6 kB / 481.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.2898, allocations: 292.1 kB / 482 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.2915, allocations: 0.8723 MB / 482.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.718e-05/0.2915, allocations: 85.16 kB / 483 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000275/0.2918, allocations: 139.2 kB / 483.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.2937, allocations: 1.469 MB / 484.6 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.389e-05/0.2937, allocations: 9.984 kB / 484.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.286e-05/0.2938, allocations: 42.53 kB / 484.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002724/0.2941, allocations: 102.8 kB / 484.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.2957, allocations: 1.237 MB / 485.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005533/0.3012, allocations: 5.672 MB / 491.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006721/0.3019, allocations: 0.5949 MB / 492.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.302, allocations: 8.625 kB / 492.2 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.302, allocations: 51.05 kB / 492.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.924e-06/0.302, allocations: 0 / 492.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.005457/0.3075, allocations: 3.52 MB / 495.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.3075, allocations: 89.8 kB / 495.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006079/0.3081, allocations: 0.7234 MB / 496.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/0.3082, allocations: 37.7 kB / 496.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.3084, allocations: 0.588 MB / 497.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3085, allocations: 272.2 kB / 497.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.3086, allocations: 16 kB / 497.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.502e-05/0.3087, allocations: 406.7 kB / 497.9 MB, free: 396 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.3091, allocations: 393.7 kB / 498.3 MB, free: 4 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007358/0.3098, allocations: 0.6535 MB / 498.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.3105, allocations: 0.4949 MB / 499.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3105, allocations: 4 kB / 499.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003005/0.3135, allocations: 1.698 MB / 0.4894 GB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3136, allocations: 8 kB / 0.4894 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002358/0.3159, allocations: 1.299 MB / 0.4907 GB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/0.3177, allocations: 0.5755 MB / 0.4912 GB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/0.3183, allocations: 179.7 kB / 0.4914 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.329, allocations: 9.628 MB / 0.5008 GB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007608/0.3298, allocations: 47.88 kB / 0.5009 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-05/0.3299, allocations: 44 kB / 0.5009 GB, free: 0.6484 MB / 366.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 (94): * Single equations (assignments): 90 * 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%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0005918/0.3305, allocations: 381.4 kB / 0.5013 GB, free: 272 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.3306, allocations: 90.86 kB / 0.5013 GB, free: 180 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.3327, allocations: 1.245 MB / 0.5026 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.3328, allocations: 12.17 kB / 0.5026 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3328, allocations: 4 kB / 0.5026 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3328, allocations: 7.922 kB / 0.5026 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/0.3368, allocations: 2.398 MB / 0.5049 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.3368, allocations: 4 kB / 0.5049 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004355/0.3373, allocations: 116 kB / 0.505 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.3383, allocations: 379.7 kB / 0.5054 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.107e-05/0.3384, allocations: 31.94 kB / 0.5054 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007638/0.346, allocations: 8.572 MB / 0.5138 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.346, allocations: 3.938 kB / 0.5138 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/0.349, allocations: 1.765 MB / 0.5155 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005825/0.3496, allocations: 223.9 kB / 0.5157 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3497, allocations: 31.94 kB / 0.5158 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.3501, allocations: 23.98 kB / 0.5158 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3503, allocations: 64.41 kB / 0.5159 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.383e-05/0.3503, allocations: 23.98 kB / 0.5159 GB, free: 364 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006768/0.351, allocations: 0.5029 MB / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.351, allocations: 0 / 0.5164 GB, free: 15.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001441/0.3525, allocations: 360 kB / 0.5167 GB, free: 15.5 MB / 398.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.003165/0.3556, allocations: 2.913 MB / 0.5196 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.3579, allocations: 1.579 MB / 0.5211 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3579, allocations: 0 / 0.5211 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.3594, allocations: 1.087 MB / 0.5222 GB, free: 9.715 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000804/0.3602, allocations: 185.5 kB / 0.5223 GB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.3726, allocations: 13.34 MB / 0.5354 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008899/0.3735, allocations: 1.282 MB / 0.5366 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006306/0.3741, allocations: 219.6 kB / 0.5368 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000483/0.3746, allocations: 443.3 kB / 0.5373 GB, free: 9.848 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3746, allocations: 0 / 0.5373 GB, free: 9.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/0.5352, allocations: 23.52 MB / 0.5602 GB, free: 2.621 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.5355, allocations: 230.1 kB / 0.5604 GB, free: 2.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.643, allocations: 0 / 0.5604 GB, free: 2.379 MB / 430.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