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.002211/0.002211, allocations: 184.2 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001119/0.001118, allocations: 87.77 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2658/0.2658, allocations: 37.98 MB / 353.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.292e-05, allocations: 8 kB / 416.9 MB, free: 41.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 56.31 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.534/0.6407, allocations: 122.3 MB / 0.5815 GB, free: 13.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004175/0.6411, allocations: 99.94 kB / 0.5816 GB, free: 13.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.188/0.8292, allocations: 35.53 MB / 0.6163 GB, free: 9.23 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.8293, allocations: 0 / 0.6163 GB, free: 9.23 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001102/0.8294, allocations: 27.98 kB / 0.6164 GB, free: 9.203 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.004273/0.8337, allocations: 1.327 MB / 0.6177 GB, free: 7.824 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.8337, allocations: 8.031 kB / 0.6177 GB, free: 7.816 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003538/0.8341, allocations: 168.8 kB / 0.6178 GB, free: 7.641 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007956/0.8349, allocations: 154.3 kB / 0.618 GB, free: 7.488 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004738/0.8397, allocations: 1.234 MB / 0.6192 GB, free: 6.207 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.632e-05/0.8398, allocations: 81.94 kB / 0.6193 GB, free: 6.125 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005182/0.8403, allocations: 135.8 kB / 0.6194 GB, free: 5.992 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003508/0.8439, allocations: 1.305 MB / 0.6207 GB, free: 4.598 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.903e-05/0.844, allocations: 0 / 0.6207 GB, free: 4.598 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.8441, allocations: 44 kB / 0.6207 GB, free: 4.555 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001949/0.8444, allocations: 69.97 kB / 0.6208 GB, free: 4.488 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002976/0.8473, allocations: 1.011 MB / 0.6218 GB, free: 3.473 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.01159/0.859, allocations: 5.126 MB / 0.6268 GB, free: 14.11 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.8607, allocations: 0.7158 MB / 0.6275 GB, free: 13.35 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000806/0.8615, allocations: 332.4 kB / 0.6278 GB, free: 13.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.29e-05/0.8616, allocations: 20.53 kB / 0.6278 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.8617, allocations: 43.12 kB / 0.6278 GB, free: 12.94 MB / 474.7 MB Notification: Performance of pre-optimization done (n=64): time 4.248e-06/0.8617, allocations: 4 kB / 0.6278 GB, free: 12.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=71): time 0.006741/0.8684, allocations: 2.217 MB / 0.63 GB, free: 10.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.8686, allocations: 111.4 kB / 0.6301 GB, free: 10.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.8699, allocations: 0.6292 MB / 0.6307 GB, free: 9.879 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.87, allocations: 41.7 kB / 0.6308 GB, free: 9.832 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000542/0.8706, allocations: 0.5753 MB / 0.6313 GB, free: 9.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003345/0.8709, allocations: 252.4 kB / 0.6316 GB, free: 9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.36e-05/0.871, allocations: 16 kB / 0.6316 GB, free: 8.984 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.8712, allocations: 354.8 kB / 0.6319 GB, free: 8.629 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007774/0.872, allocations: 262 kB / 0.6322 GB, free: 8.371 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.873, allocations: 0.517 MB / 0.6327 GB, free: 7.742 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009701/0.874, allocations: 382.2 kB / 0.633 GB, free: 7.371 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.874, allocations: 0 / 0.633 GB, free: 7.371 MB / 474.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.004285/0.8783, allocations: 1.195 MB / 0.6342 GB, free: 6.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001575/0.88, allocations: 3.144 MB / 0.6373 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.731e-05/0.88, allocations: 8 kB / 0.6373 GB, free: 2.766 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003548/0.8836, allocations: 404.5 kB / 0.6377 GB, free: 2.367 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.885, allocations: 171.7 kB / 0.6378 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.8876, allocations: 1.146 MB / 0.639 GB, free: 1.023 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.8887, allocations: 35.89 kB / 0.639 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.862e-05/0.8888, allocations: 39.94 kB / 0.639 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.8889, allocations: 4 kB / 0.639 GB, free: 0.9453 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4055/1.294, allocations: 1.132 MB / 0.6401 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-05/1.294, allocations: 7.844 kB / 0.6402 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/1.297, allocations: 405.5 kB / 0.6405 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/1.299, allocations: 168.9 kB / 0.6407 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.313, allocations: 4.567 MB / 0.6452 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007824/1.313, allocations: 37.19 kB / 0.6452 GB, free: 125.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-05/1.313, allocations: 40.28 kB / 0.6452 GB, free: 125.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 () * 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.0002772/1.314, allocations: 157 kB / 0.6454 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003025/1.314, allocations: 91.16 kB / 0.6455 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00226/1.316, allocations: 0.8484 MB / 0.6463 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/1.316, allocations: 9.734 kB / 0.6463 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/1.316, allocations: 2.531 kB / 0.6463 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/1.316, allocations: 6.141 kB / 0.6463 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004833/1.321, allocations: 1.802 MB / 0.6481 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/1.321, allocations: 3.562 kB / 0.6481 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001702/1.323, allocations: 163.8 kB / 0.6482 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.7e-05/1.323, allocations: 3.062 kB / 0.6482 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/1.323, allocations: 24.77 kB / 0.6483 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/1.323, allocations: 6.938 kB / 0.6483 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.323, allocations: 8.328 kB / 0.6483 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/1.326, allocations: 1.252 MB / 0.6495 GB, free: 124.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005988/1.327, allocations: 217.2 kB / 0.6497 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/1.327, allocations: 17.36 kB / 0.6497 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008497/1.328, allocations: 22.95 kB / 0.6497 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/1.328, allocations: 46.89 kB / 0.6498 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/1.328, allocations: 18.91 kB / 0.6498 GB, free: 124.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001051/1.329, allocations: 495.5 kB / 0.6503 GB, free: 124 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.329, allocations: 3.5 kB / 0.6503 GB, free: 124 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002341/1.331, allocations: 426.1 kB / 0.6507 GB, free: 124 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 () * 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.003313/1.335, allocations: 2.103 MB / 0.6527 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005338/1.34, allocations: 1.56 MB / 0.6543 GB, free: 122.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.34, allocations: 1.344 kB / 0.6543 GB, free: 122.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009463/1.341, allocations: 334 kB / 0.6546 GB, free: 122.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/1.343, allocations: 226 kB / 0.6548 GB, free: 122.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00713/1.35, allocations: 2.305 MB / 0.6571 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/1.352, allocations: 1.207 MB / 0.6582 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/1.353, allocations: 435.4 kB / 0.6586 GB, free: 121.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.603e-06/1.353, allocations: 0 / 0.6586 GB, free: 121.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.133/4.486, allocations: 21.66 MB / 0.6798 GB, free: 120.2 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)