Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line") translateModel(PowerSystems.Examples.AC3ph.Elementary.Line,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.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.001091/0.001091, allocations: 184.3 kB / 8.135 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.315/1.315, 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.0008765/0.0008764, allocations: 93.8 kB / 261.7 MB, free: 13.49 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1664/0.1664, allocations: 37.96 MB / 347.7 MB, free: 7.402 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.264e-06/7.294e-06, allocations: 4 kB / 410 MB, free: 46.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09207, allocations: 56.31 MB / 466.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2839/0.3761, allocations: 103.8 MB / 0.5568 GB, free: 6.758 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.3763, allocations: 87.94 kB / 0.5569 GB, free: 6.672 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04938/0.4257, allocations: 16.97 MB / 0.5735 GB, free: 5.523 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.434e-05/0.4258, allocations: 16 kB / 0.5735 GB, free: 5.508 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001581/0.4274, allocations: 0.7658 MB / 0.5742 GB, free: 4.695 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.4275, allocations: 8.031 kB / 0.5742 GB, free: 4.688 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.4286, allocations: 143 kB / 0.5744 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.4317, allocations: 1.205 MB / 0.5756 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.4318, allocations: 16 kB / 0.5756 GB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.4319, allocations: 43.83 kB / 0.5756 GB, free: 3.242 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008105/0.4327, allocations: 0.5293 MB / 0.5761 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.4338, allocations: 0.7906 MB / 0.5769 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.4338, allocations: 0 / 0.5769 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.756e-05/0.4339, allocations: 4 kB / 0.5769 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002453/0.4341, allocations: 44.75 kB / 0.5769 GB, free: 1.805 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01116/0.4453, allocations: 5.54 MB / 0.5824 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009414/0.4463, allocations: 0.7207 MB / 0.5831 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007768/0.447, allocations: 0.6279 MB / 0.5837 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.164e-05/0.4471, allocations: 12.42 kB / 0.5837 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.4472, allocations: 39 kB / 0.5837 GB, free: 10.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 4.619e-06/0.4472, allocations: 3.938 kB / 0.5837 GB, free: 10.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=53): time 0.01666/0.4639, allocations: 4.813 MB / 0.5884 GB, free: 5.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.464, allocations: 81.55 kB / 0.5885 GB, free: 5.723 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004469/0.4644, allocations: 320.8 kB / 0.5888 GB, free: 5.398 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000201/0.4646, allocations: 33.72 kB / 0.5888 GB, free: 5.359 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.4648, allocations: 271.8 kB / 0.5891 GB, free: 5.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002691/0.4651, allocations: 256.9 kB / 0.5893 GB, free: 4.836 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/0.4652, allocations: 0 / 0.5893 GB, free: 4.836 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4653, allocations: 366.8 kB / 0.5897 GB, free: 4.469 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.4664, allocations: 0.7826 MB / 0.5905 GB, free: 3.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.4676, allocations: 1 MB / 0.5914 GB, free: 2.598 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.4688, allocations: 0.893 MB / 0.5923 GB, free: 1.703 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4689, allocations: 0 / 0.5923 GB, free: 1.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.01671/0.4856, allocations: 4.832 MB / 0.597 GB, free: 12.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4856, allocations: 4 kB / 0.597 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01228/0.4979, allocations: 3.873 MB / 0.6008 GB, free: 8.965 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01902/0.517, allocations: 5.267 MB / 0.606 GB, free: 3.691 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005604/0.5176, allocations: 115.8 kB / 0.6061 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/0.5335, allocations: 9.81 MB / 0.6156 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000748/0.5343, allocations: 23.98 kB / 0.6157 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002539/0.5346, allocations: 183.9 kB / 0.6158 GB, free: 9.445 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (65): * Single equations (assignments): 62 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002776/0.5348, allocations: 128.7 kB / 0.616 GB, free: 9.312 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.535, allocations: 51.44 kB / 0.616 GB, free: 9.262 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/0.5492, allocations: 3.571 MB / 0.6195 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.515e-05/0.5492, allocations: 4 kB / 0.6195 GB, free: 5.676 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.5493, allocations: 8 kB / 0.6195 GB, free: 5.668 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.5493, allocations: 7.891 kB / 0.6195 GB, free: 5.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.566, allocations: 4.917 MB / 0.6243 GB, free: 0.668 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/0.5661, allocations: 4 kB / 0.6243 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004045/0.5665, allocations: 51.91 kB / 0.6244 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02657/0.5931, allocations: 6.61 MB / 0.6308 GB, free: 9.977 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004382/0.5936, allocations: 231.8 kB / 0.6311 GB, free: 9.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1491/0.7427, allocations: 11.49 MB / 0.6423 GB, free: 197.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.7428, allocations: 3.75 kB / 0.6423 GB, free: 197.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01395/0.7567, allocations: 4.057 MB / 0.6462 GB, free: 197.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.7569, allocations: 126.5 kB / 0.6464 GB, free: 197.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/0.7573, allocations: 188.4 kB / 0.6465 GB, free: 197.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.7578, allocations: 21.28 kB / 0.6466 GB, free: 197.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.758, allocations: 80.55 kB / 0.6466 GB, free: 197.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001897/0.7582, allocations: 177.5 kB / 0.6468 GB, free: 197.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002286/0.7584, allocations: 242.5 kB / 0.647 GB, free: 197.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001361/0.7598, allocations: 339.2 kB / 0.6474 GB, free: 197.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 21 (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.v[3,1],line.v[3,2],line.v[3,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],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 30 * Array equations: 1 * 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 {12,9} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/0.7601, allocations: 165.4 kB / 0.6475 GB, free: 197.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.7641, allocations: 2.246 MB / 0.6497 GB, free: 196.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7641, allocations: 0 / 0.6497 GB, free: 196.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003108/0.7672, allocations: 1.468 MB / 0.6512 GB, free: 196.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.7678, allocations: 98.41 kB / 0.6512 GB, free: 196.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00501/0.7728, allocations: 3.324 MB / 0.6545 GB, free: 195.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.7733, allocations: 1 MB / 0.6555 GB, free: 195 MB / 474.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7733, allocations: 0 / 0.6555 GB, free: 195 MB / 474.7 MB Notification: Performance of Templates: time 0.04239/0.8157, allocations: 30.17 MB / 0.6849 GB, free: 180.5 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Line.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches