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: translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger") translateModel(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter12.i|meter12.p|meter12.v|meter22.i|meter22.p|meter22.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.0009978/0.0009981, allocations: 183.2 kB / 8.135 MB, free: 2.199 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.243/1.243, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0008856/0.0008857, allocations: 90.86 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.1853/0.1853, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/7.985e-06, allocations: 0 / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 56.32 MB / 466.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2979/0.4013, allocations: 99.38 MB / 0.5525 GB, free: 11.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4016, allocations: 88.7 kB / 0.5525 GB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04638/0.448, allocations: 16.49 MB / 0.5686 GB, free: 10.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.32e-05/0.4481, allocations: 16 kB / 0.5687 GB, free: 10.35 MB / 410.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.001557/0.4497, allocations: 1.008 MB / 0.5696 GB, free: 9.281 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4497, allocations: 12.03 kB / 0.5696 GB, free: 9.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.4499, allocations: 98.88 kB / 0.5697 GB, free: 9.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/0.4543, allocations: 1.689 MB / 0.5714 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.4543, allocations: 20 kB / 0.5714 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.629e-05/0.4544, allocations: 44 kB / 0.5715 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001034/0.4555, allocations: 0.5765 MB / 0.572 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.4566, allocations: 0.7175 MB / 0.5727 GB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.4566, allocations: 7.906 kB / 0.5727 GB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.4567, allocations: 4 kB / 0.5727 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.888e-05/0.4567, allocations: 37.3 kB / 0.5728 GB, free: 5.996 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.4603, allocations: 2.557 MB / 0.5753 GB, free: 3.332 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008652/0.4612, allocations: 0.5463 MB / 0.5758 GB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005301/0.4617, allocations: 359.1 kB / 0.5761 GB, free: 2.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.4618, allocations: 4.438 kB / 0.5761 GB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/0.4623, allocations: 443.3 kB / 0.5766 GB, free: 1.934 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.296e-06/0.4623, allocations: 4 kB / 0.5766 GB, free: 1.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.002203/0.4645, allocations: 1.396 MB / 0.5779 GB, free: 488 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.4646, allocations: 243.8 kB / 0.5782 GB, free: 188 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005726/0.4652, allocations: 462.2 kB / 0.5786 GB, free: 15.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.4653, allocations: 25.7 kB / 0.5786 GB, free: 15.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.4655, allocations: 315.4 kB / 0.5789 GB, free: 15.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.4657, allocations: 201.1 kB / 0.5791 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.4657, allocations: 0 / 0.5791 GB, free: 15.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4659, allocations: 382.8 kB / 0.5795 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.4662, allocations: 210 kB / 0.5797 GB, free: 14.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.4666, allocations: 431.8 kB / 0.5801 GB, free: 14.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.467, allocations: 261.3 kB / 0.5803 GB, free: 13.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.467, allocations: 0 / 0.5803 GB, free: 13.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001329/0.4684, allocations: 0.7863 MB / 0.5811 GB, free: 13.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.4684, allocations: 4 kB / 0.5811 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4684, allocations: 8 kB / 0.5811 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003776/0.4688, allocations: 101.9 kB / 0.5812 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.4693, allocations: 151.7 kB / 0.5814 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.4721, allocations: 3.05 MB / 0.5843 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004396/0.4726, allocations: 31.98 kB / 0.5844 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.509e-05/0.4727, allocations: 52.03 kB / 0.5844 GB, free: 9.387 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.0002121/0.4729, allocations: 211.1 kB / 0.5846 GB, free: 9.164 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-05/0.473, allocations: 75.16 kB / 0.5847 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009523/0.474, allocations: 0.5957 MB / 0.5853 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.474, allocations: 8 kB / 0.5853 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.474, allocations: 3.938 kB / 0.5853 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.474, allocations: 3.984 kB / 0.5853 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.476, allocations: 1.306 MB / 0.5866 GB, free: 7.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.476, allocations: 3.906 kB / 0.5866 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005375/0.4765, allocations: 111.8 kB / 0.5867 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.4765, allocations: 4 kB / 0.5867 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.4766, allocations: 15.92 kB / 0.5867 GB, free: 6.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4766, allocations: 4 kB / 0.5867 GB, free: 6.977 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4766, allocations: 8.219 kB / 0.5867 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001312/0.4779, allocations: 1.057 MB / 0.5877 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002494/0.4782, allocations: 192.1 kB / 0.5879 GB, free: 5.648 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.456e-05/0.4783, allocations: 12 kB / 0.5879 GB, free: 5.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.4786, allocations: 19.98 kB / 0.588 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.4787, allocations: 40.38 kB / 0.588 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.024e-05/0.4788, allocations: 59.94 kB / 0.5881 GB, free: 5.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003819/0.4792, allocations: 342.9 kB / 0.5884 GB, free: 5.188 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007022/0.4799, allocations: 156 kB / 0.5885 GB, free: 5.035 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.0002622/0.4802, allocations: 171 kB / 0.5887 GB, free: 4.859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.4815, allocations: 0.8559 MB / 0.5895 GB, free: 3.969 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4815, allocations: 0.5625 kB / 0.5895 GB, free: 3.969 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005006/0.482, allocations: 444.9 kB / 0.59 GB, free: 3.523 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.4827, allocations: 123 kB / 0.5901 GB, free: 3.406 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.4848, allocations: 1.179 MB / 0.5912 GB, free: 2.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007463/0.4856, allocations: 1.082 MB / 0.5923 GB, free: 1.07 MB / 426.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4856, allocations: 0 / 0.5923 GB, free: 1.07 MB / 426.7 MB Notification: Performance of Templates: time 0.01447/0.5, allocations: 7.513 MB / 0.5996 GB, free: 9.559 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches