Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001555/0.001555, allocations: 183.8 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.961/1.961, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001134/0.001134, allocations: 90.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2561/0.2561, allocations: 38.05 MB / 356.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006171/0.000617, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1087, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5427/0.6515, allocations: 100 MB / 0.5656 GB, free: 15.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005067/0.6521, allocations: 95.94 kB / 0.5657 GB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07785/0.7299, allocations: 11.52 MB / 0.5769 GB, free: 5.312 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.73, allocations: 3.938 kB / 0.577 GB, free: 5.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.331e-05/0.7301, allocations: 8 kB / 0.577 GB, free: 5.301 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003086/0.7332, allocations: 0.8406 MB / 0.5778 GB, free: 4.441 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.7333, allocations: 8.031 kB / 0.5778 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002137/0.7335, allocations: 84.08 kB / 0.5779 GB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002298/0.7338, allocations: 63.2 kB / 0.5779 GB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007384/0.7412, allocations: 1.239 MB / 0.5791 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-05/0.7413, allocations: 30.38 kB / 0.5792 GB, free: 3.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.7415, allocations: 38.62 kB / 0.5792 GB, free: 3.164 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.7433, allocations: 0.5286 MB / 0.5797 GB, free: 2.738 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.7434, allocations: 3.938 kB / 0.5797 GB, free: 2.734 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.543e-05/0.7435, allocations: 23.05 kB / 0.5797 GB, free: 2.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-05/0.7436, allocations: 20.98 kB / 0.5798 GB, free: 2.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.7452, allocations: 391 kB / 0.5801 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.7508, allocations: 1.928 MB / 0.582 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.7522, allocations: 328.8 kB / 0.5823 GB, free: 440 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.827e-05/0.7523, allocations: 12 kB / 0.5823 GB, free: 428 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000812/0.7531, allocations: 279.9 kB / 0.5826 GB, free: 164 kB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 4.698e-06/0.7531, allocations: 0 / 0.5826 GB, free: 164 kB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.004887/0.758, allocations: 1.447 MB / 0.584 GB, free: 14.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.7582, allocations: 169.5 kB / 0.5842 GB, free: 14.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008468/0.7591, allocations: 345.7 kB / 0.5845 GB, free: 14.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/0.7592, allocations: 29.33 kB / 0.5845 GB, free: 14.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/0.7596, allocations: 334.3 kB / 0.5849 GB, free: 14.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.7598, allocations: 116.6 kB / 0.585 GB, free: 13.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.7599, allocations: 15.62 kB / 0.585 GB, free: 13.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.7601, allocations: 334 kB / 0.5853 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.7606, allocations: 120.5 kB / 0.5854 GB, free: 13.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007/0.7614, allocations: 286.9 kB / 0.5857 GB, free: 13.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/0.7621, allocations: 188.3 kB / 0.5859 GB, free: 13.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.7621, allocations: 0 / 0.5859 GB, free: 13.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002032/0.7642, allocations: 0.5886 MB / 0.5865 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/0.7643, allocations: 37.69 kB / 0.5865 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.7643, allocations: 7.938 kB / 0.5865 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.7646, allocations: 36.22 kB / 0.5865 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.7657, allocations: 96.17 kB / 0.5866 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.7678, allocations: 1.393 MB / 0.588 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/0.7687, allocations: 27.53 kB / 0.588 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.7689, allocations: 35.16 kB / 0.588 GB, free: 10.87 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006741/0.7696, allocations: 246.9 kB / 0.5883 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.7697, allocations: 47.44 kB / 0.5883 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.7717, allocations: 0.547 MB / 0.5889 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.7718, allocations: 7.953 kB / 0.5889 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.7718, allocations: 0 / 0.5889 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.7718, allocations: 0 / 0.5889 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/0.7751, allocations: 1.057 MB / 0.5899 GB, free: 9.207 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.7752, allocations: 4 kB / 0.5899 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009004/0.7761, allocations: 63.92 kB / 0.59 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.7763, allocations: 16.61 kB / 0.59 GB, free: 9.125 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.513e-05/0.7764, allocations: 17.42 kB / 0.59 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.7783, allocations: 1.368 MB / 0.5913 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.7784, allocations: 0 / 0.5913 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.7809, allocations: 0.8266 MB / 0.5921 GB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004398/0.7814, allocations: 145.7 kB / 0.5923 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.7816, allocations: 14.58 kB / 0.5923 GB, free: 6.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/0.7822, allocations: 23.48 kB / 0.5923 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.7824, allocations: 18.28 kB / 0.5923 GB, free: 6.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.7825, allocations: 34.72 kB / 0.5924 GB, free: 6.719 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007106/0.7832, allocations: 265 kB / 0.5926 GB, free: 6.512 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.7833, allocations: 3.938 kB / 0.5926 GB, free: 6.508 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00141/0.7847, allocations: 123.5 kB / 0.5927 GB, free: 6.398 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003537/0.7883, allocations: 1.555 MB / 0.5943 GB, free: 4.949 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.7901, allocations: 0.5045 MB / 0.5947 GB, free: 4.508 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.7902, allocations: 7.938 kB / 0.5948 GB, free: 4.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000999/0.7912, allocations: 377.1 kB / 0.5951 GB, free: 4.176 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.7925, allocations: 88.66 kB / 0.5952 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/0.8045, allocations: 6.432 MB / 0.6015 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009743/0.8055, allocations: 0.8947 MB / 0.6024 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005404/0.8061, allocations: 178.2 kB / 0.6025 GB, free: 12.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8061, allocations: 0 / 0.6025 GB, free: 12.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.996/3.802, allocations: 10.17 MB / 0.6125 GB, free: 2.863 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)