Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001502/0.001502, allocations: 178.9 kB / 8.129 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.2 MB / 213.7 MB, free: 8.527 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008884/0.0008883, allocations: 95.3 kB / 261.7 MB, free: 5.141 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1645/0.1645, allocations: 37.98 MB / 347.7 MB, free: 0.8711 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 0.207/0.3715, allocations: 62.43 MB / 410.1 MB, free: 74.38 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.4783, allocations: 56.33 MB / 466.4 MB, free: 18.03 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.344/0.8224, allocations: 109.2 MB / 0.5621 GB, free: 3.098 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.8227, allocations: 93.12 kB / 0.5622 GB, free: 3.051 MB / 370.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.1368/0.9595, allocations: 49.99 MB / 0.611 GB, free: 8.277 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.9596, allocations: 11.94 kB / 0.611 GB, free: 8.266 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002649/0.9622, allocations: 446.6 kB / 0.6115 GB, free: 7.828 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005576/0.9678, allocations: 2.087 MB / 0.6135 GB, free: 5.695 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.912e-05/0.9679, allocations: 52 kB / 0.6136 GB, free: 5.645 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.9682, allocations: 80 kB / 0.6136 GB, free: 5.566 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00268/0.9709, allocations: 1.591 MB / 0.6152 GB, free: 3.973 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002882/0.9738, allocations: 2.081 MB / 0.6172 GB, free: 1.738 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.63e-05/0.9738, allocations: 11.94 kB / 0.6172 GB, free: 1.727 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.974, allocations: 11.98 kB / 0.6172 GB, free: 1.715 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003313/0.9743, allocations: 194.7 kB / 0.6174 GB, free: 1.523 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.9853, allocations: 9.08 MB / 0.6263 GB, free: 8.004 MB / 434.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.9873, allocations: 1.277 MB / 0.6275 GB, free: 6.719 MB / 434.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008871/0.9882, allocations: 0.6549 MB / 0.6282 GB, free: 6.059 MB / 434.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.936e-05/0.9883, allocations: 20.97 kB / 0.6282 GB, free: 6.035 MB / 434.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.9894, allocations: 0.8783 MB / 0.6291 GB, free: 5.113 MB / 434.8 MB Notification: Performance of pre-optimization done (n=142): time 3.466e-06/0.9894, allocations: 0 / 0.6291 GB, free: 5.113 MB / 434.8 MB Notification: Performance of matching and sorting (n=143): time 0.005571/0.995, allocations: 3.422 MB / 0.6324 GB, free: 1.621 MB / 434.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.9952, allocations: 278.3 kB / 0.6327 GB, free: 1.289 MB / 434.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009397/0.9961, allocations: 0.72 MB / 0.6334 GB, free: 0.5469 MB / 434.8 MB Notification: Performance of collectPreVariables (initialization): time 7.673e-05/0.9962, allocations: 29.7 kB / 0.6334 GB, free: 0.5117 MB / 434.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000576/0.9968, allocations: 0.6345 MB / 0.634 GB, free: 15.86 MB / 450.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004157/0.9972, allocations: 473.2 kB / 0.6345 GB, free: 15.39 MB / 450.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.454e-05/0.9973, allocations: 4.062 kB / 0.6345 GB, free: 15.39 MB / 450.8 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.9975, allocations: 430.7 kB / 0.6349 GB, free: 14.96 MB / 450.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008945/0.9984, allocations: 0.6013 MB / 0.6355 GB, free: 14.36 MB / 450.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.9996, allocations: 1.135 MB / 0.6366 GB, free: 12.98 MB / 450.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/1.001, allocations: 0.8298 MB / 0.6374 GB, free: 12.14 MB / 450.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/1.001, allocations: 4 kB / 0.6374 GB, free: 12.14 MB / 450.8 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004188/1.005, allocations: 2.317 MB / 0.6397 GB, free: 9.805 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/1.005, allocations: 5.562 kB / 0.6397 GB, free: 9.801 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002999/1.008, allocations: 1.657 MB / 0.6413 GB, free: 8.129 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/1.01, allocations: 0.5449 MB / 0.6418 GB, free: 7.574 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/1.011, allocations: 307.7 kB / 0.6421 GB, free: 7.273 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008973/1.02, allocations: 8.049 MB / 0.65 GB, free: 14.77 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/1.021, allocations: 51.86 kB / 0.65 GB, free: 14.72 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/1.022, allocations: 87.97 kB / 0.6501 GB, free: 14.63 MB / 466.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (170): * Single equations (assignments): 161 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(3,77.8%) 10,(2,100.0%) 12,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003746/1.022, allocations: 237.6 kB / 0.6503 GB, free: 14.38 MB / 466.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/1.022, allocations: 122.5 kB / 0.6504 GB, free: 14.26 MB / 466.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002638/1.025, allocations: 1.521 MB / 0.6519 GB, free: 12.74 MB / 466.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.046e-05/1.025, allocations: 19.98 kB / 0.6519 GB, free: 12.72 MB / 466.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.025, allocations: 4 kB / 0.6519 GB, free: 12.71 MB / 466.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/1.025, allocations: 11.83 kB / 0.652 GB, free: 12.7 MB / 466.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004632/1.03, allocations: 3.117 MB / 0.655 GB, free: 9.465 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/1.03, allocations: 4 kB / 0.655 GB, free: 9.461 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/1.031, allocations: 312 kB / 0.6553 GB, free: 9.152 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.438e-05/1.031, allocations: 11.94 kB / 0.6553 GB, free: 9.141 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.512e-05/1.031, allocations: 19.98 kB / 0.6553 GB, free: 9.121 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.886e-06/1.031, allocations: 8 kB / 0.6553 GB, free: 9.113 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.031, allocations: 7.938 kB / 0.6553 GB, free: 9.105 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003207/1.034, allocations: 2.623 MB / 0.6579 GB, free: 6.336 MB / 466.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00471/1.039, allocations: 3.878 MB / 0.6617 GB, free: 2.312 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008233/1.04, allocations: 319.4 kB / 0.662 GB, free: 1.98 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/1.04, allocations: 19.98 kB / 0.662 GB, free: 1.961 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007125/1.041, allocations: 39.97 kB / 0.6621 GB, free: 1.922 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/1.041, allocations: 80.67 kB / 0.6621 GB, free: 1.844 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.041, allocations: 79.92 kB / 0.6622 GB, free: 1.766 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.0008192/1.042, allocations: 0.5193 MB / 0.6627 GB, free: 1.234 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.00226/1.044, allocations: 392.1 kB / 0.6631 GB, free: 0.8516 MB / 466.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (124): * Single equations (assignments): 118 * Array equations: 3 * 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.0004146/1.045, allocations: 226.8 kB / 0.6633 GB, free: 0.6211 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.003531/1.048, allocations: 2.169 MB / 0.6654 GB, free: 14.4 MB / 482.8 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.048, allocations: 4 kB / 0.6654 GB, free: 14.4 MB / 482.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/1.05, allocations: 0.956 MB / 0.6664 GB, free: 13.43 MB / 482.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/1.051, allocations: 170.5 kB / 0.6665 GB, free: 13.27 MB / 482.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005492/1.056, allocations: 2.938 MB / 0.6694 GB, free: 10.24 MB / 482.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/1.058, allocations: 1.59 MB / 0.6709 GB, free: 8.617 MB / 482.8 MB Notification: Performance of SimCode: time 4.61e-07/1.058, allocations: 0 / 0.6709 GB, free: 8.617 MB / 482.8 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)