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: translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.alpha_v|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v_norm|meter12.alpha_v|meter12.p.1.|meter12.p.2.|meter12.p.3.|meter12.v_norm|meter22.alpha_v|meter22.p.1.|meter22.p.2.|meter22.p.3.|meter22.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC3ph.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter1.alpha_v|meter1.p.1.|meter1.p.2.|meter1.p.3.|meter1.v_norm|meter12.alpha_v|meter12.p.1.|meter12.p.2.|meter12.p.3.|meter12.v_norm|meter22.alpha_v|meter22.p.1.|meter22.p.2.|meter22.p.3.|meter22.v_norm",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger") [: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.001831/0.001831, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.355/1.355, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.000915/0.000915, allocations: 90.69 kB / 261.7 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.1675/0.1675, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.09e-05/1.102e-05, allocations: 4 kB / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 56.31 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3104/0.4329, allocations: 109.2 MB / 0.562 GB, free: 1.359 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.4333, allocations: 87.95 kB / 0.5621 GB, free: 1.273 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1342/0.5675, allocations: 48.38 MB / 0.6094 GB, free: 296 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.862e-05/0.5677, allocations: 43.98 kB / 0.6094 GB, free: 252 kB / 442.7 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.002751/0.5704, allocations: 1.564 MB / 0.6109 GB, free: 14.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.5705, allocations: 8.031 kB / 0.6109 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002598/0.5731, allocations: 445.3 kB / 0.6114 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005477/0.5786, allocations: 2.084 MB / 0.6134 GB, free: 12.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.057e-05/0.5786, allocations: 51.94 kB / 0.6135 GB, free: 11.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.5788, allocations: 80 kB / 0.6135 GB, free: 11.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002689/0.5815, allocations: 1.587 MB / 0.6151 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.5845, allocations: 2.088 MB / 0.6171 GB, free: 8.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/0.5846, allocations: 11.94 kB / 0.6171 GB, free: 8.059 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.5847, allocations: 12 kB / 0.6171 GB, free: 8.047 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002903/0.585, allocations: 190.7 kB / 0.6173 GB, free: 7.859 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/0.5957, allocations: 9.094 MB / 0.6262 GB, free: 14.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.5976, allocations: 1.281 MB / 0.6275 GB, free: 13.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008465/0.5985, allocations: 0.6461 MB / 0.6281 GB, free: 12.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.775e-05/0.5986, allocations: 24.97 kB / 0.6281 GB, free: 12.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/0.5997, allocations: 0.8783 MB / 0.629 GB, free: 11.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 4.298e-06/0.5997, allocations: 0 / 0.629 GB, free: 11.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=143): time 0.00533/0.605, allocations: 3.422 MB / 0.6323 GB, free: 7.945 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.6052, allocations: 282.4 kB / 0.6326 GB, free: 7.609 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008301/0.606, allocations: 0.7201 MB / 0.6333 GB, free: 6.867 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.591e-05/0.6061, allocations: 29.7 kB / 0.6333 GB, free: 6.832 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/0.6065, allocations: 0.6305 MB / 0.6339 GB, free: 6.188 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.6069, allocations: 477.2 kB / 0.6344 GB, free: 5.715 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.6069, allocations: 0 / 0.6344 GB, free: 5.715 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.6071, allocations: 434.7 kB / 0.6348 GB, free: 5.281 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008155/0.6079, allocations: 0.6013 MB / 0.6354 GB, free: 4.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.6091, allocations: 1.131 MB / 0.6365 GB, free: 3.305 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.6103, allocations: 0.8376 MB / 0.6373 GB, free: 2.465 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.607e-06/0.6103, allocations: 4 kB / 0.6373 GB, free: 2.461 MB / 474.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004125/0.6145, allocations: 2.313 MB / 0.6396 GB, free: 132 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.6145, allocations: 4.188 kB / 0.6396 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1581/0.7726, allocations: 1.653 MB / 0.6412 GB, free: 178.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.7742, allocations: 0.5388 MB / 0.6417 GB, free: 178.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.7754, allocations: 322 kB / 0.642 GB, free: 178.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/0.7828, allocations: 8.026 MB / 0.6499 GB, free: 173.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.784, allocations: 48.38 kB / 0.6499 GB, free: 173.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.7842, allocations: 103.9 kB / 0.65 GB, free: 173.8 MB / 474.7 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.0003446/0.7845, allocations: 229.6 kB / 0.6502 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.7847, allocations: 122.2 kB / 0.6503 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.7869, allocations: 1.524 MB / 0.6518 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.724e-05/0.7869, allocations: 24.95 kB / 0.6519 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.7869, allocations: 0 / 0.6519 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.787, allocations: 11.16 kB / 0.6519 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003976/0.7909, allocations: 3.12 MB / 0.6549 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.791, allocations: 1.562 kB / 0.6549 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/0.7925, allocations: 308.1 kB / 0.6552 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-05/0.7925, allocations: 7.188 kB / 0.6552 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.7926, allocations: 27.25 kB / 0.6552 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.7926, allocations: 12.7 kB / 0.6553 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7926, allocations: 6.5 kB / 0.6553 GB, free: 172.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0027/0.7953, allocations: 2.624 MB / 0.6578 GB, free: 172.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005188/0.7958, allocations: 318 kB / 0.6581 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/0.796, allocations: 20.73 kB / 0.6581 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006785/0.7967, allocations: 35.5 kB / 0.6582 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.7969, allocations: 80.03 kB / 0.6583 GB, free: 172.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.797, allocations: 83.55 kB / 0.6583 GB, free: 172.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005743/0.7976, allocations: 0.5147 MB / 0.6588 GB, free: 172.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001435/0.799, allocations: 392.8 kB / 0.6592 GB, free: 172.1 MB / 474.7 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.0004281/0.7995, allocations: 214 kB / 0.6594 GB, free: 172 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003106/0.8026, allocations: 2.17 MB / 0.6615 GB, free: 171.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.8026, allocations: 3.188 kB / 0.6615 GB, free: 171.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.8037, allocations: 0.9555 MB / 0.6625 GB, free: 171.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.8047, allocations: 162.5 kB / 0.6626 GB, free: 171.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.8096, allocations: 2.932 MB / 0.6655 GB, free: 170.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/0.8108, allocations: 1.573 MB / 0.667 GB, free: 170.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.203e-06/0.8108, allocations: 3 kB / 0.667 GB, free: 170.1 MB / 474.7 MB Notification: Performance of Templates: time 0.02753/0.8383, allocations: 16.59 MB / 0.6832 GB, free: 169.2 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transformation.TapChanger.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches