Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_cpp_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.002272/0.002272, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 92.05 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2634/0.2634, allocations: 37.99 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.731e-05/2.731e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 56.32 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5319/0.6473, allocations: 121.6 MB / 0.5741 GB, free: 5.922 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.6477, allocations: 97.48 kB / 0.5742 GB, free: 5.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1557/0.8033, allocations: 35.16 MB / 0.6085 GB, free: 8.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.8034, allocations: 0 / 0.6085 GB, free: 8.703 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000108/0.8035, allocations: 24 kB / 0.6086 GB, free: 8.68 MB / 410.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.004177/0.8077, allocations: 1.331 MB / 0.6099 GB, free: 7.375 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.8078, allocations: 8.031 kB / 0.6099 GB, free: 7.367 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008906/0.8087, allocations: 162.3 kB / 0.61 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004439/0.8131, allocations: 1.221 MB / 0.6112 GB, free: 6.211 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.277e-05/0.8132, allocations: 32 kB / 0.6113 GB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004525/0.8137, allocations: 91.14 kB / 0.6113 GB, free: 6.094 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002529/0.8162, allocations: 0.9231 MB / 0.6122 GB, free: 5.516 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002773/0.819, allocations: 1.162 MB / 0.6134 GB, free: 4.598 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.733e-05/0.8191, allocations: 3.938 kB / 0.6134 GB, free: 4.594 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.8192, allocations: 4 kB / 0.6134 GB, free: 4.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001858/0.8194, allocations: 68.22 kB / 0.6135 GB, free: 4.527 MB / 410.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.01064/0.8301, allocations: 4.859 MB / 0.6182 GB, free: 336 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.8316, allocations: 0.7008 MB / 0.6189 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000695/0.8323, allocations: 308.2 kB / 0.6192 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9e-05/0.8325, allocations: 12.55 kB / 0.6192 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.8325, allocations: 39.12 kB / 0.6192 GB, free: 15.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 3.476e-06/0.8325, allocations: 0 / 0.6192 GB, free: 15.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.005577/0.8381, allocations: 2.044 MB / 0.6212 GB, free: 13.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.8382, allocations: 111.4 kB / 0.6213 GB, free: 12.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.8393, allocations: 0.5273 MB / 0.6218 GB, free: 12.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.8394, allocations: 25.7 kB / 0.6219 GB, free: 12.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005202/0.8399, allocations: 0.5868 MB / 0.6224 GB, free: 11.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.8403, allocations: 244.3 kB / 0.6227 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.8403, allocations: 4 kB / 0.6227 GB, free: 11.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.8405, allocations: 346.8 kB / 0.623 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006847/0.8412, allocations: 250.6 kB / 0.6232 GB, free: 10.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008935/0.8421, allocations: 0.5067 MB / 0.6237 GB, free: 10.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008806/0.843, allocations: 360.3 kB / 0.6241 GB, free: 9.992 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-06/0.843, allocations: 4 kB / 0.6241 GB, free: 9.988 MB / 426.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004221/0.8473, allocations: 1.106 MB / 0.6252 GB, free: 8.867 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001601/0.8489, allocations: 3.22 MB / 0.6283 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/0.849, allocations: 11.98 kB / 0.6283 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002531/0.8515, allocations: 392.5 kB / 0.6287 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.8529, allocations: 175.7 kB / 0.6289 GB, free: 4.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002479/0.8554, allocations: 1.169 MB / 0.63 GB, free: 3.629 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.8565, allocations: 15.98 kB / 0.63 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.8566, allocations: 43.98 kB / 0.6301 GB, free: 3.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.8566, allocations: 4 kB / 0.6301 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003732/0.8604, allocations: 1.03 MB / 0.6311 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.8605, allocations: 15.89 kB / 0.6311 GB, free: 2.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.8626, allocations: 377.1 kB / 0.6314 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.8639, allocations: 171.7 kB / 0.6316 GB, free: 1.977 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.8748, allocations: 4.395 MB / 0.6359 GB, free: 13.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007497/0.8756, allocations: 19.89 kB / 0.6359 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.385e-05/0.8757, allocations: 44 kB / 0.636 GB, free: 13.39 MB / 442.7 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.0003693/0.8761, allocations: 146.5 kB / 0.6361 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001842/0.8779, allocations: 0.7112 MB / 0.6368 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.8782, allocations: 82.97 kB / 0.6369 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.8801, allocations: 0.7846 MB / 0.6376 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.8802, allocations: 16.02 kB / 0.6377 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.8802, allocations: 0 / 0.6377 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.8802, allocations: 3.984 kB / 0.6377 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004372/0.8846, allocations: 1.607 MB / 0.6392 GB, free: 9.938 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.8847, allocations: 0 / 0.6392 GB, free: 9.938 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/0.8863, allocations: 163.8 kB / 0.6394 GB, free: 9.777 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/0.8863, allocations: 7.953 kB / 0.6394 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-05/0.8864, allocations: 8 kB / 0.6394 GB, free: 9.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.209e-05/0.8864, allocations: 4 kB / 0.6394 GB, free: 9.758 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.8865, allocations: 3.938 kB / 0.6394 GB, free: 9.754 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.889, allocations: 1.201 MB / 0.6406 GB, free: 8.508 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.8896, allocations: 211.9 kB / 0.6408 GB, free: 8.281 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.8898, allocations: 8 kB / 0.6408 GB, free: 8.273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007282/0.8905, allocations: 7.984 kB / 0.6408 GB, free: 8.266 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.8906, allocations: 44.72 kB / 0.6408 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.564e-05/0.8907, allocations: 20 kB / 0.6409 GB, free: 8.203 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007925/0.8915, allocations: 407.1 kB / 0.6413 GB, free: 7.809 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8915, allocations: 0 / 0.6413 GB, free: 7.809 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002321/0.8939, allocations: 376 kB / 0.6416 GB, free: 7.441 MB / 442.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.003256/0.8972, allocations: 2.019 MB / 0.6436 GB, free: 5.375 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004993/0.9022, allocations: 1.493 MB / 0.645 GB, free: 3.875 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.9022, allocations: 0 / 0.645 GB, free: 3.875 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008219/0.9031, allocations: 314.8 kB / 0.6453 GB, free: 3.566 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.9047, allocations: 175.5 kB / 0.6455 GB, free: 3.398 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/0.9113, allocations: 2.224 MB / 0.6477 GB, free: 1.117 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.9125, allocations: 1.202 MB / 0.6489 GB, free: 15.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009737/0.9135, allocations: 423.3 kB / 0.6493 GB, free: 15.47 MB / 458.7 MB Notification: Performance of SimCode: time 1.423e-06/0.9135, allocations: 0 / 0.6493 GB, free: 15.47 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.265/4.179, allocations: 20.85 MB / 0.6696 GB, free: 10.61 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)