Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line") [: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.001737/0.001738, allocations: 183.6 kB / 8.135 MB, free: 2.219 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.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.0008855/0.0008855, allocations: 87.19 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1617/0.1617, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.126e-06/8.146e-06, allocations: 4 kB / 410 MB, free: 46.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.0963, allocations: 56.32 MB / 466.3 MB, free: 6.441 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2904/0.3868, allocations: 97.82 MB / 0.5509 GB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3871, allocations: 89.42 kB / 0.551 GB, free: 12.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03244/0.4195, allocations: 10.61 MB / 0.5614 GB, free: 1.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.4196, allocations: 12 kB / 0.5614 GB, free: 1.965 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001518/0.4211, allocations: 0.7573 MB / 0.5621 GB, free: 1.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.4212, allocations: 11.97 kB / 0.5621 GB, free: 1.148 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.4213, allocations: 55.34 kB / 0.5622 GB, free: 1.094 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00333/0.4247, allocations: 1.261 MB / 0.5634 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.4247, allocations: 8 kB / 0.5634 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.4248, allocations: 35.94 kB / 0.5635 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006153/0.4255, allocations: 413.4 kB / 0.5639 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.4265, allocations: 0.7377 MB / 0.5646 GB, free: 14.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4265, allocations: 3.984 kB / 0.5646 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.4266, allocations: 3.906 kB / 0.5646 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.4266, allocations: 12 kB / 0.5646 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003581/0.4302, allocations: 2.635 MB / 0.5672 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006401/0.4308, allocations: 462.6 kB / 0.5676 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006797/0.4315, allocations: 442.1 kB / 0.568 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.4316, allocations: 4 kB / 0.568 GB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.4316, allocations: 46.48 kB / 0.5681 GB, free: 10.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.164e-06/0.4316, allocations: 0 / 0.5681 GB, free: 10.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.006998/0.4386, allocations: 2.984 MB / 0.571 GB, free: 7.832 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.4387, allocations: 85.09 kB / 0.5711 GB, free: 7.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.4391, allocations: 298 kB / 0.5714 GB, free: 7.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.253e-05/0.4392, allocations: 33.73 kB / 0.5714 GB, free: 7.391 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.4393, allocations: 200.2 kB / 0.5716 GB, free: 7.184 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.4395, allocations: 158 kB / 0.5717 GB, free: 7.027 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.4395, allocations: 0 / 0.5717 GB, free: 7.027 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4396, allocations: 354.8 kB / 0.5721 GB, free: 6.672 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005081/0.4402, allocations: 412.8 kB / 0.5725 GB, free: 6.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005735/0.4407, allocations: 0.5127 MB / 0.573 GB, free: 5.715 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005856/0.4413, allocations: 461.4 kB / 0.5734 GB, free: 5.266 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4413, allocations: 0 / 0.5734 GB, free: 5.266 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003825/0.4452, allocations: 2.06 MB / 0.5754 GB, free: 3.191 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.4452, allocations: 11.84 kB / 0.5754 GB, free: 3.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.4452, allocations: 4 kB / 0.5754 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005994/0.4512, allocations: 2.655 MB / 0.578 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.4516, allocations: 83.91 kB / 0.5781 GB, free: 440 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.4516, allocations: 11.92 kB / 0.5781 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.4519, allocations: 20.22 kB / 0.5781 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.4521, allocations: 63.98 kB / 0.5782 GB, free: 344 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001656/0.4522, allocations: 116.9 kB / 0.5783 GB, free: 220 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4523, allocations: 43.44 kB / 0.5784 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005659/0.458, allocations: 2.137 MB / 0.5804 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.458, allocations: 4 kB / 0.5804 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4581, allocations: 0 / 0.5804 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.4581, allocations: 7.984 kB / 0.5805 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006962/0.465, allocations: 2.85 MB / 0.5832 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.4651, allocations: 4 kB / 0.5832 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.4653, allocations: 39.92 kB / 0.5833 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009536/0.4749, allocations: 2.967 MB / 0.5862 GB, free: 8.078 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002017/0.4751, allocations: 99.92 kB / 0.5863 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.4852, allocations: 7.981 MB / 0.5941 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4853, allocations: 4 kB / 0.5941 GB, free: 15.76 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006177/0.4915, allocations: 2.524 MB / 0.5965 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.4917, allocations: 120.6 kB / 0.5967 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.4919, allocations: 79.94 kB / 0.5967 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.4922, allocations: 19.97 kB / 0.5967 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.4923, allocations: 43.84 kB / 0.5968 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.627e-05/0.4924, allocations: 67.91 kB / 0.5969 GB, free: 12.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000312/0.4927, allocations: 232.6 kB / 0.5971 GB, free: 12.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008898/0.4936, allocations: 171.9 kB / 0.5972 GB, free: 12.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002615/0.4939, allocations: 141.6 kB / 0.5974 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4955, allocations: 1.051 MB / 0.5984 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4956, allocations: 0 / 0.5984 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.4973, allocations: 0.8487 MB / 0.5992 GB, free: 10.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005469/0.4979, allocations: 97.5 kB / 0.5993 GB, free: 10.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.5011, allocations: 1.995 MB / 0.6013 GB, free: 8.219 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.5016, allocations: 0.9166 MB / 0.6022 GB, free: 7.273 MB / 442.7 MB Notification: Performance of SimCode: time 3.7e-07/0.5016, allocations: 0 / 0.6022 GB, free: 7.273 MB / 442.7 MB Notification: Performance of Templates: time 0.02311/0.5247, allocations: 17.31 MB / 0.6191 GB, free: 5.949 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Line.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches