Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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.TurbineGenerator,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_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.001029/0.001029, allocations: 94.2 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.0009162/0.0009161, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.265/1.265, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2718/0.2718, allocations: 38.08 MB / 330.3 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 8 kB / 400.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2471, allocations: 59.16 MB / 459.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007219/0.2544, allocations: 7.472 MB / 466.7 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005147/0.2595, allocations: 3.132 MB / 469.8 MB, free: 22.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006908/0.2603, allocations: 51.09 kB / 469.9 MB, free: 22.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005522/0.2608, allocations: 214 kB / 470.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001655/0.2625, allocations: 0.5783 MB / 470.7 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.2636, allocations: 351 kB / 471 MB, free: 22.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.2649, allocations: 0.7321 MB / 471.7 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.2664, allocations: 0.9038 MB / 472.6 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000843/0.2673, allocations: 403.7 kB / 473 MB, free: 20.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008902/0.2682, allocations: 409.2 kB / 473.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001122/0.2683, allocations: 37.88 kB / 473.5 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.2694, allocations: 356.7 kB / 473.8 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005218/0.27, allocations: 374.1 kB / 474.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.2702, allocations: 203.3 kB / 474.4 MB, free: 20.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001803/0.2721, allocations: 1.06 MB / 475.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2721, allocations: 0 / 475.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.2721, allocations: 0 / 475.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.2721, allocations: 3.938 kB / 475.4 MB, free: 20.3 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.002176/0.2743, allocations: 1.111 MB / 476.6 MB, free: 19.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.2744, allocations: 9.562 kB / 476.6 MB, free: 19.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2745, allocations: 135.8 kB / 476.7 MB, free: 19.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001301/0.2758, allocations: 214.6 kB / 476.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.2772, allocations: 0.7071 MB / 477.6 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.2773, allocations: 58.03 kB / 477.7 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/0.2775, allocations: 96.47 kB / 477.8 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.2791, allocations: 1.078 MB / 478.8 MB, free: 18.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.2791, allocations: 14.25 kB / 478.9 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.723e-05/0.2792, allocations: 31.72 kB / 478.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000178/0.2794, allocations: 74.45 kB / 479 MB, free: 17.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2807, allocations: 0.8526 MB / 479.8 MB, free: 17.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004823/0.2856, allocations: 4.003 MB / 483.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.2862, allocations: 434.2 kB / 484.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.873e-05/0.2863, allocations: 13.67 kB / 484.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.2863, allocations: 41.08 kB / 484.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.076e-06/0.2863, allocations: 1.031 kB / 484.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.002627/0.2889, allocations: 1.715 MB / 486 MB, free: 12.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.289, allocations: 81.55 kB / 486.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.2895, allocations: 0.59 MB / 486.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2895, allocations: 33.7 kB / 486.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.2897, allocations: 466.5 kB / 487.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2898, allocations: 185.3 kB / 487.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.2899, allocations: 16 kB / 487.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.2899, allocations: 386.7 kB / 487.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.2902, allocations: 253.8 kB / 488 MB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.2906, allocations: 469 kB / 488.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.291, allocations: 341.9 kB / 488.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.291, allocations: 0 / 488.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001572/0.2926, allocations: 1.107 MB / 489.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.2926, allocations: 8 kB / 489.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001032/0.2937, allocations: 0.7921 MB / 490.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006007/0.2943, allocations: 230.3 kB / 490.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.2947, allocations: 159.7 kB / 491.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.2985, allocations: 5.318 MB / 496.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.2991, allocations: 39.97 kB / 496.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.2992, allocations: 39.98 kB / 496.5 MB, free: 1.52 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000439/0.2996, allocations: 305.5 kB / 496.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.2997, allocations: 67.16 kB / 496.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007722/0.3005, allocations: 0.605 MB / 497.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3005, allocations: 8 kB / 497.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.3005, allocations: 0 / 497.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3005, allocations: 11.92 kB / 497.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.3028, allocations: 1.486 MB / 498.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3028, allocations: 0 / 498.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005939/0.3034, allocations: 135.9 kB / 499.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.3034, allocations: 4 kB / 499.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.3035, allocations: 19.98 kB / 499.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3035, allocations: 0 / 499.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.3035, allocations: 4 kB / 499.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.3048, allocations: 0.9966 MB / 0.4884 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3051, allocations: 188.2 kB / 0.4886 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.743e-05/0.3052, allocations: 16 kB / 0.4886 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/0.3056, allocations: 15.98 kB / 0.4886 GB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.3056, allocations: 32.39 kB / 0.4886 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.3057, allocations: 12 kB / 0.4886 GB, free: 13.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005022/0.3062, allocations: 423 kB / 0.489 GB, free: 13.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3062, allocations: 0 / 0.489 GB, free: 13.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008895/0.3071, allocations: 232 kB / 0.4893 GB, free: 12.81 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001956/0.309, allocations: 1.993 MB / 0.4912 GB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.3106, allocations: 1.022 MB / 0.4922 GB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3107, allocations: 0 / 0.4922 GB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.311, allocations: 254.3 kB / 0.4924 GB, free: 9.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.3117, allocations: 135 kB / 0.4926 GB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009042/0.3207, allocations: 10.06 MB / 0.5024 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000669/0.3214, allocations: 1.098 MB / 0.5035 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005371/0.322, allocations: 189.9 kB / 0.5036 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.3224, allocations: 323.3 kB / 0.504 GB, free: 13.38 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3224, allocations: 3.938 kB / 0.504 GB, free: 13.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0725/0.3949, allocations: 15.78 MB / 0.5194 GB, free: 13.85 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.3951, allocations: 230 kB / 0.5196 GB, free: 13.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.894/2.289, allocations: 0 / 0.5196 GB, free: 13.61 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat does not exist to compare? outputFormat=mat