Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001952/0.001952, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00199/0.00199, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.2 MB / 0.6646 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.91 kB / 0.8125 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8215/0.8228, allocations: 140.3 MB / 0.9496 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02258/0.8454, allocations: 20.27 MB / 0.9694 GB, free: 9.652 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0126/0.858, allocations: 6.431 MB / 0.9757 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002913/0.861, allocations: 91.22 kB / 0.9757 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005906/0.8669, allocations: 2.243 MB / 0.9779 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00462/0.8716, allocations: 1.178 MB / 0.9791 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004078/0.8756, allocations: 1.282 MB / 0.9803 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007378/0.883, allocations: 4.852 MB / 0.9851 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00694/0.89, allocations: 5.64 MB / 0.9906 GB, free: 7.703 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004053/0.8941, allocations: 2.072 MB / 0.9926 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.8985, allocations: 2.337 MB / 0.9949 GB, free: 3.281 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000918/0.8994, allocations: 428 kB / 0.9953 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.9021, allocations: 1.003 MB / 0.9963 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001686/0.9038, allocations: 1.665 MB / 0.9979 GB, free: 196 kB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.9064, allocations: 1.91 MB / 0.9998 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.007006/0.9134, allocations: 6.478 MB / 1.006 GB, free: 7.777 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.9134, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9134, allocations: 4 kB / 1.006 GB, free: 7.773 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001685/0.9136, allocations: 0 / 1.006 GB, free: 7.773 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.007582/0.9212, allocations: 3.448 MB / 1.009 GB, free: 4.262 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.9213, allocations: 12.03 kB / 1.009 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003425/0.9247, allocations: 0.641 MB / 1.01 GB, free: 3.605 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/0.9283, allocations: 1.936 MB / 1.012 GB, free: 1.609 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.9284, allocations: 230.3 kB / 1.012 GB, free: 1.383 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/0.9289, allocations: 292.3 kB / 1.012 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008479/0.9374, allocations: 4.895 MB / 1.017 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.227e-05/0.9375, allocations: 19.78 kB / 1.017 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002908/0.9378, allocations: 128 kB / 1.017 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004218/0.9382, allocations: 233.7 kB / 1.018 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006321/0.9446, allocations: 3.75 MB / 1.021 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02308/0.9677, allocations: 21.56 MB / 1.042 GB, free: 316 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.9694, allocations: 1.309 MB / 1.044 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.9708, allocations: 1.046 MB / 1.045 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.556e-05/0.9708, allocations: 9 kB / 1.045 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.9709, allocations: 55.48 kB / 1.045 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=107): time 3.366e-06/0.9709, allocations: 4 kB / 1.045 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of matching and sorting (n=138): time 0.0237/0.9946, allocations: 8.649 MB / 1.053 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.9947, allocations: 64.72 kB / 1.053 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.9964, allocations: 1.126 MB / 1.054 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.9966, allocations: 49.7 kB / 1.054 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000962/0.9975, allocations: 1.3 MB / 1.056 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000417/0.998, allocations: 485 kB / 1.056 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004987/0.9985, allocations: 295.3 kB / 1.056 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.9986, allocations: 305.1 kB / 1.057 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.9999, allocations: 0.9174 MB / 1.058 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/1.001, allocations: 1.322 MB / 1.059 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003047/1.004, allocations: 2.43 MB / 1.061 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/1.004, allocations: 4 kB / 1.061 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006144/1.011, allocations: 3.471 MB / 1.065 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/1.011, allocations: 8 kB / 1.065 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/1.011, allocations: 12 kB / 1.065 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/1.014, allocations: 1.193 MB / 1.066 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/1.015, allocations: 259.6 kB / 1.066 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/1.032, allocations: 13.84 MB / 1.08 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/1.033, allocations: 92.09 kB / 1.08 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/1.033, allocations: 72 kB / 1.08 GB, free: 9.109 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001953/1.035, allocations: 1.11 MB / 1.081 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003759/1.036, allocations: 162.1 kB / 1.081 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/1.041, allocations: 3.173 MB / 1.084 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/1.041, allocations: 12 kB / 1.084 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/1.041, allocations: 19.92 kB / 1.084 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/1.041, allocations: 3.984 kB / 1.084 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/1.052, allocations: 6.253 MB / 1.09 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/1.052, allocations: 4 kB / 1.09 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/1.052, allocations: 143.8 kB / 1.09 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/1.055, allocations: 1.077 MB / 1.091 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.173e-05/1.055, allocations: 28 kB / 1.091 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01609/1.071, allocations: 13.55 MB / 1.105 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/1.071, allocations: 4 kB / 1.105 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0052/1.076, allocations: 3.146 MB / 1.108 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000888/1.077, allocations: 423.1 kB / 1.108 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/1.078, allocations: 39.88 kB / 1.108 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/1.078, allocations: 79.89 kB / 1.108 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000395/1.079, allocations: 128.7 kB / 1.108 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.188e-05/1.079, allocations: 40 kB / 1.108 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001032/1.08, allocations: 0.7593 MB / 1.109 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/1.08, allocations: 0 / 1.109 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002103/1.082, allocations: 0.6602 MB / 1.11 GB, free: 9.602 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002331/1.082, allocations: 151 kB / 1.11 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.006042/1.088, allocations: 3.626 MB / 1.113 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.088, allocations: 4 kB / 1.113 GB, free: 5.773 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.003016/1.091, allocations: 1.955 MB / 1.115 GB, free: 3.781 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/1.094, allocations: 0.5022 MB / 1.116 GB, free: 3.293 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009052/1.103, allocations: 5.434 MB / 1.121 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/1.105, allocations: 2.336 MB / 1.123 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001186/1.106, allocations: 354.1 kB / 1.124 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/1.107, allocations: 83.44 kB / 1.124 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of SimCode: time 7.61e-07/1.107, allocations: 0 / 1.124 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of Templates: time 0.05277/1.159, allocations: 32.68 MB / 1.156 GB, free: 10.74 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches