Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001077/0.001077, allocations: 178.1 kB / 8.352 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.604/1.604, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001737/0.001737, allocations: 119.9 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1651/0.1651, allocations: 37.93 MB / 330.9 MB, free: 2.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.054e-05, allocations: 7.938 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3599, allocations: 53.22 MB / 443.7 MB, free: 17.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.4996, allocations: 94.54 MB / 0.5256 GB, free: 3.078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.4999, allocations: 79.91 kB / 0.5257 GB, free: 3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3146/0.8145, allocations: 13.07 MB / 0.5384 GB, free: 89.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.8145, allocations: 0 / 0.5384 GB, free: 89.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.8146, allocations: 7.312 kB / 0.5385 GB, free: 89.3 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001106/0.8157, allocations: 0.6858 MB / 0.5391 GB, free: 88.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.8158, allocations: 11.78 kB / 0.5391 GB, free: 88.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004936/0.8163, allocations: 91.31 kB / 0.5392 GB, free: 88.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.8181, allocations: 0.85 MB / 0.5401 GB, free: 88.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.8181, allocations: 11.38 kB / 0.5401 GB, free: 88.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.8182, allocations: 25.09 kB / 0.5401 GB, free: 88.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006545/0.8189, allocations: 468.9 kB / 0.5405 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007332/0.8196, allocations: 0.6013 MB / 0.5411 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.8196, allocations: 0 / 0.5411 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.8197, allocations: 0 / 0.5411 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.8198, allocations: 50.64 kB / 0.5412 GB, free: 87.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003094/0.8229, allocations: 2.424 MB / 0.5435 GB, free: 85.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.8233, allocations: 345.7 kB / 0.5439 GB, free: 85.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.8236, allocations: 254.1 kB / 0.5441 GB, free: 84.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.8236, allocations: 5.203 kB / 0.5441 GB, free: 84.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.8236, allocations: 42.55 kB / 0.5442 GB, free: 84.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 1.683e-06/0.8236, allocations: 0 / 0.5442 GB, free: 84.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002416/0.8261, allocations: 1.57 MB / 0.5457 GB, free: 83.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.8261, allocations: 81.39 kB / 0.5458 GB, free: 83.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.8263, allocations: 226.2 kB / 0.546 GB, free: 82.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.8263, allocations: 29.69 kB / 0.546 GB, free: 82.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.033e-05/0.8264, allocations: 240.4 kB / 0.5462 GB, free: 82.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.832e-05/0.8265, allocations: 157.7 kB / 0.5464 GB, free: 82.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.8265, allocations: 0 / 0.5464 GB, free: 82.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.8266, allocations: 350.7 kB / 0.5467 GB, free: 82.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.8268, allocations: 221.1 kB / 0.5469 GB, free: 81.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.8271, allocations: 357.6 kB / 0.5473 GB, free: 81.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005956/0.8277, allocations: 380.6 kB / 0.5476 GB, free: 81.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8277, allocations: 4 kB / 0.5476 GB, free: 81.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001013/0.8288, allocations: 0.7193 MB / 0.5483 GB, free: 80.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.8288, allocations: 7.953 kB / 0.5484 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.8288, allocations: 4 kB / 0.5484 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.8288, allocations: 11.94 kB / 0.5484 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.8292, allocations: 111.9 kB / 0.5485 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.8292, allocations: 11.94 kB / 0.5485 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.8295, allocations: 19.97 kB / 0.5485 GB, free: 80.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.8295, allocations: 24.33 kB / 0.5485 GB, free: 80.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * Array equations: 3 * 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.804e-05/0.8296, allocations: 120.8 kB / 0.5486 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008674/0.8305, allocations: 0.5965 MB / 0.5492 GB, free: 79.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.8305, allocations: 39.48 kB / 0.5493 GB, free: 79.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000956/0.8315, allocations: 0.6337 MB / 0.5499 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.298e-05/0.8316, allocations: 23.98 kB / 0.5499 GB, free: 78.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8316, allocations: 0 / 0.5499 GB, free: 78.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.8316, allocations: 7.969 kB / 0.5499 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.8334, allocations: 1.227 MB / 0.5511 GB, free: 77.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.8334, allocations: 4 kB / 0.5511 GB, free: 77.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.8337, allocations: 75.88 kB / 0.5512 GB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.8337, allocations: 8.094 kB / 0.5512 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.8338, allocations: 0 / 0.5512 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.8338, allocations: 4 kB / 0.5512 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.8338, allocations: 7.875 kB / 0.5512 GB, free: 77.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.835, allocations: 1.057 MB / 0.5522 GB, free: 76.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.8351, allocations: 104.7 kB / 0.5523 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.748e-05/0.8351, allocations: 15.98 kB / 0.5524 GB, free: 76.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.8354, allocations: 19.97 kB / 0.5524 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.176e-05/0.8354, allocations: 19.97 kB / 0.5524 GB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.8355, allocations: 8 kB / 0.5524 GB, free: 76.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.8356, allocations: 182 kB / 0.5526 GB, free: 75.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8356, allocations: 3.938 kB / 0.5526 GB, free: 75.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006229/0.8362, allocations: 119.9 kB / 0.5527 GB, free: 75.79 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 (34): * Single equations (assignments): 30 * Array equations: 3 * 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.001481/0.8377, allocations: 1.908 MB / 0.5546 GB, free: 73.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006441/0.8384, allocations: 0.5184 MB / 0.5551 GB, free: 73.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.8384, allocations: 4.312 kB / 0.5551 GB, free: 73.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.8386, allocations: 255.8 kB / 0.5553 GB, free: 73.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.839, allocations: 61.38 kB / 0.5554 GB, free: 72.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.8406, allocations: 1.058 MB / 0.5564 GB, free: 71.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.8409, allocations: 0.8786 MB / 0.5573 GB, free: 70.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003125/0.8413, allocations: 135.1 kB / 0.5574 GB, free: 70.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.8415, allocations: 143.4 kB / 0.5575 GB, free: 70.7 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.8415, allocations: 0 / 0.5575 GB, free: 70.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.8692, allocations: 7.147 MB / 0.5645 GB, free: 63.55 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.8695, allocations: 134.2 kB / 0.5646 GB, free: 63.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.851, allocations: 0 / 0.5646 GB, free: 63.37 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)