Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 108.5 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001645/0.001646, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.43/2.43, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001808, allocations: 71.83 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9169/0.9188, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01775/0.9365, allocations: 14.8 MB / 1.182 GB, free: 4.977 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01511/0.9517, allocations: 10.34 MB / 1.192 GB, free: 10.6 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.9532, allocations: 55.69 kB / 1.192 GB, free: 10.54 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004699/0.958, allocations: 1.695 MB / 1.194 GB, free: 8.848 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.006506/0.9645, allocations: 1.847 MB / 1.195 GB, free: 7 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.9669, allocations: 0.7631 MB / 1.196 GB, free: 6.238 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004228/0.9711, allocations: 2.746 MB / 1.199 GB, free: 3.48 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.9731, allocations: 1.423 MB / 1.2 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.9756, allocations: 1.531 MB / 1.202 GB, free: 500 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.9776, allocations: 1.16 MB / 1.203 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.000276/0.9779, allocations: 160 kB / 1.203 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.9795, allocations: 0.7916 MB / 1.204 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005746/0.9801, allocations: 0.5998 MB / 1.204 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009747/0.9811, allocations: 0.9522 MB / 1.205 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003148/0.9842, allocations: 2.772 MB / 1.208 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.9843, allocations: 0 / 1.208 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9843, allocations: 4 kB / 1.208 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.195e-05/0.9843, allocations: 0 / 1.208 GB, free: 10.03 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003978/0.9883, allocations: 2.162 MB / 1.21 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.9883, allocations: 8.625 kB / 1.21 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.9997, allocations: 2.105 MB / 1.212 GB, free: 5.695 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/1.003, allocations: 1.315 MB / 1.213 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/1.003, allocations: 82.69 kB / 1.213 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002749/1.003, allocations: 127.9 kB / 1.214 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00561/1.009, allocations: 2.67 MB / 1.216 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.331e-05/1.009, allocations: 15.86 kB / 1.216 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/1.009, allocations: 51.98 kB / 1.216 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006334/1.01, allocations: 190.1 kB / 1.216 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007257/1.017, allocations: 2.791 MB / 1.219 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01663/1.034, allocations: 10.46 MB / 1.229 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006182/1.04, allocations: 2.34 MB / 1.232 GB, free: 0.8281 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003068/1.043, allocations: 1.279 MB / 1.233 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.035e-05/1.043, allocations: 9 kB / 1.233 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/1.043, allocations: 47.56 kB / 1.233 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=89): time 4.007e-06/1.043, allocations: 0 / 1.233 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of matching and sorting (n=153): time 0.05825/1.102, allocations: 16.48 MB / 1.249 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/1.102, allocations: 64.72 kB / 1.249 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/1.103, allocations: 1.18 MB / 1.25 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002875/1.104, allocations: 49.7 kB / 1.25 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005946/1.104, allocations: 0.7437 MB / 1.251 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005781/1.105, allocations: 0.512 MB / 1.252 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005782/1.105, allocations: 295.4 kB / 1.252 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.106, allocations: 309.1 kB / 1.252 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003373/1.109, allocations: 1.51 MB / 1.254 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003566/1.113, allocations: 1.784 MB / 1.255 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/1.12, allocations: 3.369 MB / 1.259 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/1.12, allocations: 4 kB / 1.259 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01345/1.133, allocations: 5.277 MB / 1.264 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/1.133, allocations: 8 kB / 1.264 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/1.133, allocations: 8 kB / 1.264 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007152/1.14, allocations: 1.88 MB / 1.266 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/1.142, allocations: 419.2 kB / 1.266 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02991/1.172, allocations: 24.13 MB / 1.29 GB, free: 3.914 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/1.175, allocations: 303.5 kB / 1.29 GB, free: 3.617 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/1.175, allocations: 67.95 kB / 1.29 GB, free: 3.551 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008796/1.176, allocations: 471.6 kB / 1.29 GB, free: 3.082 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003463/1.176, allocations: 177.9 kB / 1.291 GB, free: 2.906 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/1.19, allocations: 5.328 MB / 1.296 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/1.19, allocations: 12 kB / 1.296 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.644e-05/1.19, allocations: 20 kB / 1.296 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/1.19, allocations: 7.969 kB / 1.296 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01694/1.207, allocations: 7.423 MB / 1.303 GB, free: 5.941 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.207, allocations: 4 kB / 1.303 GB, free: 5.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/1.208, allocations: 355.7 kB / 1.303 GB, free: 5.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/1.215, allocations: 1.7 MB / 1.305 GB, free: 3.867 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000189/1.215, allocations: 47.91 kB / 1.305 GB, free: 3.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02803/1.243, allocations: 23.31 MB / 1.328 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.243, allocations: 4.031 kB / 1.328 GB, free: 11.39 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0123/1.255, allocations: 4.895 MB / 1.333 GB, free: 6.406 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/1.256, allocations: 490.7 kB / 1.333 GB, free: 5.906 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/1.257, allocations: 35.98 kB / 1.333 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.259, allocations: 311.5 kB / 1.333 GB, free: 5.566 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/1.259, allocations: 157 kB / 1.334 GB, free: 5.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/1.26, allocations: 51.97 kB / 1.334 GB, free: 5.359 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001023/1.261, allocations: 0.7899 MB / 1.334 GB, free: 4.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.453e-06/1.261, allocations: 0 / 1.334 GB, free: 4.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002069/1.263, allocations: 0.664 MB / 1.335 GB, free: 3.906 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002949/1.263, allocations: 136.9 kB / 1.335 GB, free: 3.766 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0109/1.274, allocations: 5.151 MB / 1.34 GB, free: 14.51 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/1.274, allocations: 0 / 1.34 GB, free: 14.51 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.006866/1.281, allocations: 3.351 MB / 1.344 GB, free: 11.05 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/1.283, allocations: 0.5626 MB / 1.344 GB, free: 10.51 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008418/1.292, allocations: 4.403 MB / 1.348 GB, free: 6.055 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/1.293, allocations: 1.568 MB / 1.35 GB, free: 4.449 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005739/1.294, allocations: 131.3 kB / 1.35 GB, free: 4.324 MB / 1.076 GB Notification: Performance of SimCode: time 6.31e-07/1.294, allocations: 0 / 1.35 GB, free: 4.324 MB / 1.076 GB Notification: Performance of Templates: time 0.08373/1.377, allocations: 85.85 MB / 1.434 GB, free: 14.55 MB / 1.17 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches