Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001979/0.001979, allocations: 195.8 kB / 16.25 MB, free: 6.637 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.525/1.525, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.105/3.105, allocations: 482.4 MB / 0.7543 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001987, allocations: 70.58 kB / 0.9233 GB, free: 29.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3129, allocations: 162.2 MB / 1.082 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008735/0.3217, allocations: 6.303 MB / 1.088 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007799/0.3295, allocations: 4.491 MB / 1.092 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005513/0.3301, allocations: 23.88 kB / 1.092 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.3326, allocations: 0.8642 MB / 1.093 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.3346, allocations: 0.6987 MB / 1.094 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008577/0.3355, allocations: 291.6 kB / 1.094 GB, free: 0.9375 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001804/0.3373, allocations: 1.14 MB / 1.095 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.3385, allocations: 0.771 MB / 1.096 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007233/0.3393, allocations: 482.3 kB / 1.096 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007296/0.34, allocations: 0.5058 MB / 1.097 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.3401, allocations: 72 kB / 1.097 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005627/0.3407, allocations: 287.5 kB / 1.097 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.341, allocations: 251.3 kB / 1.098 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004064/0.3414, allocations: 402 kB / 1.098 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.3426, allocations: 1.075 MB / 1.099 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3426, allocations: 8 kB / 1.099 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.817e-06/0.3426, allocations: 0 / 1.099 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.3426, allocations: 3.938 kB / 1.099 GB, free: 11.96 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002143/0.3448, allocations: 1.096 MB / 1.1 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3448, allocations: 15.91 kB / 1.1 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003168/0.348, allocations: 0.6242 MB / 1.101 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009939/0.349, allocations: 0.5385 MB / 1.101 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.3491, allocations: 37.69 kB / 1.101 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.3492, allocations: 56.12 kB / 1.101 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/0.3514, allocations: 1.025 MB / 1.102 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.3514, allocations: 0 / 1.102 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.27e-05/0.3515, allocations: 24 kB / 1.102 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.732e-05/0.3516, allocations: 53.28 kB / 1.102 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.354, allocations: 1.004 MB / 1.103 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004633/0.3587, allocations: 3.501 MB / 1.107 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.3602, allocations: 498.3 kB / 1.107 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/0.3608, allocations: 228.7 kB / 1.107 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.3609, allocations: 11.92 kB / 1.107 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.3609, allocations: 34.56 kB / 1.107 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.3609, allocations: 0 / 1.107 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43): time 0.006988/0.3679, allocations: 2.027 MB / 1.109 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.368, allocations: 55.41 kB / 1.11 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007396/0.3687, allocations: 0.5627 MB / 1.11 GB, free: 52 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.3688, allocations: 33.7 kB / 1.11 GB, free: 12 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.3691, allocations: 360.1 kB / 1.11 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.3692, allocations: 149.8 kB / 1.111 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3694, allocations: 94.16 kB / 1.111 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.3696, allocations: 378.7 kB / 1.111 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006954/0.3703, allocations: 258.9 kB / 1.111 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007624/0.3711, allocations: 361.8 kB / 1.112 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.3726, allocations: 0.6187 MB / 1.112 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3726, allocations: 0 / 1.112 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002519/0.3751, allocations: 0.9348 MB / 1.113 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3752, allocations: 7.984 kB / 1.113 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3752, allocations: 4 kB / 1.113 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.3764, allocations: 277.2 kB / 1.113 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.377, allocations: 115.8 kB / 1.114 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00868/0.3857, allocations: 9.117 MB / 1.122 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/0.3864, allocations: 44 kB / 1.122 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.3865, allocations: 20 kB / 1.122 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009598/0.3874, allocations: 437 kB / 1.123 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00078/0.3882, allocations: 357.4 kB / 1.123 GB, free: 1.508 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001443/0.3897, allocations: 0.6129 MB / 1.124 GB, free: 0.8516 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.834e-06/0.3897, allocations: 0 / 1.124 GB, free: 0.8516 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002634/0.3923, allocations: 1.121 MB / 1.125 GB, free: 15.65 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3924, allocations: 11.94 kB / 1.125 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3924, allocations: 8 kB / 1.125 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008349/0.3932, allocations: 221.2 kB / 1.125 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006211/0.3939, allocations: 119.8 kB / 1.125 GB, free: 15.28 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007597/0.4015, allocations: 8.804 MB / 1.134 GB, free: 5.629 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006131/0.4021, allocations: 43.89 kB / 1.134 GB, free: 5.586 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.4022, allocations: 20 kB / 1.134 GB, free: 5.566 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000249/0.4024, allocations: 219.3 kB / 1.134 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4025, allocations: 63.25 kB / 1.134 GB, free: 5.285 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000186/0.4027, allocations: 86.36 kB / 1.134 GB, free: 5.203 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.4027, allocations: 4 kB / 1.134 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4028, allocations: 0 / 1.134 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4028, allocations: 0 / 1.134 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009374/0.4037, allocations: 0.657 MB / 1.135 GB, free: 4.492 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4037, allocations: 4 kB / 1.135 GB, free: 4.488 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005244/0.4043, allocations: 91.84 kB / 1.135 GB, free: 4.398 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.4053, allocations: 252.9 kB / 1.135 GB, free: 4.133 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.4053, allocations: 8 kB / 1.135 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00834/0.4137, allocations: 9.07 MB / 1.144 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4137, allocations: 4.031 kB / 1.144 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.416, allocations: 0.9091 MB / 1.145 GB, free: 9.254 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.4164, allocations: 188.2 kB / 1.145 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.394e-05/0.4165, allocations: 12 kB / 1.145 GB, free: 9.039 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/0.417, allocations: 35.95 kB / 1.145 GB, free: 9.004 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.4171, allocations: 39.95 kB / 1.145 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4172, allocations: 15.98 kB / 1.145 GB, free: 8.949 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0005394/0.4177, allocations: 399.1 kB / 1.146 GB, free: 8.562 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4177, allocations: 4 kB / 1.146 GB, free: 8.559 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001201/0.4189, allocations: 296 kB / 1.146 GB, free: 8.27 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001809/0.4191, allocations: 116.5 kB / 1.146 GB, free: 8.148 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004434/0.4236, allocations: 2.407 MB / 1.148 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4236, allocations: 0 / 1.148 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.4251, allocations: 0.996 MB / 1.149 GB, free: 4.512 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.4262, allocations: 237.8 kB / 1.15 GB, free: 4.289 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.4291, allocations: 1.559 MB / 1.151 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.4298, allocations: 0.9782 MB / 1.152 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0006725/0.4305, allocations: 149.4 kB / 1.152 GB, free: 1.543 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.4306, allocations: 43.44 kB / 1.152 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of SimCode: time 1.273e-06/0.4306, allocations: 0 / 1.152 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of Templates: time 0.02507/0.4557, allocations: 13.41 MB / 1.165 GB, free: 4.227 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches