Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001503, allocations: 102.2 kB / 16.4 MB, free: 6.461 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.001889/0.00189, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.749/2.749, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.84 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9042/0.9057, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01323/0.919, allocations: 10.08 MB / 1.218 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006362/0.9254, allocations: 3.181 MB / 1.221 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000968/0.9264, allocations: 43.81 kB / 1.221 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.9285, allocations: 0.5869 MB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002036/0.9306, allocations: 0.7388 MB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.9324, allocations: 0.7403 MB / 1.223 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003746/0.9362, allocations: 2.992 MB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003668/0.9399, allocations: 2.598 MB / 1.229 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.9421, allocations: 1.262 MB / 1.23 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00276/0.9449, allocations: 1.558 MB / 1.232 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0007767/0.9457, allocations: 240 kB / 1.232 GB, free: 5.461 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.9474, allocations: 0.4955 MB / 1.232 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001766/0.9492, allocations: 1.076 MB / 1.233 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.002358/0.9515, allocations: 1.109 MB / 1.235 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.004907/0.9564, allocations: 3.691 MB / 1.238 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.9565, allocations: 0 / 1.238 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9565, allocations: 0 / 1.238 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001309/0.9566, allocations: 0 / 1.238 GB, free: 15.07 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.005938/0.9626, allocations: 2.142 MB / 1.24 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.9626, allocations: 8.031 kB / 1.24 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00934/0.972, allocations: 1.321 MB / 1.241 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00299/0.975, allocations: 1.294 MB / 1.243 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.9752, allocations: 111.4 kB / 1.243 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007804/0.976, allocations: 144.3 kB / 1.243 GB, free: 9.953 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007879/0.9839, allocations: 3.445 MB / 1.246 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.227e-05/0.984, allocations: 4 kB / 1.246 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005356/0.9845, allocations: 67.91 kB / 1.246 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003072/0.9848, allocations: 203.1 kB / 1.247 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006201/0.991, allocations: 3.128 MB / 1.25 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02114/1.012, allocations: 13.55 MB / 1.263 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/1.015, allocations: 1.724 MB / 1.265 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002132/1.017, allocations: 1.44 MB / 1.266 GB, free: 1.398 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/1.017, allocations: 20.98 kB / 1.266 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.017, allocations: 43.56 kB / 1.266 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=104): time 4.458e-06/1.017, allocations: 0 / 1.266 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of matching and sorting (n=183): time 0.1549/1.172, allocations: 36.67 MB / 1.302 GB, free: 12.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/1.172, allocations: 77.41 kB / 1.302 GB, free: 12.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/1.174, allocations: 1.053 MB / 1.303 GB, free: 11.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.000416/1.175, allocations: 57.7 kB / 1.303 GB, free: 11.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006178/1.175, allocations: 0.7834 MB / 1.304 GB, free: 10.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008669/1.176, allocations: 0.6238 MB / 1.304 GB, free: 9.855 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/1.177, allocations: 363.4 kB / 1.305 GB, free: 9.492 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001307/1.177, allocations: 305.1 kB / 1.305 GB, free: 9.191 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/1.18, allocations: 1.932 MB / 1.307 GB, free: 7.258 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003231/1.184, allocations: 2.285 MB / 1.309 GB, free: 4.852 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006174/1.19, allocations: 4.394 MB / 1.313 GB, free: 340 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/1.19, allocations: 4 kB / 1.313 GB, free: 336 kB / 1.029 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02153/1.211, allocations: 9.023 MB / 1.322 GB, free: 7.273 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/1.211, allocations: 15.88 kB / 1.322 GB, free: 7.258 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/1.211, allocations: 12 kB / 1.322 GB, free: 7.246 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01789/1.229, allocations: 4.973 MB / 1.327 GB, free: 2.258 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009808/1.23, allocations: 191.7 kB / 1.327 GB, free: 2.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06224/1.293, allocations: 38.9 MB / 1.365 GB, free: 10.6 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/1.295, allocations: 99.89 kB / 1.365 GB, free: 10.5 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004958/1.296, allocations: 68 kB / 1.365 GB, free: 10.43 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00192/1.298, allocations: 0.8139 MB / 1.366 GB, free: 9.609 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005049/1.298, allocations: 138.3 kB / 1.366 GB, free: 9.473 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02199/1.32, allocations: 8.882 MB / 1.375 GB, free: 0.5508 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-05/1.32, allocations: 20 kB / 1.375 GB, free: 0.5312 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001449/1.32, allocations: 28 kB / 1.375 GB, free: 0.5039 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.973e-05/1.32, allocations: 11.95 kB / 1.375 GB, free: 0.4922 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0319/1.352, allocations: 13.4 MB / 1.388 GB, free: 2.938 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.223e-05/1.353, allocations: 4.469 kB / 1.388 GB, free: 2.934 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006833/1.353, allocations: 127.8 kB / 1.388 GB, free: 2.809 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0178/1.371, allocations: 4.836 MB / 1.393 GB, free: 13.96 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004482/1.372, allocations: 32 kB / 1.393 GB, free: 13.93 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06065/1.432, allocations: 36.83 MB / 1.429 GB, free: 8.508 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.432, allocations: 7.938 kB / 1.429 GB, free: 8.5 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02113/1.453, allocations: 8.592 MB / 1.437 GB, free: 15.82 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/1.455, allocations: 0.6359 MB / 1.438 GB, free: 15.16 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006294/1.456, allocations: 47.78 kB / 1.438 GB, free: 15.11 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/1.457, allocations: 95.88 kB / 1.438 GB, free: 15.02 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/1.458, allocations: 157.7 kB / 1.438 GB, free: 14.86 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/1.459, allocations: 44 kB / 1.438 GB, free: 14.82 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001259/1.46, allocations: 0.7382 MB / 1.439 GB, free: 14.07 MB / 1.17 GB Notification: Performance of sort global known variables: time 2.91e-07/1.46, allocations: 4 kB / 1.439 GB, free: 14.07 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.004084/1.464, allocations: 1.004 MB / 1.44 GB, free: 13.06 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (15,23,74.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004658/1.465, allocations: 143.1 kB / 1.44 GB, free: 12.91 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.01085/1.475, allocations: 5.944 MB / 1.446 GB, free: 6.918 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.476, allocations: 4 kB / 1.446 GB, free: 6.914 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.00884/1.484, allocations: 3.946 MB / 1.45 GB, free: 2.914 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/1.487, allocations: 233.5 kB / 1.45 GB, free: 2.688 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/1.497, allocations: 5.364 MB / 1.455 GB, free: 13.27 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/1.499, allocations: 1.89 MB / 1.457 GB, free: 11.34 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/1.5, allocations: 79.36 kB / 1.457 GB, free: 11.26 MB / 1.186 GB Notification: Performance of SimCode: time 1.774e-06/1.5, allocations: 0 / 1.457 GB, free: 11.26 MB / 1.186 GB Notification: Performance of Templates: time 0.08436/1.584, allocations: 69.41 MB / 1.525 GB, free: 5.824 MB / 1.248 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches