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.001539/0.001539, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008701/0.0008703, allocations: 80.69 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1893/0.1893, allocations: 38 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.872e-05/2.873e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1557, allocations: 56.34 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.6726, allocations: 121.6 MB / 0.5748 GB, free: 5.109 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.673, allocations: 87.95 kB / 0.5749 GB, free: 5.023 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.7733, allocations: 35.17 MB / 0.6093 GB, free: 1.508 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.7734, allocations: 0 / 0.6093 GB, free: 1.508 MB / 443.1 MB Notification: Performance of Transformations before backend: time 9.254e-05/0.7735, allocations: 27.94 kB / 0.6093 GB, free: 1.48 MB / 443.1 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.002924/0.7764, allocations: 1.327 MB / 0.6106 GB, free: 104 kB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.7765, allocations: 12.03 kB / 0.6106 GB, free: 92 kB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/0.7771, allocations: 162.2 kB / 0.6107 GB, free: 15.93 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/0.7803, allocations: 1.23 MB / 0.6119 GB, free: 14.66 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.7804, allocations: 36 kB / 0.612 GB, free: 14.62 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.7807, allocations: 83.88 kB / 0.6121 GB, free: 14.54 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001906/0.7826, allocations: 0.9218 MB / 0.613 GB, free: 13.61 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.7846, allocations: 1.161 MB / 0.6141 GB, free: 12.37 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.034e-05/0.7847, allocations: 11.94 kB / 0.6141 GB, free: 12.36 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.81e-05/0.7848, allocations: 0 / 0.6141 GB, free: 12.36 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/0.7849, allocations: 69.97 kB / 0.6142 GB, free: 12.29 MB / 459.1 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.007818/0.7928, allocations: 4.861 MB / 0.6189 GB, free: 7.211 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009611/0.7937, allocations: 0.6835 MB / 0.6196 GB, free: 6.48 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.7942, allocations: 304.3 kB / 0.6199 GB, free: 6.176 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.24e-05/0.7943, allocations: 12.55 kB / 0.6199 GB, free: 6.164 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.7943, allocations: 43.12 kB / 0.6199 GB, free: 6.109 MB / 459.1 MB Notification: Performance of pre-optimization done (n=64): time 3.507e-06/0.7944, allocations: 0 / 0.6199 GB, free: 6.109 MB / 459.1 MB Notification: Performance of matching and sorting (n=71): time 0.003939/0.7983, allocations: 2.037 MB / 0.6219 GB, free: 3.992 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.7984, allocations: 115.3 kB / 0.622 GB, free: 3.855 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007575/0.7992, allocations: 0.5273 MB / 0.6225 GB, free: 3.324 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.7992, allocations: 25.7 kB / 0.6226 GB, free: 3.293 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.7997, allocations: 0.5648 MB / 0.6231 GB, free: 2.719 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.8, allocations: 248.3 kB / 0.6234 GB, free: 2.473 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.8, allocations: 0 / 0.6234 GB, free: 2.473 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0002657/0.8003, allocations: 402.8 kB / 0.6237 GB, free: 2.07 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.8007, allocations: 258.6 kB / 0.624 GB, free: 1.816 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006462/0.8014, allocations: 0.5028 MB / 0.6245 GB, free: 1.203 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005884/0.802, allocations: 356.3 kB / 0.6248 GB, free: 0.8555 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.802, allocations: 0 / 0.6248 GB, free: 0.8555 MB / 459.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002608/0.8046, allocations: 1.156 MB / 0.6259 GB, free: 15.68 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001829/0.8065, allocations: 3.228 MB / 0.6291 GB, free: 12.2 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.8065, allocations: 8 kB / 0.6291 GB, free: 12.2 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.808, allocations: 392.5 kB / 0.6295 GB, free: 11.81 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.8088, allocations: 167.7 kB / 0.6296 GB, free: 11.64 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.8107, allocations: 1.177 MB / 0.6308 GB, free: 10.44 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008096/0.8116, allocations: 31.86 kB / 0.6308 GB, free: 10.41 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.039e-05/0.8116, allocations: 36 kB / 0.6309 GB, free: 10.38 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.8117, allocations: 4 kB / 0.6309 GB, free: 10.37 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002218/0.8139, allocations: 1.018 MB / 0.6319 GB, free: 9.348 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.8139, allocations: 11.95 kB / 0.6319 GB, free: 9.336 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.8152, allocations: 373.1 kB / 0.6322 GB, free: 8.969 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.8158, allocations: 179.7 kB / 0.6324 GB, free: 8.793 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006989/0.8228, allocations: 4.435 MB / 0.6367 GB, free: 4.234 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.8236, allocations: 11.98 kB / 0.6367 GB, free: 4.223 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.8237, allocations: 40 kB / 0.6368 GB, free: 4.184 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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.0003855/0.8241, allocations: 150.2 kB / 0.6369 GB, free: 4.031 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001238/0.8254, allocations: 0.7072 MB / 0.6376 GB, free: 3.301 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.8255, allocations: 82.97 kB / 0.6377 GB, free: 3.219 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.8269, allocations: 0.7886 MB / 0.6385 GB, free: 2.398 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.8269, allocations: 8 kB / 0.6385 GB, free: 2.391 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.8269, allocations: 3.953 kB / 0.6385 GB, free: 2.387 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.827, allocations: 3.984 kB / 0.6385 GB, free: 2.383 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00293/0.8299, allocations: 1.607 MB / 0.64 GB, free: 0.7305 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.8299, allocations: 0 / 0.64 GB, free: 0.7305 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008692/0.8308, allocations: 167.8 kB / 0.6402 GB, free: 0.5664 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.8308, allocations: 11.89 kB / 0.6402 GB, free: 0.5547 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.506e-05/0.8309, allocations: 4 kB / 0.6402 GB, free: 0.5508 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.433e-06/0.8309, allocations: 4 kB / 0.6402 GB, free: 0.5469 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.8309, allocations: 0 / 0.6402 GB, free: 0.5469 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3508/1.182, allocations: 1.197 MB / 0.6414 GB, free: 130.5 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000698/1.182, allocations: 211 kB / 0.6416 GB, free: 130.4 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/1.183, allocations: 2.812 kB / 0.6416 GB, free: 130.4 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/1.183, allocations: 14.59 kB / 0.6416 GB, free: 130.4 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/1.183, allocations: 43.59 kB / 0.6416 GB, free: 130.4 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/1.183, allocations: 19.23 kB / 0.6417 GB, free: 130.4 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0007419/1.184, allocations: 402.4 kB / 0.6421 GB, free: 130.3 MB / 475.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.184, allocations: 0 / 0.6421 GB, free: 130.3 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001932/1.186, allocations: 376.6 kB / 0.6424 GB, free: 130.3 MB / 475.1 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.002856/1.189, allocations: 2.027 MB / 0.6444 GB, free: 129.3 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/1.193, allocations: 1.514 MB / 0.6459 GB, free: 129.1 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.193, allocations: 0 / 0.6459 GB, free: 129.1 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006703/1.194, allocations: 318.9 kB / 0.6462 GB, free: 129.1 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/1.195, allocations: 177.7 kB / 0.6463 GB, free: 129.1 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006046/1.201, allocations: 2.163 MB / 0.6485 GB, free: 128.6 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/1.202, allocations: 1.211 MB / 0.6496 GB, free: 127.9 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.00144/1.204, allocations: 288.9 kB / 0.6499 GB, free: 127.8 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006135/1.204, allocations: 411.3 kB / 0.6503 GB, free: 127.8 MB / 475.1 MB Notification: Performance of SimCode: time 1.323e-06/1.204, allocations: 4 kB / 0.6503 GB, free: 127.8 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07961/1.284, allocations: 22.6 MB / 0.6724 GB, free: 126.6 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/1.284, allocations: 156 kB / 0.6725 GB, free: 126.4 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/4.246, allocations: 0 / 0.6725 GB, free: 126.4 MB / 475.1 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