Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",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.001129/0.001129, allocations: 182.2 kB / 8.129 MB, free: 2.223 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.307/1.307, 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.0008729/0.0008729, allocations: 93.86 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 37.98 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2015/0.3654, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.4784, allocations: 56.31 MB / 466.4 MB, free: 6.398 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3665/0.845, allocations: 99.39 MB / 0.5525 GB, free: 11.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.8453, allocations: 87.95 kB / 0.5526 GB, free: 11.02 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.05225/0.8976, allocations: 17.51 MB / 0.5697 GB, free: 9.234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.8977, allocations: 15.94 kB / 0.5697 GB, free: 9.219 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002818/0.8979, allocations: 90.88 kB / 0.5698 GB, free: 9.129 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004753/0.9027, allocations: 1.693 MB / 0.5715 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.9028, allocations: 20 kB / 0.5715 GB, free: 7.367 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.9029, allocations: 43.98 kB / 0.5715 GB, free: 7.324 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001167/0.9041, allocations: 0.5766 MB / 0.5721 GB, free: 6.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.9053, allocations: 0.7137 MB / 0.5728 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.9054, allocations: 3.906 kB / 0.5728 GB, free: 5.996 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.738e-05/0.9054, allocations: 12 kB / 0.5728 GB, free: 5.984 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.827e-05/0.9055, allocations: 33.3 kB / 0.5729 GB, free: 5.953 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004317/0.9098, allocations: 2.557 MB / 0.5754 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.9109, allocations: 0.5515 MB / 0.5759 GB, free: 2.719 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006495/0.9115, allocations: 355.1 kB / 0.5762 GB, free: 2.367 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.859e-05/0.9116, allocations: 4.438 kB / 0.5762 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.9122, allocations: 447.3 kB / 0.5767 GB, free: 1.887 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.346e-06/0.9122, allocations: 0 / 0.5767 GB, free: 1.887 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.002583/0.9148, allocations: 1.388 MB / 0.578 GB, free: 452 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/0.915, allocations: 251.9 kB / 0.5783 GB, free: 144 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.9157, allocations: 462.2 kB / 0.5787 GB, free: 15.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.9158, allocations: 25.7 kB / 0.5787 GB, free: 15.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.916, allocations: 315.4 kB / 0.579 GB, free: 15.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.9162, allocations: 197.1 kB / 0.5792 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.9162, allocations: 0 / 0.5792 GB, free: 15.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.9164, allocations: 382.8 kB / 0.5796 GB, free: 14.76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.9168, allocations: 205.9 kB / 0.5798 GB, free: 14.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.9173, allocations: 431.8 kB / 0.5802 GB, free: 14.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.9177, allocations: 273.3 kB / 0.5804 GB, free: 13.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.9177, allocations: 0 / 0.5804 GB, free: 13.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00151/0.9192, allocations: 0.7784 MB / 0.5812 GB, free: 12.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.9193, allocations: 4 kB / 0.5812 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.9193, allocations: 11.98 kB / 0.5812 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.9198, allocations: 105.9 kB / 0.5813 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005574/0.9203, allocations: 147.7 kB / 0.5815 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.9237, allocations: 3.054 MB / 0.5844 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000761/0.9245, allocations: 27.98 kB / 0.5845 GB, free: 9.395 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.9247, allocations: 56.02 kB / 0.5845 GB, free: 9.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003741/0.9251, allocations: 205.7 kB / 0.5847 GB, free: 9.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.9253, allocations: 71.16 kB / 0.5848 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/0.9264, allocations: 0.5957 MB / 0.5854 GB, free: 8.445 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.9264, allocations: 4 kB / 0.5854 GB, free: 8.441 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.9264, allocations: 7.938 kB / 0.5854 GB, free: 8.434 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.9265, allocations: 3.984 kB / 0.5854 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002386/0.9288, allocations: 1.306 MB / 0.5867 GB, free: 7.074 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.9289, allocations: 8.094 kB / 0.5867 GB, free: 7.066 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.9295, allocations: 111.9 kB / 0.5868 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.9295, allocations: 0 / 0.5868 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.9295, allocations: 15.98 kB / 0.5868 GB, free: 6.941 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.9295, allocations: 7.938 kB / 0.5868 GB, free: 6.934 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.9296, allocations: 3.938 kB / 0.5868 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00143/0.931, allocations: 1.061 MB / 0.5878 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002067/0.9331, allocations: 1.753 MB / 0.5895 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/0.9335, allocations: 188.2 kB / 0.5897 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.9337, allocations: 8 kB / 0.5897 GB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.9341, allocations: 19.98 kB / 0.5898 GB, free: 3.773 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.9342, allocations: 44.34 kB / 0.5898 GB, free: 3.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.935e-05/0.9343, allocations: 59.88 kB / 0.5899 GB, free: 3.672 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005499/0.9349, allocations: 342.9 kB / 0.5902 GB, free: 3.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001588/0.9365, allocations: 164 kB / 0.5903 GB, free: 3.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.0003382/0.9368, allocations: 179 kB / 0.5905 GB, free: 2.996 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.9383, allocations: 0.8602 MB / 0.5913 GB, free: 2.105 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.9383, allocations: 4.062 kB / 0.5914 GB, free: 2.102 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.9389, allocations: 436.9 kB / 0.5918 GB, free: 1.664 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007966/0.9397, allocations: 119.1 kB / 0.5919 GB, free: 1.551 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.9422, allocations: 1.187 MB / 0.593 GB, free: 320 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009335/0.9431, allocations: 1.079 MB / 0.5941 GB, free: 15.21 MB / 442.7 MB Notification: Performance of SimCode: time 6.82e-07/0.9431, allocations: 0 / 0.5941 GB, free: 15.21 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)