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.007912/0.007912, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001652/0.001652, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.593/2.593, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 68.11 kB / 1.054 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8995/0.9008, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00761/0.9085, allocations: 6.297 MB / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006328/0.9148, allocations: 4.541 MB / 1.218 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003851/0.9152, allocations: 23.88 kB / 1.218 GB, free: 2.727 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.9176, allocations: 0.9215 MB / 1.219 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001771/0.9194, allocations: 0.7613 MB / 1.22 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006544/0.92, allocations: 329.2 kB / 1.22 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001252/0.9213, allocations: 1.125 MB / 1.221 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008165/0.9221, allocations: 0.6847 MB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005288/0.9227, allocations: 486.3 kB / 1.222 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006508/0.9233, allocations: 498.1 kB / 1.223 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.9234, allocations: 72 kB / 1.223 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004911/0.9239, allocations: 283.5 kB / 1.223 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.9242, allocations: 247.2 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003507/0.9245, allocations: 410 kB / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.9256, allocations: 1.073 MB / 1.225 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.9256, allocations: 4 kB / 1.225 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.854e-06/0.9256, allocations: 0 / 1.225 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.16e-05/0.9256, allocations: 0 / 1.225 GB, free: 11.87 MB / 0.9512 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.001755/0.9274, allocations: 1.094 MB / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.9274, allocations: 8.031 kB / 1.226 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003269/0.9307, allocations: 0.6358 MB / 1.227 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007923/0.9315, allocations: 0.5774 MB / 1.227 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.9315, allocations: 37.69 kB / 1.227 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.032e-05/0.9316, allocations: 56.11 kB / 1.227 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.9336, allocations: 1.022 MB / 1.228 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.9336, allocations: 0 / 1.228 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.031e-05/0.9337, allocations: 20 kB / 1.228 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.428e-05/0.9337, allocations: 49.28 kB / 1.228 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.9361, allocations: 1.004 MB / 1.229 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.94, allocations: 3.49 MB / 1.233 GB, free: 3.434 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.9415, allocations: 490.4 kB / 1.233 GB, free: 2.945 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005455/0.942, allocations: 224.7 kB / 1.233 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.9421, allocations: 4 kB / 1.233 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.9421, allocations: 38.5 kB / 1.234 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.9421, allocations: 8 kB / 1.234 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of matching and sorting (n=43): time 0.006819/0.9489, allocations: 2.012 MB / 1.235 GB, free: 0.6055 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.949, allocations: 55.41 kB / 1.236 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006193/0.9496, allocations: 0.5665 MB / 1.236 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.9497, allocations: 37.7 kB / 1.236 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.9499, allocations: 360.2 kB / 1.236 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.95, allocations: 145.9 kB / 1.237 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.9502, allocations: 90.16 kB / 1.237 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.9504, allocations: 378.7 kB / 1.237 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000685/0.9511, allocations: 262.9 kB / 1.237 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006882/0.9518, allocations: 361.8 kB / 1.238 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.9532, allocations: 0.6225 MB / 1.238 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.9532, allocations: 0 / 1.238 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002383/0.9556, allocations: 0.9275 MB / 1.239 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.9556, allocations: 8 kB / 1.239 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.9556, allocations: 4 kB / 1.239 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.9568, allocations: 277 kB / 1.239 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006135/0.9574, allocations: 115.8 kB / 1.24 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007127/0.9645, allocations: 9.127 MB / 1.248 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.9652, allocations: 44.05 kB / 1.249 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/0.9653, allocations: 19.98 kB / 1.249 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009008/0.9662, allocations: 437 kB / 1.249 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007037/0.9669, allocations: 357.4 kB / 1.249 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001364/0.9683, allocations: 0.6129 MB / 1.25 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.853e-06/0.9683, allocations: 4 kB / 1.25 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002401/0.9707, allocations: 1.121 MB / 1.251 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.9707, allocations: 9.5 kB / 1.251 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.9707, allocations: 4.344 kB / 1.251 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007662/0.9715, allocations: 220.9 kB / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.9721, allocations: 123.8 kB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005965/0.9781, allocations: 8.789 MB / 1.26 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006474/0.9788, allocations: 47.97 kB / 1.26 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.9788, allocations: 12 kB / 1.26 GB, free: 5.492 MB / 0.9825 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.0002148/0.979, allocations: 216.1 kB / 1.26 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.9791, allocations: 67.25 kB / 1.26 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.9793, allocations: 78.38 kB / 1.26 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.9794, allocations: 4 kB / 1.26 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.9794, allocations: 7.938 kB / 1.26 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.9794, allocations: 3.984 kB / 1.26 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007739/0.9802, allocations: 0.6494 MB / 1.261 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.9802, allocations: 0 / 1.261 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.9807, allocations: 95.84 kB / 1.261 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009308/0.9816, allocations: 265 kB / 1.261 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.9817, allocations: 7.984 kB / 1.261 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/0.9881, allocations: 9.054 MB / 1.27 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.9882, allocations: 3.938 kB / 1.27 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.9904, allocations: 0.9171 MB / 1.271 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/0.9907, allocations: 184.2 kB / 1.271 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.461e-05/0.9908, allocations: 8 kB / 1.271 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/0.9913, allocations: 39.94 kB / 1.271 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.9914, allocations: 43.84 kB / 1.271 GB, free: 8.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.9915, allocations: 16 kB / 1.271 GB, free: 8.879 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00045/0.9919, allocations: 407.1 kB / 1.272 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9919, allocations: 0 / 1.272 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00105/0.993, allocations: 296 kB / 1.272 GB, free: 8.195 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.0001355/0.9931, allocations: 107.2 kB / 1.272 GB, free: 8.082 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003609/0.9967, allocations: 2.352 MB / 1.274 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.9968, allocations: 0 / 1.274 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.9981, allocations: 1.004 MB / 1.275 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009827/0.9991, allocations: 233.8 kB / 1.276 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/1.001, allocations: 1.285 MB / 1.277 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/1.002, allocations: 0.9821 MB / 1.278 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004948/1.002, allocations: 157.3 kB / 1.278 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/1.003, allocations: 43.42 kB / 1.278 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of SimCode: time 3.51e-07/1.003, allocations: 0 / 1.278 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of Templates: time 0.02046/1.023, allocations: 13.6 MB / 1.291 GB, free: 4.301 MB / 1.014 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