Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001404/0.001404, allocations: 179.4 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.633/1.633, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001756/0.001756, allocations: 123.7 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1718/0.1718, allocations: 37.93 MB / 330.9 MB, free: 2.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.949e-05/2.943e-05, allocations: 11.92 kB / 390.5 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3219, allocations: 53.21 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.4643, allocations: 94.56 MB / 0.5256 GB, free: 2.973 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.4647, allocations: 75.97 kB / 0.5257 GB, free: 2.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3111/0.7758, allocations: 12.12 MB / 0.5375 GB, free: 89.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.7758, allocations: 4 kB / 0.5375 GB, free: 89.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.7759, allocations: 10.69 kB / 0.5375 GB, free: 89.72 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.0009386/0.7768, allocations: 0.6402 MB / 0.5382 GB, free: 89.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.7769, allocations: 11.56 kB / 0.5382 GB, free: 89.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004714/0.7773, allocations: 82.61 kB / 0.5383 GB, free: 89.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.7791, allocations: 0.8429 MB / 0.5391 GB, free: 88.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.7791, allocations: 15.66 kB / 0.5391 GB, free: 88.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.7792, allocations: 23.22 kB / 0.5391 GB, free: 88.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004848/0.7797, allocations: 361.6 kB / 0.5395 GB, free: 88.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006152/0.7803, allocations: 0.542 MB / 0.54 GB, free: 87.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.7803, allocations: 3.938 kB / 0.54 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.7804, allocations: 2.469 kB / 0.54 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.185e-05/0.7804, allocations: 33.56 kB / 0.54 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/0.7832, allocations: 2.776 MB / 0.5427 GB, free: 85.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.7835, allocations: 218.7 kB / 0.5429 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.7836, allocations: 137.8 kB / 0.5431 GB, free: 85.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.7837, allocations: 3.781 kB / 0.5431 GB, free: 85.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.7837, allocations: 34.56 kB / 0.5431 GB, free: 85.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 4.288e-06/0.7837, allocations: 3.656 kB / 0.5431 GB, free: 85.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001424/0.7852, allocations: 0.8262 MB / 0.5439 GB, free: 84.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.7852, allocations: 85.02 kB / 0.544 GB, free: 84.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.7855, allocations: 264.8 kB / 0.5443 GB, free: 84.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.7855, allocations: 25.7 kB / 0.5443 GB, free: 84.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.7856, allocations: 279.2 kB / 0.5446 GB, free: 84.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.7857, allocations: 102.5 kB / 0.5446 GB, free: 83.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/0.7857, allocations: 4 kB / 0.5447 GB, free: 83.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.363e-05/0.7858, allocations: 350.8 kB / 0.545 GB, free: 83.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.786, allocations: 129.1 kB / 0.5451 GB, free: 83.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.7862, allocations: 327.8 kB / 0.5454 GB, free: 83.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.7864, allocations: 211.8 kB / 0.5456 GB, free: 82.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7865, allocations: 4 kB / 0.5456 GB, free: 82.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006034/0.7871, allocations: 485.9 kB / 0.5461 GB, free: 82.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.7871, allocations: 8 kB / 0.5461 GB, free: 82.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.7871, allocations: 4 kB / 0.5461 GB, free: 82.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.7871, allocations: 12 kB / 0.5461 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.7875, allocations: 111.8 kB / 0.5462 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.7875, allocations: 15.94 kB / 0.5462 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.7877, allocations: 11.98 kB / 0.5462 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.7878, allocations: 28.33 kB / 0.5463 GB, free: 82.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/0.7879, allocations: 132.8 kB / 0.5464 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003672/0.7883, allocations: 297.5 kB / 0.5467 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.7883, allocations: 27.62 kB / 0.5467 GB, free: 81.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004664/0.7888, allocations: 329.7 kB / 0.547 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.7888, allocations: 11.98 kB / 0.547 GB, free: 81.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.7888, allocations: 0 / 0.547 GB, free: 81.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.7888, allocations: 32 / 0.547 GB, free: 81.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.7899, allocations: 0.799 MB / 0.5478 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.7899, allocations: 0 / 0.5478 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000284/0.7902, allocations: 63.91 kB / 0.5479 GB, free: 80.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.7902, allocations: 7.984 kB / 0.5479 GB, free: 80.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.7902, allocations: 0 / 0.5479 GB, free: 80.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.7902, allocations: 4 kB / 0.5479 GB, free: 80.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.7903, allocations: 11.98 kB / 0.5479 GB, free: 80.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.7909, allocations: 0.6222 MB / 0.5485 GB, free: 79.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.791, allocations: 108.7 kB / 0.5486 GB, free: 79.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.791, allocations: 4.094 kB / 0.5486 GB, free: 79.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.7912, allocations: 7.984 kB / 0.5486 GB, free: 79.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.7912, allocations: 19.95 kB / 0.5486 GB, free: 79.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.7913, allocations: 12 kB / 0.5487 GB, free: 79.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001363/0.7914, allocations: 200.5 kB / 0.5488 GB, free: 79.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7914, allocations: 4 kB / 0.5489 GB, free: 79.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004584/0.7919, allocations: 99.89 kB / 0.5489 GB, free: 79.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 1 * 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.00085/0.7927, allocations: 1.439 MB / 0.5504 GB, free: 77.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.7931, allocations: 341.3 kB / 0.5507 GB, free: 77.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7932, allocations: 4.375 kB / 0.5507 GB, free: 77.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.7933, allocations: 151.9 kB / 0.5508 GB, free: 77.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.7937, allocations: 49.83 kB / 0.5509 GB, free: 77.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.7951, allocations: 0.8939 MB / 0.5517 GB, free: 76.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.7954, allocations: 0.8667 MB / 0.5526 GB, free: 75.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003051/0.7957, allocations: 127.1 kB / 0.5527 GB, free: 75.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.7959, allocations: 135.4 kB / 0.5528 GB, free: 75.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.7959, allocations: 0 / 0.5528 GB, free: 75.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.8222, allocations: 6.115 MB / 0.5588 GB, free: 69.11 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.8225, allocations: 141.6 kB / 0.5589 GB, free: 68.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.774, allocations: 0 / 0.5589 GB, free: 68.92 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)