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 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.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.009568/0.009568, allocations: 99.78 kB / 15.73 MB, free: 6.043 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.001834/0.001834, allocations: 185.4 kB / 16.67 MB, free: 5.977 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 461.9 MB / 0.7347 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 64.12 kB / 1.054 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3466, allocations: 157.4 MB / 1.208 GB, free: 9.719 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008411/0.3551, allocations: 6.301 MB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006781/0.3619, allocations: 4.537 MB / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004375/0.3624, allocations: 23.88 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002441/0.3648, allocations: 0.9164 MB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001915/0.3667, allocations: 0.7752 MB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007426/0.3675, allocations: 322.1 kB / 1.22 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001357/0.3688, allocations: 1.129 MB / 1.221 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008856/0.3697, allocations: 0.6927 MB / 1.222 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005717/0.3703, allocations: 486.3 kB / 1.223 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006947/0.371, allocations: 0.4942 MB / 1.223 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3711, allocations: 72 kB / 1.223 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005504/0.3717, allocations: 279.5 kB / 1.223 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.372, allocations: 251.3 kB / 1.224 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003733/0.3723, allocations: 413.9 kB / 1.224 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.3734, allocations: 1.067 MB / 1.225 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3734, allocations: 0 / 1.225 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3734, allocations: 0 / 1.225 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.243e-05/0.3734, allocations: 0 / 1.225 GB, free: 7.934 MB / 0.9825 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.001869/0.3753, allocations: 1.094 MB / 1.226 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3754, allocations: 8.031 kB / 1.226 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00325/0.3786, allocations: 0.6281 MB / 1.227 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009401/0.3796, allocations: 0.5697 MB / 1.227 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.3796, allocations: 45.61 kB / 1.227 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-05/0.3797, allocations: 52.12 kB / 1.227 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.3817, allocations: 1.018 MB / 1.228 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3817, allocations: 0 / 1.228 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-05/0.3818, allocations: 23.98 kB / 1.228 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.447e-05/0.3819, allocations: 49.28 kB / 1.228 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002432/0.3843, allocations: 1.008 MB / 1.229 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.3885, allocations: 3.474 MB / 1.233 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.3901, allocations: 498.3 kB / 1.233 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005714/0.3906, allocations: 224.7 kB / 1.233 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.3907, allocations: 11.98 kB / 1.233 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3907, allocations: 38.56 kB / 1.234 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.3907, allocations: 0 / 1.234 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43): time 0.007002/0.3977, allocations: 2.02 MB / 1.235 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.3978, allocations: 63.34 kB / 1.236 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006789/0.3985, allocations: 0.5666 MB / 1.236 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/0.3985, allocations: 37.7 kB / 1.236 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.3988, allocations: 352.2 kB / 1.236 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.399, allocations: 149.8 kB / 1.237 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.3991, allocations: 90.16 kB / 1.237 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3993, allocations: 374.7 kB / 1.237 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006964/0.4, allocations: 258.9 kB / 1.237 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007415/0.4008, allocations: 361.8 kB / 1.238 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.4022, allocations: 0.6303 MB / 1.238 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4022, allocations: 4 kB / 1.238 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002412/0.4046, allocations: 0.9312 MB / 1.239 GB, free: 8.734 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.4047, allocations: 8 kB / 1.239 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4047, allocations: 4 kB / 1.239 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.4058, allocations: 273.2 kB / 1.239 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.4064, allocations: 115.8 kB / 1.24 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7672/1.174, allocations: 9.1 MB / 1.248 GB, free: 36.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009289/1.175, allocations: 46.08 kB / 1.248 GB, free: 36.33 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.728e-05/1.175, allocations: 20.91 kB / 1.249 GB, free: 36.33 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001019/1.176, allocations: 437.8 kB / 1.249 GB, free: 36.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008205/1.177, allocations: 353.7 kB / 1.249 GB, free: 36.13 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001543/1.178, allocations: 0.6062 MB / 1.25 GB, free: 36.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.855e-06/1.178, allocations: 4.438 kB / 1.25 GB, free: 36.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002688/1.181, allocations: 1.122 MB / 1.251 GB, free: 35.66 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/1.181, allocations: 10.16 kB / 1.251 GB, free: 35.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/1.181, allocations: 3.156 kB / 1.251 GB, free: 35.66 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008001/1.182, allocations: 221.4 kB / 1.251 GB, free: 35.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/1.182, allocations: 125.1 kB / 1.251 GB, free: 35.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/1.187, allocations: 8.797 MB / 1.26 GB, free: 27.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/1.188, allocations: 42.88 kB / 1.26 GB, free: 27.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/1.188, allocations: 18.66 kB / 1.26 GB, free: 27.57 MB / 0.9981 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.0002174/1.188, allocations: 222.3 kB / 1.26 GB, free: 27.38 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/1.188, allocations: 67.5 kB / 1.26 GB, free: 27.38 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/1.188, allocations: 76.48 kB / 1.26 GB, free: 27.37 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/1.188, allocations: 5.625 kB / 1.26 GB, free: 27.37 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/1.188, allocations: 2.453 kB / 1.26 GB, free: 27.37 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/1.188, allocations: 3.328 kB / 1.26 GB, free: 27.37 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008048/1.189, allocations: 0.647 MB / 1.261 GB, free: 27.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.189, allocations: 2.156 kB / 1.261 GB, free: 27.18 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/1.19, allocations: 95.7 kB / 1.261 GB, free: 27.17 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009317/1.191, allocations: 261.8 kB / 1.261 GB, free: 27.12 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/1.191, allocations: 7.875 kB / 1.261 GB, free: 27.12 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00538/1.196, allocations: 9.052 MB / 1.27 GB, free: 19.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.196, allocations: 7.75 kB / 1.27 GB, free: 19.02 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/1.198, allocations: 0.9117 MB / 1.271 GB, free: 18.79 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/1.199, allocations: 186.1 kB / 1.271 GB, free: 18.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/1.199, allocations: 8.375 kB / 1.271 GB, free: 18.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/1.199, allocations: 36.81 kB / 1.271 GB, free: 18.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/1.199, allocations: 42.55 kB / 1.271 GB, free: 18.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.651e-05/1.199, allocations: 13.47 kB / 1.271 GB, free: 18.65 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004987/1.2, allocations: 404.7 kB / 1.272 GB, free: 18.55 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.2, allocations: 0 / 1.272 GB, free: 18.55 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001118/1.201, allocations: 303.9 kB / 1.272 GB, free: 18.55 MB / 0.9981 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.000142/1.201, allocations: 112.6 kB / 1.272 GB, free: 18.46 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004259/1.206, allocations: 2.35 MB / 1.274 GB, free: 17.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.206, allocations: 0.8438 kB / 1.274 GB, free: 17.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/1.207, allocations: 1.002 MB / 1.275 GB, free: 16.43 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/1.208, allocations: 230.8 kB / 1.276 GB, free: 16.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/1.211, allocations: 1.298 MB / 1.277 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007266/1.212, allocations: 0.9801 MB / 1.278 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0006531/1.213, allocations: 154.2 kB / 1.278 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/1.213, allocations: 43.55 kB / 1.278 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of SimCode: time 8.22e-07/1.213, allocations: 0 / 1.278 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of Templates: time 0.03419/1.247, allocations: 13.9 MB / 1.292 GB, free: 14.37 MB / 0.9981 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=480 -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