Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.212/1.212, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000781/0.0007811, allocations: 96.08 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1629/0.1629, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002958, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 56.32 MB / 480.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.4067, allocations: 122.4 MB / 0.5887 GB, free: 11.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.407, allocations: 95.95 kB / 0.5888 GB, free: 11.87 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0892/0.4962, allocations: 35.54 MB / 0.6235 GB, free: 7.945 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4962, allocations: 0 / 0.6235 GB, free: 7.945 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.928e-05/0.4963, allocations: 27.94 kB / 0.6235 GB, free: 7.918 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002817/0.4991, allocations: 1.471 MB / 0.6249 GB, free: 6.391 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.4992, allocations: 12.03 kB / 0.625 GB, free: 6.379 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.4994, allocations: 164.8 kB / 0.6251 GB, free: 6.207 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.4998, allocations: 158.3 kB / 0.6253 GB, free: 6.051 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.5023, allocations: 1.242 MB / 0.6265 GB, free: 4.762 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.689e-05/0.5024, allocations: 78.05 kB / 0.6265 GB, free: 4.684 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002631/0.5026, allocations: 127.9 kB / 0.6267 GB, free: 4.559 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.5045, allocations: 1.329 MB / 0.628 GB, free: 3.141 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.5046, allocations: 4 kB / 0.628 GB, free: 3.137 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.292e-05/0.5047, allocations: 40 kB / 0.628 GB, free: 3.098 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.5048, allocations: 73.95 kB / 0.6281 GB, free: 3.027 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.5064, allocations: 1.046 MB / 0.6291 GB, free: 1.977 MB / 458.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006524/0.513, allocations: 5.133 MB / 0.6341 GB, free: 12.61 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.514, allocations: 0.7314 MB / 0.6348 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.244e-05/0.5141, allocations: 8.609 kB / 0.6348 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.5141, allocations: 51.11 kB / 0.6349 GB, free: 11.76 MB / 474.7 MB Notification: Performance of pre-optimization done (n=64): time 1.894e-06/0.5141, allocations: 0 / 0.6349 GB, free: 11.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=71): time 0.005015/0.5192, allocations: 2.667 MB / 0.6375 GB, free: 8.992 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.5192, allocations: 115.4 kB / 0.6376 GB, free: 8.855 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007076/0.52, allocations: 0.6265 MB / 0.6382 GB, free: 8.227 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.804e-05/0.52, allocations: 37.7 kB / 0.6382 GB, free: 8.184 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003595/0.5204, allocations: 0.5573 MB / 0.6388 GB, free: 7.617 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.5206, allocations: 256.3 kB / 0.639 GB, free: 7.363 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.5206, allocations: 24.06 kB / 0.6391 GB, free: 7.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5207, allocations: 341.9 kB / 0.6394 GB, free: 7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.5212, allocations: 289.8 kB / 0.6397 GB, free: 6.719 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.5218, allocations: 0.5247 MB / 0.6402 GB, free: 6.082 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005554/0.5224, allocations: 390.9 kB / 0.6405 GB, free: 5.699 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5224, allocations: 3.938 kB / 0.6406 GB, free: 5.695 MB / 474.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002469/0.5249, allocations: 1.281 MB / 0.6418 GB, free: 4.402 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001085/0.526, allocations: 3.131 MB / 0.6449 GB, free: 1.023 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.526, allocations: 8 kB / 0.6449 GB, free: 1.016 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.5273, allocations: 416.5 kB / 0.6453 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006349/0.528, allocations: 175.7 kB / 0.6454 GB, free: 444 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2103/0.7383, allocations: 1.145 MB / 0.6466 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009667/0.7393, allocations: 41.08 kB / 0.6466 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-05/0.7394, allocations: 38.72 kB / 0.6466 GB, free: 128.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.7394, allocations: 3.906 kB / 0.6466 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002437/0.7419, allocations: 1.154 MB / 0.6478 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.7419, allocations: 7.75 kB / 0.6478 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.7432, allocations: 394.3 kB / 0.6481 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006443/0.7438, allocations: 172.2 kB / 0.6483 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006743/0.7506, allocations: 4.781 MB / 0.653 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006386/0.7512, allocations: 32.41 kB / 0.653 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.764e-05/0.7513, allocations: 37.09 kB / 0.653 GB, free: 127.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0006978/0.752, allocations: 434.2 kB / 0.6535 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.7522, allocations: 94.91 kB / 0.6535 GB, free: 126.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.7536, allocations: 0.8649 MB / 0.6544 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.7536, allocations: 10.06 kB / 0.6544 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7536, allocations: 1.188 kB / 0.6544 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.7536, allocations: 5.391 kB / 0.6544 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.7565, allocations: 1.816 MB / 0.6562 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.7565, allocations: 0 / 0.6562 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000845/0.7573, allocations: 163.3 kB / 0.6563 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.7573, allocations: 4.047 kB / 0.6563 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.7574, allocations: 18.36 kB / 0.6564 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.7574, allocations: 4.703 kB / 0.6564 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7574, allocations: 1.406 kB / 0.6564 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.7591, allocations: 1.284 MB / 0.6576 GB, free: 126.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.7594, allocations: 216.7 kB / 0.6578 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.7595, allocations: 17.94 kB / 0.6578 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.7599, allocations: 32.84 kB / 0.6579 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.76, allocations: 45.25 kB / 0.6579 GB, free: 126 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.76, allocations: 22.45 kB / 0.6579 GB, free: 126 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000612/0.7607, allocations: 0.4926 MB / 0.6584 GB, free: 125.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7607, allocations: 1.062 kB / 0.6584 GB, free: 125.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001495/0.7622, allocations: 425.2 kB / 0.6588 GB, free: 125.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.002063/0.7642, allocations: 2.129 MB / 0.6609 GB, free: 124.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00296/0.7672, allocations: 1.595 MB / 0.6625 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.7672, allocations: 0 / 0.6625 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.7678, allocations: 343.5 kB / 0.6628 GB, free: 124.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009495/0.7688, allocations: 228 kB / 0.663 GB, free: 124.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.7805, allocations: 12.16 MB / 0.6749 GB, free: 115.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007423/0.7813, allocations: 1.211 MB / 0.6761 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008801/0.7822, allocations: 241.8 kB / 0.6763 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.7826, allocations: 427.4 kB / 0.6767 GB, free: 114.6 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7827, allocations: 0 / 0.6767 GB, free: 114.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03665/0.8193, allocations: 24.61 MB / 0.7007 GB, free: 112.8 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/0.8195, allocations: 223.5 kB / 0.701 GB, free: 112.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.44/3.259, allocations: 0 / 0.701 GB, free: 112.6 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat does not exist to compare? outputFormat=mat