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.0009834/0.0009836, allocations: 184.3 kB / 13.65 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.472/1.472, allocations: 194.3 MB / 208.4 MB, free: 6.629 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.00169/0.00169, allocations: 112.7 kB / 253.5 MB, free: 9.508 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.158/0.158, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.431e-05/4.453e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2624, allocations: 53.21 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3971/0.6596, allocations: 95.22 MB / 0.5333 GB, free: 88.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.6599, allocations: 81.58 kB / 0.5333 GB, free: 88.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03388/0.6938, allocations: 12.21 MB / 0.5453 GB, free: 83.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6939, allocations: 7.938 kB / 0.5453 GB, free: 83.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.306e-05/0.6939, allocations: 8 kB / 0.5453 GB, free: 83.91 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.0009667/0.6949, allocations: 0.641 MB / 0.5459 GB, free: 83.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.6949, allocations: 12.03 kB / 0.5459 GB, free: 83.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.683e-05/0.695, allocations: 86.78 kB / 0.546 GB, free: 83.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004793/0.6955, allocations: 83.38 kB / 0.5461 GB, free: 83.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.6974, allocations: 0.8371 MB / 0.5469 GB, free: 82.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.6974, allocations: 29 kB / 0.5469 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.87e-05/0.6975, allocations: 43.98 kB / 0.547 GB, free: 82.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007374/0.6982, allocations: 0.6017 MB / 0.5476 GB, free: 81.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.6983, allocations: 3.938 kB / 0.5476 GB, free: 81.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/0.6983, allocations: 20 kB / 0.5476 GB, free: 81.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.627e-05/0.6984, allocations: 24.77 kB / 0.5476 GB, free: 81.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005527/0.6989, allocations: 442.7 kB / 0.548 GB, free: 80.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.7014, allocations: 2.871 MB / 0.5508 GB, free: 77.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.7017, allocations: 224.6 kB / 0.551 GB, free: 77.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.7019, allocations: 146 kB / 0.5512 GB, free: 77.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.702, allocations: 7.984 kB / 0.5512 GB, free: 77.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.702, allocations: 42.5 kB / 0.5512 GB, free: 77.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.702, allocations: 0 / 0.5512 GB, free: 77.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001194/0.7032, allocations: 0.8516 MB / 0.5521 GB, free: 76.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.7032, allocations: 85.09 kB / 0.5521 GB, free: 76.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.7035, allocations: 286.6 kB / 0.5524 GB, free: 76.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.7035, allocations: 29.7 kB / 0.5525 GB, free: 76.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.7036, allocations: 275.2 kB / 0.5527 GB, free: 75.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.7037, allocations: 106.5 kB / 0.5528 GB, free: 75.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.7037, allocations: 12 kB / 0.5528 GB, free: 75.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7038, allocations: 350.8 kB / 0.5532 GB, free: 75.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.704, allocations: 137.1 kB / 0.5533 GB, free: 75.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.7042, allocations: 339.7 kB / 0.5536 GB, free: 74.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.7045, allocations: 220.2 kB / 0.5538 GB, free: 74.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.7045, allocations: 0 / 0.5538 GB, free: 74.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0005883/0.7051, allocations: 0.5163 MB / 0.5543 GB, free: 74.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.7051, allocations: 11.98 kB / 0.5543 GB, free: 74.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.7051, allocations: 8.906 kB / 0.5543 GB, free: 74.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.7052, allocations: 8 kB / 0.5544 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.7055, allocations: 123.8 kB / 0.5545 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.7056, allocations: 11.94 kB / 0.5545 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.7058, allocations: 27.92 kB / 0.5545 GB, free: 73.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.7058, allocations: 24 kB / 0.5545 GB, free: 73.9 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 8.569e-05/0.7059, allocations: 132.8 kB / 0.5547 GB, free: 73.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.706, allocations: 35.53 kB / 0.5547 GB, free: 73.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005061/0.7065, allocations: 353.6 kB / 0.555 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/0.7065, allocations: 7.984 kB / 0.555 GB, free: 73.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.7065, allocations: 3.953 kB / 0.555 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.7065, allocations: 0 / 0.555 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.7077, allocations: 0.8718 MB / 0.5559 GB, free: 72.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.7077, allocations: 4 kB / 0.5559 GB, free: 72.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.708, allocations: 67.94 kB / 0.556 GB, free: 72.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.708, allocations: 4 kB / 0.556 GB, free: 72.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.708, allocations: 8 kB / 0.556 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.708, allocations: 4 kB / 0.556 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.708, allocations: 3.938 kB / 0.556 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.7086, allocations: 0.63 MB / 0.5566 GB, free: 71.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.862e-05/0.7087, allocations: 112.7 kB / 0.5567 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.7088, allocations: 8 kB / 0.5567 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.7089, allocations: 11.98 kB / 0.5567 GB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.709, allocations: 27.92 kB / 0.5568 GB, free: 71.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.709, allocations: 8 kB / 0.5568 GB, free: 71.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000165/0.7092, allocations: 218.2 kB / 0.557 GB, free: 71.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7092, allocations: 0 / 0.557 GB, free: 71.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004392/0.7096, allocations: 104 kB / 0.5571 GB, free: 71.15 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.0008531/0.7105, allocations: 1.469 MB / 0.5585 GB, free: 69.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004524/0.711, allocations: 367.6 kB / 0.5589 GB, free: 69.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.711, allocations: 1.812 kB / 0.5589 GB, free: 69.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.7111, allocations: 145.4 kB / 0.559 GB, free: 69.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.7115, allocations: 60.06 kB / 0.5591 GB, free: 69.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.713, allocations: 0.9035 MB / 0.5599 GB, free: 68.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.7134, allocations: 0.8748 MB / 0.5608 GB, free: 67.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000315/0.7137, allocations: 135.1 kB / 0.5609 GB, free: 67.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.7139, allocations: 139.4 kB / 0.561 GB, free: 66.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.733e-06/0.7139, allocations: 0 / 0.561 GB, free: 66.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.7333, allocations: 6.593 MB / 0.5675 GB, free: 60.37 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.7336, allocations: 165 kB / 0.5676 GB, free: 60.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/3.097, allocations: 0 / 0.5676 GB, free: 60.13 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)