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.002089/0.002089, allocations: 185.4 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001073/0.001072, allocations: 87.56 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2849/0.2849, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.762e-05/3.77e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1003, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4545/0.5549, allocations: 99.95 MB / 0.5597 GB, free: 3.605 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003161/0.5552, allocations: 91.95 kB / 0.5598 GB, free: 3.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05239/0.6076, allocations: 11.51 MB / 0.5711 GB, free: 7.863 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6077, allocations: 4 kB / 0.5711 GB, free: 7.859 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.6077, allocations: 8 kB / 0.5711 GB, free: 7.852 MB / 410.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.001775/0.6095, allocations: 0.7677 MB / 0.5718 GB, free: 7.031 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.6096, allocations: 12.03 kB / 0.5718 GB, free: 7.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.6098, allocations: 82.53 kB / 0.5719 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.61, allocations: 63.2 kB / 0.572 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005095/0.6151, allocations: 1.217 MB / 0.5732 GB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.6152, allocations: 32.94 kB / 0.5732 GB, free: 5.582 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.6153, allocations: 40 kB / 0.5732 GB, free: 5.543 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.6166, allocations: 0.5192 MB / 0.5737 GB, free: 4.984 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.6166, allocations: 4 kB / 0.5737 GB, free: 4.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.6167, allocations: 16 kB / 0.5738 GB, free: 4.965 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.937e-05/0.6168, allocations: 20.77 kB / 0.5738 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.6178, allocations: 382.8 kB / 0.5741 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.6215, allocations: 1.935 MB / 0.576 GB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009031/0.6224, allocations: 325.4 kB / 0.5763 GB, free: 2.188 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004849/0.6229, allocations: 177.7 kB / 0.5765 GB, free: 2.008 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.116e-05/0.623, allocations: 7.953 kB / 0.5765 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005594/0.6235, allocations: 280.2 kB / 0.5768 GB, free: 1.695 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.575e-06/0.6236, allocations: 0 / 0.5768 GB, free: 1.695 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.002429/0.626, allocations: 1.054 MB / 0.5778 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.6261, allocations: 170.2 kB / 0.578 GB, free: 376 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.6267, allocations: 339 kB / 0.5783 GB, free: 28 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.298e-05/0.6268, allocations: 37.73 kB / 0.5783 GB, free: 15.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/0.6271, allocations: 330 kB / 0.5787 GB, free: 15.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.6273, allocations: 118.4 kB / 0.5788 GB, free: 15.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.6273, allocations: 11.94 kB / 0.5788 GB, free: 15.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.6275, allocations: 330.8 kB / 0.5791 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/0.6278, allocations: 117.1 kB / 0.5792 GB, free: 15.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004739/0.6283, allocations: 282.1 kB / 0.5795 GB, free: 14.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.6287, allocations: 181.6 kB / 0.5796 GB, free: 14.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.6288, allocations: 4 kB / 0.5797 GB, free: 14.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00114/0.6299, allocations: 487.8 kB / 0.5801 GB, free: 14.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.63, allocations: 45.69 kB / 0.5802 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.63, allocations: 11.94 kB / 0.5802 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.249e-05/0.6301, allocations: 8 kB / 0.5802 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007803/0.6309, allocations: 107.8 kB / 0.5803 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.617e-05/0.6309, allocations: 11.94 kB / 0.5803 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.6314, allocations: 27.98 kB / 0.5803 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.622e-05/0.6315, allocations: 27.98 kB / 0.5803 GB, free: 13.81 MB / 426.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.0001995/0.6317, allocations: 186.4 kB / 0.5805 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.708e-05/0.6318, allocations: 47.39 kB / 0.5806 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.6329, allocations: 443.3 kB / 0.581 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.6329, allocations: 4 kB / 0.581 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.6329, allocations: 4 kB / 0.581 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.633, allocations: 3.984 kB / 0.581 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.6348, allocations: 0.9495 MB / 0.5819 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.6349, allocations: 4.031 kB / 0.5819 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/0.6355, allocations: 67.89 kB / 0.582 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/0.6355, allocations: 4 kB / 0.582 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.6356, allocations: 8 kB / 0.582 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.6356, allocations: 0 / 0.582 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.6356, allocations: 7.938 kB / 0.582 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.6371, allocations: 0.7233 MB / 0.5827 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.6374, allocations: 136.5 kB / 0.5829 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-05/0.6375, allocations: 11.98 kB / 0.5829 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.6379, allocations: 16 kB / 0.5829 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.638, allocations: 19.97 kB / 0.5829 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.6381, allocations: 43.95 kB / 0.5829 GB, free: 11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004862/0.6386, allocations: 261.2 kB / 0.5832 GB, free: 10.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.477e-06/0.6386, allocations: 0 / 0.5832 GB, free: 10.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007166/0.6393, allocations: 115.9 kB / 0.5833 GB, free: 10.64 MB / 426.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.002043/0.6414, allocations: 1.446 MB / 0.5847 GB, free: 9.145 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009386/0.6424, allocations: 399 kB / 0.5851 GB, free: 8.742 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6424, allocations: 0 / 0.5851 GB, free: 8.742 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.6429, allocations: 264.6 kB / 0.5853 GB, free: 8.473 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.6437, allocations: 105.6 kB / 0.5854 GB, free: 8.371 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.6461, allocations: 0.8752 MB / 0.5863 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.6468, allocations: 0.9014 MB / 0.5872 GB, free: 6.512 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.6472, allocations: 179.4 kB / 0.5874 GB, free: 6.336 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6472, allocations: 0 / 0.5874 GB, free: 6.336 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.997/3.644, allocations: 8.368 MB / 0.5955 GB, free: 13.96 MB / 442.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)