Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 180.3 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009078/0.0009077, allocations: 85.31 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1888/0.1888, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2402/0.4291, allocations: 62.45 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.5604, allocations: 56.32 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3863/0.9468, allocations: 99.26 MB / 0.5524 GB, free: 11.22 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.9472, allocations: 91.94 kB / 0.5525 GB, free: 11.13 MB / 394.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.03801/0.9852, allocations: 11.87 MB / 0.5641 GB, free: 15.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.9853, allocations: 11.98 kB / 0.5641 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/0.9856, allocations: 63.19 kB / 0.5642 GB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003906/0.9895, allocations: 1.241 MB / 0.5654 GB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.9895, allocations: 12 kB / 0.5654 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.9897, allocations: 24 kB / 0.5654 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008464/0.9905, allocations: 365.8 kB / 0.5658 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008749/0.9914, allocations: 485.6 kB / 0.5662 GB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.9914, allocations: 3.938 kB / 0.5662 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.9915, allocations: 4 kB / 0.5662 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.292e-05/0.9916, allocations: 20.78 kB / 0.5663 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.9944, allocations: 1.864 MB / 0.5681 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006119/0.995, allocations: 297.4 kB / 0.5684 GB, free: 10.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.9953, allocations: 174 kB / 0.5685 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.9954, allocations: 4 kB / 0.5685 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003525/0.9958, allocations: 260.1 kB / 0.5688 GB, free: 10.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 4.328e-06/0.9958, allocations: 3.938 kB / 0.5688 GB, free: 10.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001627/0.9974, allocations: 0.8654 MB / 0.5696 GB, free: 9.125 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.9975, allocations: 166.2 kB / 0.5698 GB, free: 8.926 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.998, allocations: 325 kB / 0.5701 GB, free: 8.598 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.998, allocations: 25.7 kB / 0.5701 GB, free: 8.566 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.9981, allocations: 243.6 kB / 0.5704 GB, free: 8.324 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.19e-05/0.9982, allocations: 106.4 kB / 0.5705 GB, free: 8.219 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.9983, allocations: 0 / 0.5705 GB, free: 8.219 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.9984, allocations: 362.8 kB / 0.5708 GB, free: 7.855 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.9986, allocations: 109 kB / 0.5709 GB, free: 7.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.9989, allocations: 272.5 kB / 0.5712 GB, free: 7.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.9992, allocations: 157 kB / 0.5713 GB, free: 7.262 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.9992, allocations: 3.938 kB / 0.5713 GB, free: 7.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006517/0.9999, allocations: 417 kB / 0.5717 GB, free: 6.844 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.9999, allocations: 11.92 kB / 0.5717 GB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.9999, allocations: 8 kB / 0.5717 GB, free: 6.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.9999, allocations: 8 kB / 0.5718 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/1, allocations: 103.8 kB / 0.5719 GB, free: 6.715 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/1, allocations: 11.98 kB / 0.5719 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/1.001, allocations: 24.14 kB / 0.5719 GB, free: 6.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/1.001, allocations: 31.98 kB / 0.5719 GB, free: 6.648 MB / 410.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.0001633/1.001, allocations: 158.4 kB / 0.5721 GB, free: 6.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/1.001, allocations: 47.44 kB / 0.5721 GB, free: 6.434 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005855/1.002, allocations: 357.5 kB / 0.5725 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/1.002, allocations: 4 kB / 0.5725 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.002, allocations: 0 / 0.5725 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/1.002, allocations: 4.047 kB / 0.5725 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/1.003, allocations: 0.8038 MB / 0.5732 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.003, allocations: 0 / 0.5732 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/1.003, allocations: 63.97 kB / 0.5733 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/1.003, allocations: 3.938 kB / 0.5733 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/1.003, allocations: 7.984 kB / 0.5733 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/1.003, allocations: 7.938 kB / 0.5733 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.003, allocations: 3.906 kB / 0.5733 GB, free: 5.133 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008571/1.004, allocations: 0.6372 MB / 0.574 GB, free: 4.461 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001212/1.005, allocations: 1.18 MB / 0.5751 GB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/1.006, allocations: 148.5 kB / 0.5752 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/1.006, allocations: 4 kB / 0.5752 GB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/1.006, allocations: 15.95 kB / 0.5753 GB, free: 3.059 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/1.006, allocations: 23.97 kB / 0.5753 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.755e-05/1.006, allocations: 27.97 kB / 0.5753 GB, free: 3.008 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002577/1.006, allocations: 243.2 kB / 0.5755 GB, free: 2.773 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001172/1.007, allocations: 104 kB / 0.5756 GB, free: 2.672 MB / 410.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.0002887/1.008, allocations: 143 kB / 0.5758 GB, free: 2.523 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005801/1.008, allocations: 354.1 kB / 0.5761 GB, free: 2.172 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.008, allocations: 5.312 kB / 0.5761 GB, free: 2.168 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/1.009, allocations: 221.5 kB / 0.5763 GB, free: 1.945 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/1.009, allocations: 81.72 kB / 0.5764 GB, free: 1.867 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/1.011, allocations: 0.6975 MB / 0.5771 GB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006971/1.011, allocations: 0.94 MB / 0.578 GB, free: 164 kB / 410.7 MB Notification: Performance of SimCode: time 2.264e-06/1.012, allocations: 0 / 0.578 GB, free: 164 kB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)