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.001651/0.001651, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.524/1.524, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008766/0.0008765, allocations: 82.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.215/0.215, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.464e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 56.32 MB / 474.1 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4722/0.5908, allocations: 122.3 MB / 0.5825 GB, free: 12.74 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.5912, allocations: 104.4 kB / 0.5826 GB, free: 12.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09648/0.6877, allocations: 35.53 MB / 0.6173 GB, free: 14.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6878, allocations: 0 / 0.6173 GB, free: 14.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.151e-05/0.6878, allocations: 24 kB / 0.6173 GB, free: 14.52 MB / 426.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.002725/0.6906, allocations: 1.331 MB / 0.6186 GB, free: 13.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.6906, allocations: 8.031 kB / 0.6186 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002307/0.6909, allocations: 166.7 kB / 0.6187 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005273/0.6914, allocations: 154.3 kB / 0.6189 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002817/0.6942, allocations: 1.235 MB / 0.6201 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.691e-05/0.6943, allocations: 85.42 kB / 0.6202 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002994/0.6946, allocations: 123.3 kB / 0.6203 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.6968, allocations: 1.309 MB / 0.6216 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.6968, allocations: 0 / 0.6216 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.6969, allocations: 45.12 kB / 0.6216 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.6971, allocations: 71.97 kB / 0.6217 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/0.6988, allocations: 1.006 MB / 0.6227 GB, free: 10.08 MB / 426.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.007286/0.7061, allocations: 5.13 MB / 0.6277 GB, free: 5.559 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.7072, allocations: 0.7206 MB / 0.6284 GB, free: 4.793 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005088/0.7077, allocations: 332.5 kB / 0.6287 GB, free: 4.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.109e-05/0.7078, allocations: 12.52 kB / 0.6287 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.7078, allocations: 47.12 kB / 0.6288 GB, free: 4.391 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 4.027e-06/0.7078, allocations: 0 / 0.6288 GB, free: 4.391 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.004395/0.7122, allocations: 2.224 MB / 0.6309 GB, free: 2.094 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.7123, allocations: 111.4 kB / 0.631 GB, free: 1.961 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008831/0.7132, allocations: 0.6293 MB / 0.6316 GB, free: 1.328 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.7133, allocations: 37.7 kB / 0.6317 GB, free: 1.285 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004535/0.7137, allocations: 0.5611 MB / 0.6322 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.714, allocations: 256.4 kB / 0.6325 GB, free: 472 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.714, allocations: 20 kB / 0.6325 GB, free: 452 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.7142, allocations: 341.9 kB / 0.6328 GB, free: 104 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.7147, allocations: 273.9 kB / 0.6331 GB, free: 15.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006453/0.7153, allocations: 0.517 MB / 0.6336 GB, free: 15.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.716, allocations: 378.2 kB / 0.6339 GB, free: 14.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.716, allocations: 7.938 kB / 0.634 GB, free: 14.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002584/0.7186, allocations: 1.249 MB / 0.6352 GB, free: 13.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001477/0.7201, allocations: 3.137 MB / 0.6382 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.7201, allocations: 8 kB / 0.6382 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.7215, allocations: 408.5 kB / 0.6386 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007342/0.7222, allocations: 171.7 kB / 0.6388 GB, free: 9.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.7238, allocations: 1.15 MB / 0.6399 GB, free: 8.422 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006942/0.7246, allocations: 39.83 kB / 0.64 GB, free: 8.383 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/0.7246, allocations: 40 kB / 0.64 GB, free: 8.344 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.7247, allocations: 6.5 kB / 0.64 GB, free: 8.34 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002503/0.7272, allocations: 1.139 MB / 0.6411 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.7272, allocations: 12.31 kB / 0.6411 GB, free: 7.184 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.7285, allocations: 396.8 kB / 0.6415 GB, free: 6.793 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.7291, allocations: 171.7 kB / 0.6417 GB, free: 6.625 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007372/0.7365, allocations: 4.599 MB / 0.6462 GB, free: 1.883 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007452/0.7373, allocations: 39.83 kB / 0.6462 GB, free: 1.844 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.481e-05/0.7373, allocations: 36 kB / 0.6462 GB, free: 1.809 MB / 442.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 () * 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.0002837/0.7376, allocations: 156.7 kB / 0.6464 GB, free: 1.648 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.7378, allocations: 90.88 kB / 0.6465 GB, free: 1.559 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/0.7394, allocations: 0.8475 MB / 0.6473 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.7394, allocations: 8 kB / 0.6473 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7394, allocations: 0 / 0.6473 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.7394, allocations: 11.94 kB / 0.6473 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.7425, allocations: 1.798 MB / 0.6491 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/0.7426, allocations: 4 kB / 0.6491 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/0.7434, allocations: 159.8 kB / 0.6492 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.7434, allocations: 4 kB / 0.6492 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.351e-05/0.7435, allocations: 23.94 kB / 0.6493 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.7435, allocations: 8.031 kB / 0.6493 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.7435, allocations: 0 / 0.6493 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.7452, allocations: 1.259 MB / 0.6505 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000354/0.7456, allocations: 223.8 kB / 0.6507 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.379e-05/0.7457, allocations: 16 kB / 0.6507 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/0.7461, allocations: 23.98 kB / 0.6507 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.7462, allocations: 40.72 kB / 0.6508 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.293e-05/0.7463, allocations: 23.94 kB / 0.6508 GB, free: 12.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006791/0.747, allocations: 495.1 kB / 0.6513 GB, free: 12.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.747, allocations: 0 / 0.6513 GB, free: 12.48 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001499/0.7485, allocations: 435.9 kB / 0.6517 GB, free: 12.06 MB / 458.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 () * 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.002461/0.751, allocations: 2.114 MB / 0.6538 GB, free: 9.906 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0033/0.7543, allocations: 1.574 MB / 0.6553 GB, free: 8.309 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.7543, allocations: 4 kB / 0.6553 GB, free: 8.305 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005112/0.7548, allocations: 336.8 kB / 0.6556 GB, free: 7.977 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.756, allocations: 228.3 kB / 0.6558 GB, free: 7.754 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004554/0.7605, allocations: 2.241 MB / 0.658 GB, free: 5.469 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.7617, allocations: 1.215 MB / 0.6592 GB, free: 4.223 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001274/0.763, allocations: 311.3 kB / 0.6595 GB, free: 3.914 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006474/0.7636, allocations: 419.3 kB / 0.6599 GB, free: 3.504 MB / 458.7 MB Notification: Performance of SimCode: time 1.904e-06/0.7637, allocations: 3.938 kB / 0.6599 GB, free: 3.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0763/0.84, allocations: 26.05 MB / 0.6854 GB, free: 9.43 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/0.8402, allocations: 193 kB / 0.6855 GB, free: 9.199 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/3.567, allocations: 0 / 0.6855 GB, free: 9.199 MB / 490.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