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.001065/0.001065, allocations: 178.7 kB / 16.38 MB, free: 5.766 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.39/1.39, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001637/0.001638, allocations: 106.5 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1763/0.1763, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 8 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09884, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3915/0.4904, allocations: 95.29 MB / 0.5394 GB, free: 88 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.4908, allocations: 87.06 kB / 0.5395 GB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0383/0.5291, allocations: 13.21 MB / 0.5524 GB, free: 4.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5292, allocations: 0 / 0.5524 GB, free: 4.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.5292, allocations: 8 kB / 0.5524 GB, free: 4.648 MB / 362.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.001766/0.531, allocations: 0.7264 MB / 0.5531 GB, free: 3.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.786e-05/0.5311, allocations: 16.02 kB / 0.5532 GB, free: 3.887 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002461/0.5313, allocations: 86.59 kB / 0.5532 GB, free: 3.816 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006799/0.532, allocations: 86.8 kB / 0.5533 GB, free: 3.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.5346, allocations: 0.8595 MB / 0.5542 GB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.5346, allocations: 28.12 kB / 0.5542 GB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.5347, allocations: 50.97 kB / 0.5542 GB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.5359, allocations: 0.6541 MB / 0.5549 GB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.5359, allocations: 3.938 kB / 0.5549 GB, free: 2.391 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.536, allocations: 18.5 kB / 0.5549 GB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.5361, allocations: 52.17 kB / 0.555 GB, free: 2.336 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.5371, allocations: 0.6351 MB / 0.5556 GB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.5409, allocations: 2.437 MB / 0.558 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005636/0.5415, allocations: 341.6 kB / 0.5583 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.5416, allocations: 4.625 kB / 0.5583 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.5416, allocations: 37.75 kB / 0.5583 GB, free: 15.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.246e-06/0.5416, allocations: 0 / 0.5583 GB, free: 15.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002789/0.5444, allocations: 1.703 MB / 0.56 GB, free: 13.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.5445, allocations: 85.52 kB / 0.5601 GB, free: 13.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.5448, allocations: 262.7 kB / 0.5603 GB, free: 13.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.5449, allocations: 28.64 kB / 0.5603 GB, free: 13.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.545, allocations: 243 kB / 0.5606 GB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.5452, allocations: 167.7 kB / 0.5607 GB, free: 13.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.5452, allocations: 10.38 kB / 0.5607 GB, free: 13.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.5454, allocations: 347.4 kB / 0.5611 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.5457, allocations: 219.5 kB / 0.5613 GB, free: 12.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.5461, allocations: 360.9 kB / 0.5616 GB, free: 12.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.5465, allocations: 286.1 kB / 0.5619 GB, free: 12.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5465, allocations: 0 / 0.5619 GB, free: 12.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009391/0.5475, allocations: 0.6399 MB / 0.5625 GB, free: 11.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.5475, allocations: 7.984 kB / 0.5625 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.5475, allocations: 11.94 kB / 0.5625 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.5476, allocations: 4 kB / 0.5625 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.548, allocations: 111.8 kB / 0.5627 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.548, allocations: 11.94 kB / 0.5627 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.5483, allocations: 31.84 kB / 0.5627 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/0.5484, allocations: 23.62 kB / 0.5627 GB, free: 11.54 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 () * Number of clocked 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 0.0003164/0.5487, allocations: 218.7 kB / 0.5629 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.5488, allocations: 35.53 kB / 0.563 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009407/0.5498, allocations: 0.5418 MB / 0.5635 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/0.5498, allocations: 12 kB / 0.5635 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.5498, allocations: 0 / 0.5635 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.5498, allocations: 11.97 kB / 0.5635 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.5519, allocations: 1.173 MB / 0.5647 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.552, allocations: 4 kB / 0.5647 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003703/0.5523, allocations: 79.19 kB / 0.5647 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.5523, allocations: 0 / 0.5647 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.5524, allocations: 7.688 kB / 0.5647 GB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.5524, allocations: 8.094 kB / 0.5648 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5524, allocations: 0 / 0.5648 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.5537, allocations: 0.9527 MB / 0.5657 GB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.5538, allocations: 108.6 kB / 0.5658 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.643e-05/0.5539, allocations: 14.41 kB / 0.5658 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.5541, allocations: 23.33 kB / 0.5658 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.5542, allocations: 23.47 kB / 0.5658 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.5542, allocations: 8 kB / 0.5659 GB, free: 8.875 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002181/0.5544, allocations: 203.9 kB / 0.566 GB, free: 8.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5544, allocations: 4 kB / 0.5661 GB, free: 8.703 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005708/0.555, allocations: 125.3 kB / 0.5662 GB, free: 8.594 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 () * Number of clocked 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.001777/0.5568, allocations: 1.81 MB / 0.5679 GB, free: 6.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008081/0.5576, allocations: 0.5303 MB / 0.5685 GB, free: 6.582 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5576, allocations: 0 / 0.5685 GB, free: 6.582 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003104/0.5579, allocations: 247.8 kB / 0.5687 GB, free: 6.414 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.5584, allocations: 66.88 kB / 0.5688 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.5637, allocations: 5.891 MB / 0.5745 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005879/0.5643, allocations: 0.8858 MB / 0.5754 GB, free: 15.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.5647, allocations: 123.2 kB / 0.5755 GB, free: 15.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.5649, allocations: 146.7 kB / 0.5756 GB, free: 15.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.093e-06/0.5649, allocations: 0 / 0.5756 GB, free: 15.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.5874, allocations: 7.543 MB / 0.583 GB, free: 8.227 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/0.5877, allocations: 188.9 kB / 0.5832 GB, free: 7.977 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.732, allocations: 4 kB / 0.5832 GB, free: 7.973 MB / 394.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)