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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001697/0.001698, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001761/0.001761, allocations: 193.8 kB / 16.25 MB, free: 6.641 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.377/1.377, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 472.7 MB / 0.7449 GB, free: 4.816 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 62.97 kB / 0.9116 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2972, allocations: 159.9 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01249/0.3098, allocations: 10.06 MB / 1.078 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006227/0.3161, allocations: 3.151 MB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.3172, allocations: 27.88 kB / 1.081 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.3189, allocations: 0.5446 MB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.3208, allocations: 0.7002 MB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.3225, allocations: 0.6747 MB / 1.083 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003487/0.326, allocations: 3.004 MB / 1.085 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0041/0.3302, allocations: 3.074 MB / 1.088 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.3323, allocations: 1.262 MB / 1.09 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002064/0.3343, allocations: 1.66 MB / 1.091 GB, free: 2.441 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000391/0.3347, allocations: 236 kB / 1.092 GB, free: 2.211 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009533/0.3357, allocations: 0.5032 MB / 1.092 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.3367, allocations: 1.076 MB / 1.093 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.338, allocations: 1.112 MB / 1.094 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004528/0.3425, allocations: 3.677 MB / 1.098 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.3425, allocations: 0 / 1.098 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.526e-06/0.3425, allocations: 4 kB / 1.098 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.808e-05/0.3426, allocations: 3.938 kB / 1.098 GB, free: 11.82 MB / 0.8575 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.004268/0.3469, allocations: 2.146 MB / 1.1 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.347, allocations: 12.03 kB / 1.1 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008581/0.3555, allocations: 1.309 MB / 1.101 GB, free: 8.289 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.3579, allocations: 1.255 MB / 1.102 GB, free: 6.988 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.799e-05/0.358, allocations: 119.4 kB / 1.103 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003131/0.3583, allocations: 144.3 kB / 1.103 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005289/0.3636, allocations: 3.442 MB / 1.106 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.3637, allocations: 7.938 kB / 1.106 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.3639, allocations: 63.97 kB / 1.106 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000261/0.3641, allocations: 207.1 kB / 1.106 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004827/0.369, allocations: 3.124 MB / 1.109 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.387, allocations: 13.63 MB / 1.123 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.3895, allocations: 1.72 MB / 1.124 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.3914, allocations: 1.436 MB / 1.126 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.3915, allocations: 20.92 kB / 1.126 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3915, allocations: 43.56 kB / 1.126 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=104): time 2.354e-06/0.3915, allocations: 0 / 1.126 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of matching and sorting (n=183): time 0.1317/0.5233, allocations: 36.66 MB / 1.162 GB, free: 9.238 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.5234, allocations: 73.41 kB / 1.162 GB, free: 9.156 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/0.5251, allocations: 1.053 MB / 1.163 GB, free: 8.078 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000387/0.5255, allocations: 57.7 kB / 1.163 GB, free: 8.016 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000646/0.5261, allocations: 0.7834 MB / 1.164 GB, free: 7.223 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007197/0.5269, allocations: 0.6277 MB / 1.164 GB, free: 6.586 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007909/0.5277, allocations: 359.4 kB / 1.164 GB, free: 6.227 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.5278, allocations: 309.1 kB / 1.165 GB, free: 5.922 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/0.5304, allocations: 1.928 MB / 1.167 GB, free: 3.992 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002864/0.5333, allocations: 2.289 MB / 1.169 GB, free: 1.582 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005463/0.5388, allocations: 4.394 MB / 1.173 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.5388, allocations: 4 kB / 1.173 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01954/0.5583, allocations: 9.019 MB / 1.182 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.5584, allocations: 12.59 kB / 1.182 GB, free: 4 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.5584, allocations: 8 kB / 1.182 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01665/0.5751, allocations: 5.009 MB / 1.187 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.5762, allocations: 187.7 kB / 1.187 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05689/0.6331, allocations: 38.93 MB / 1.225 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.6352, allocations: 99.89 kB / 1.225 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002004/0.6354, allocations: 75.97 kB / 1.225 GB, free: 7.098 MB / 0.9825 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.001419/0.6368, allocations: 0.8063 MB / 1.226 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/0.6372, allocations: 142.3 kB / 1.226 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/0.6557, allocations: 8.882 MB / 1.235 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/0.6557, allocations: 23.94 kB / 1.235 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.431e-05/0.6558, allocations: 28 kB / 1.235 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.22e-05/0.6558, allocations: 7.969 kB / 1.235 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6504/1.306, allocations: 13.3 MB / 1.248 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/1.306, allocations: 3.656 kB / 1.248 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005227/1.307, allocations: 122.3 kB / 1.248 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01725/1.324, allocations: 4.788 MB / 1.253 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003963/1.325, allocations: 34.22 kB / 1.253 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05/1.375, allocations: 34.86 MB / 1.287 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/1.375, allocations: 3.312 kB / 1.287 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01768/1.392, allocations: 8.41 MB / 1.295 GB, free: 149.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/1.394, allocations: 0.6083 MB / 1.296 GB, free: 148.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/1.394, allocations: 47.33 kB / 1.296 GB, free: 148.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/1.395, allocations: 88.67 kB / 1.296 GB, free: 148.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00104/1.396, allocations: 163.2 kB / 1.296 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/1.396, allocations: 47 kB / 1.296 GB, free: 148.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008849/1.397, allocations: 0.7412 MB / 1.297 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.397, allocations: 0 / 1.297 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003085/1.4, allocations: 1.003 MB / 1.298 GB, free: 148.3 MB / 0.9981 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%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003295/1.401, allocations: 143.5 kB / 1.298 GB, free: 148.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00934/1.41, allocations: 6.686 MB / 1.304 GB, free: 145.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.41, allocations: 3.938 kB / 1.304 GB, free: 145.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007033/1.417, allocations: 3.835 MB / 1.308 GB, free: 144.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/1.419, allocations: 237.5 kB / 1.308 GB, free: 144.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/1.426, allocations: 5.804 MB / 1.314 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/1.428, allocations: 1.857 MB / 1.316 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0008435/1.429, allocations: 357.3 kB / 1.316 GB, free: 138.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/1.429, allocations: 59.44 kB / 1.316 GB, free: 138.7 MB / 0.9981 GB Notification: Performance of SimCode: time 6.41e-07/1.429, allocations: 0 / 1.316 GB, free: 138.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.06628/1.495, allocations: 59.87 MB / 1.375 GB, free: 79.01 MB / 0.9981 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/jenkins/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