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.002086/0.002086, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.084/2.084, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 86.59 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2604/0.2604, allocations: 37.98 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.073e-05/2.083e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4993/0.6033, allocations: 99.29 MB / 0.5523 GB, free: 9.316 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.6037, allocations: 94.25 kB / 0.5524 GB, free: 9.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04612/0.6498, allocations: 11.39 MB / 0.5635 GB, free: 2.082 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.6498, allocations: 4 kB / 0.5635 GB, free: 2.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.025e-05/0.6499, allocations: 8 kB / 0.5635 GB, free: 2.07 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001458/0.6514, allocations: 0.7646 MB / 0.5643 GB, free: 1.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.6514, allocations: 8.031 kB / 0.5643 GB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.6516, allocations: 63.2 kB / 0.5643 GB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004419/0.656, allocations: 1.214 MB / 0.5655 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.6561, allocations: 12 kB / 0.5655 GB, free: 164 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.81e-05/0.6562, allocations: 24 kB / 0.5656 GB, free: 140 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009465/0.6571, allocations: 353.1 kB / 0.5659 GB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.6582, allocations: 482.6 kB / 0.5664 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.6582, allocations: 3.938 kB / 0.5664 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.6583, allocations: 4 kB / 0.5664 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.321e-05/0.6584, allocations: 20.73 kB / 0.5664 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/0.662, allocations: 1.858 MB / 0.5682 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.6633, allocations: 303.6 kB / 0.5685 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.6638, allocations: 173.2 kB / 0.5687 GB, free: 13.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.6638, allocations: 7.938 kB / 0.5687 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.6644, allocations: 269.8 kB / 0.5689 GB, free: 13.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.325e-06/0.6644, allocations: 0 / 0.5689 GB, free: 13.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002205/0.6666, allocations: 0.9035 MB / 0.5698 GB, free: 12.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.6667, allocations: 165.3 kB / 0.57 GB, free: 12.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005405/0.6673, allocations: 330.6 kB / 0.5703 GB, free: 11.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.6673, allocations: 25.7 kB / 0.5703 GB, free: 11.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.6676, allocations: 332.4 kB / 0.5706 GB, free: 11.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.6678, allocations: 119.8 kB / 0.5707 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.6679, allocations: 0 / 0.5707 GB, free: 11.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.668, allocations: 334.2 kB / 0.571 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.6683, allocations: 109.2 kB / 0.5712 GB, free: 11.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.6688, allocations: 260.5 kB / 0.5714 GB, free: 10.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.6692, allocations: 154.9 kB / 0.5715 GB, free: 10.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.6692, allocations: 4 kB / 0.5716 GB, free: 10.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001042/0.6702, allocations: 404 kB / 0.5719 GB, free: 10.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.784e-05/0.6703, allocations: 37.69 kB / 0.572 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.6703, allocations: 4 kB / 0.572 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.261e-05/0.6704, allocations: 11.95 kB / 0.572 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000783/0.6712, allocations: 115.4 kB / 0.5721 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.6712, allocations: 8 kB / 0.5721 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.6717, allocations: 20.05 kB / 0.5721 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.6718, allocations: 35.55 kB / 0.5722 GB, free: 10.16 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002075/0.6721, allocations: 158.2 kB / 0.5723 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008942/0.673, allocations: 368.7 kB / 0.5727 GB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.6e-05/0.6731, allocations: 47.39 kB / 0.5727 GB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009773/0.6741, allocations: 395.1 kB / 0.5731 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.6741, allocations: 4 kB / 0.5731 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.6741, allocations: 0 / 0.5731 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.6741, allocations: 0 / 0.5731 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.6758, allocations: 0.8232 MB / 0.5739 GB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.6759, allocations: 3.953 kB / 0.5739 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/0.6765, allocations: 63.59 kB / 0.574 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.6765, allocations: 4 kB / 0.574 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.6765, allocations: 12.02 kB / 0.574 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.6766, allocations: 4 kB / 0.574 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.6766, allocations: 0 / 0.574 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.6779, allocations: 0.6584 MB / 0.5746 GB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.6782, allocations: 142.3 kB / 0.5748 GB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.323e-05/0.6783, allocations: 7.984 kB / 0.5748 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.6787, allocations: 8 kB / 0.5748 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.6788, allocations: 23.47 kB / 0.5748 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.367e-05/0.6789, allocations: 35.77 kB / 0.5748 GB, free: 7.805 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004072/0.6793, allocations: 243.7 kB / 0.5751 GB, free: 7.617 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.667e-06/0.6793, allocations: 4 kB / 0.5751 GB, free: 7.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007397/0.6801, allocations: 103.9 kB / 0.5752 GB, free: 7.512 MB / 378.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001901/0.682, allocations: 1.375 MB / 0.5765 GB, free: 6.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008692/0.6829, allocations: 377.4 kB / 0.5769 GB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6829, allocations: 448 / 0.5769 GB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004476/0.6834, allocations: 248.6 kB / 0.5771 GB, free: 5.758 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008736/0.6843, allocations: 89.09 kB / 0.5772 GB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.6868, allocations: 0.8547 MB / 0.578 GB, free: 4.875 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.6875, allocations: 0.8949 MB / 0.5789 GB, free: 3.973 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.6878, allocations: 179.1 kB / 0.5791 GB, free: 3.918 MB / 378.7 MB Notification: Performance of SimCode: time 1.512e-06/0.6879, allocations: 0 / 0.5791 GB, free: 3.918 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.743/3.431, allocations: 8.345 MB / 0.5872 GB, free: 11.67 MB / 394.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)