Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001136/0.001136, allocations: 187.4 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.048/1.048, allocations: 194.2 MB / 202.8 MB, free: 8.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001627/0.001627, allocations: 119 kB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.152/0.152, allocations: 37.91 MB / 330.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1874/0.3394, allocations: 59.35 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07564/0.4151, allocations: 53.24 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.266/0.6811, allocations: 94.27 MB / 0.5248 GB, free: 9.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.6814, allocations: 90.19 kB / 0.5249 GB, free: 9.535 MB / 346.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.04461/0.7261, allocations: 17.5 MB / 0.542 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.7261, allocations: 12 kB / 0.542 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.7264, allocations: 94.86 kB / 0.5421 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0043/0.7307, allocations: 1.69 MB / 0.5437 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/0.7307, allocations: 24 kB / 0.5438 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.7309, allocations: 40 kB / 0.5438 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009509/0.7318, allocations: 0.574 MB / 0.5444 GB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.7329, allocations: 0.7168 MB / 0.5451 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.7329, allocations: 4 kB / 0.5451 GB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.078e-05/0.733, allocations: 3.984 kB / 0.5451 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-05/0.733, allocations: 39.89 kB / 0.5451 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.7366, allocations: 2.561 MB / 0.5476 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.7375, allocations: 0.5443 MB / 0.5481 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005348/0.738, allocations: 352.5 kB / 0.5485 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.738, allocations: 4.438 kB / 0.5485 GB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005193/0.7386, allocations: 447.1 kB / 0.5489 GB, free: 8.195 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.416e-06/0.7386, allocations: 0 / 0.5489 GB, free: 8.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=64): time 0.002093/0.7407, allocations: 1.393 MB / 0.5503 GB, free: 6.988 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.7408, allocations: 251.1 kB / 0.5505 GB, free: 6.691 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004894/0.7413, allocations: 451 kB / 0.5509 GB, free: 6.332 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.7414, allocations: 29.69 kB / 0.551 GB, free: 6.297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.7416, allocations: 317.5 kB / 0.5513 GB, free: 6.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.7417, allocations: 201.9 kB / 0.5515 GB, free: 5.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.7418, allocations: 0 / 0.5515 GB, free: 5.844 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.742, allocations: 389.3 kB / 0.5518 GB, free: 5.484 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.7423, allocations: 200.1 kB / 0.552 GB, free: 5.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.7427, allocations: 436.2 kB / 0.5524 GB, free: 4.918 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.7431, allocations: 261.6 kB / 0.5527 GB, free: 4.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7431, allocations: 3.938 kB / 0.5527 GB, free: 4.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001204/0.7443, allocations: 0.7704 MB / 0.5534 GB, free: 4.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.7443, allocations: 11.89 kB / 0.5534 GB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.7444, allocations: 8.469 kB / 0.5535 GB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.7447, allocations: 103.3 kB / 0.5536 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.7452, allocations: 146.8 kB / 0.5537 GB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002546/0.7478, allocations: 3.06 MB / 0.5567 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.7482, allocations: 28.05 kB / 0.5567 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.7483, allocations: 51.47 kB / 0.5568 GB, free: 0.7266 MB / 362.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.0001696/0.7485, allocations: 208.1 kB / 0.557 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/0.7485, allocations: 79 kB / 0.557 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007949/0.7493, allocations: 0.592 MB / 0.5576 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.7494, allocations: 8 kB / 0.5576 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.7494, allocations: 0 / 0.5576 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.7494, allocations: 3.938 kB / 0.5576 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.7511, allocations: 1.309 MB / 0.5589 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.7511, allocations: 0 / 0.5589 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.7516, allocations: 111.7 kB / 0.559 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.7517, allocations: 4 kB / 0.559 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.201e-05/0.7517, allocations: 19.33 kB / 0.559 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.7517, allocations: 4.094 kB / 0.559 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.7517, allocations: 4 kB / 0.559 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001132/0.7529, allocations: 1.053 MB / 0.5601 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001581/0.7544, allocations: 1.753 MB / 0.5618 GB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.7547, allocations: 195.5 kB / 0.562 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/0.7548, allocations: 15.81 kB / 0.562 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.7552, allocations: 24.05 kB / 0.562 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.721e-05/0.7553, allocations: 39.92 kB / 0.562 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/0.7554, allocations: 59.55 kB / 0.5621 GB, free: 12.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003247/0.7557, allocations: 339.3 kB / 0.5624 GB, free: 11.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001212/0.7569, allocations: 167.9 kB / 0.5626 GB, free: 11.76 MB / 378.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.0002887/0.7572, allocations: 168.3 kB / 0.5627 GB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.7584, allocations: 0.8618 MB / 0.5636 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7584, allocations: 0 / 0.5636 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004657/0.7589, allocations: 436.5 kB / 0.564 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.7595, allocations: 128.5 kB / 0.5641 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.7614, allocations: 1.184 MB / 0.5653 GB, free: 9.371 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006969/0.7621, allocations: 1.085 MB / 0.5663 GB, free: 8.293 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.7622, allocations: 0 / 0.5663 GB, free: 8.293 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)