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.001181/0.00118, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001187/0.001187, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.407/1.407, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.674/2.674, allocations: 472.7 MB / 0.746 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 59.89 kB / 1.07 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8833/0.8847, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00908/0.8938, allocations: 6.296 MB / 1.232 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007125/0.901, allocations: 4.549 MB / 1.237 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000831/0.9019, allocations: 23.88 kB / 1.237 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002746/0.9047, allocations: 0.9132 MB / 1.238 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002954/0.9076, allocations: 0.7825 MB / 1.239 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.9087, allocations: 326.6 kB / 1.239 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002168/0.9108, allocations: 1.136 MB / 1.24 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.9121, allocations: 0.6845 MB / 1.241 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.9131, allocations: 490.3 kB / 1.241 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.9143, allocations: 498.1 kB / 1.242 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002581/0.9146, allocations: 72 kB / 1.242 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008774/0.9155, allocations: 275.5 kB / 1.242 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003835/0.9159, allocations: 251.2 kB / 1.242 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008027/0.9167, allocations: 410 kB / 1.243 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.9185, allocations: 1.075 MB / 1.244 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.9185, allocations: 0 / 1.244 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9186, allocations: 4 kB / 1.244 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.979e-05/0.9186, allocations: 0 / 1.244 GB, free: 11.7 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002594/0.9212, allocations: 1.113 MB / 1.245 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.9213, allocations: 11.97 kB / 1.245 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003297/0.9246, allocations: 0.6441 MB / 1.245 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.9257, allocations: 0.5702 MB / 1.246 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.9257, allocations: 45.67 kB / 1.246 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.9259, allocations: 52.12 kB / 1.246 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/0.928, allocations: 1.014 MB / 1.247 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.928, allocations: 4 kB / 1.247 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.613e-05/0.9281, allocations: 23.98 kB / 1.247 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.515e-05/0.9282, allocations: 49.28 kB / 1.247 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0024/0.9306, allocations: 1.008 MB / 1.248 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.9351, allocations: 3.475 MB / 1.251 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.9365, allocations: 0.491 MB / 1.252 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/0.9371, allocations: 228.7 kB / 1.252 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.061e-05/0.9371, allocations: 4 kB / 1.252 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.9372, allocations: 34.56 kB / 1.252 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=31): time 2.645e-06/0.9372, allocations: 4 kB / 1.252 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=43): time 0.006726/0.9439, allocations: 2.034 MB / 1.254 GB, free: 400 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.944, allocations: 55.41 kB / 1.254 GB, free: 332 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007723/0.9448, allocations: 0.5667 MB / 1.255 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.56e-05/0.9448, allocations: 37.7 kB / 1.255 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/0.9451, allocations: 360.8 kB / 1.255 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.9452, allocations: 158.6 kB / 1.255 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.9454, allocations: 90.2 kB / 1.255 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.9456, allocations: 374.8 kB / 1.256 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.9462, allocations: 262.8 kB / 1.256 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.947, allocations: 361.8 kB / 1.256 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.9484, allocations: 0.6225 MB / 1.257 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.9484, allocations: 0 / 1.257 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002473/0.9509, allocations: 0.9435 MB / 1.258 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.9509, allocations: 8 kB / 1.258 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.9509, allocations: 0 / 1.258 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.9521, allocations: 276.9 kB / 1.258 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006186/0.9527, allocations: 115.8 kB / 1.258 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007948/0.9607, allocations: 9.107 MB / 1.267 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007228/0.9614, allocations: 44.02 kB / 1.267 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.292e-05/0.9615, allocations: 23.94 kB / 1.267 GB, free: 2.02 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000954/0.9625, allocations: 437 kB / 1.268 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007153/0.9632, allocations: 365.3 kB / 1.268 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001353/0.9646, allocations: 0.6129 MB / 1.269 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.316e-06/0.9646, allocations: 0 / 1.269 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002577/0.9672, allocations: 1.121 MB / 1.27 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.9672, allocations: 8 kB / 1.27 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.9672, allocations: 7.938 kB / 1.27 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008/0.9681, allocations: 225.2 kB / 1.27 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006095/0.9687, allocations: 123.8 kB / 1.27 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006918/0.9756, allocations: 8.794 MB / 1.279 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006699/0.9763, allocations: 43.95 kB / 1.279 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.9764, allocations: 19.98 kB / 1.279 GB, free: 5.258 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.00023/0.9766, allocations: 212.2 kB / 1.279 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.9768, allocations: 75.52 kB / 1.279 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.977, allocations: 78.38 kB / 1.279 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.977, allocations: 0 / 1.279 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.977, allocations: 3.984 kB / 1.279 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.9772, allocations: 184.6 kB / 1.279 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.938e-05/0.9773, allocations: 8 kB / 1.279 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.9778, allocations: 35.95 kB / 1.279 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.978, allocations: 39.94 kB / 1.279 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002595/0.9806, allocations: 0.9384 MB / 1.28 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002039/0.9826, allocations: 1.047 MB / 1.281 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006123/0.9832, allocations: 271.7 kB / 1.281 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004725/0.9837, allocations: 407.1 kB / 1.282 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of Backend: time 6.11e-07/0.9837, allocations: 0 / 1.282 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003967/0.9877, allocations: 2.343 MB / 1.284 GB, free: 15.41 MB / 1.014 GB Notification: Performance of SimCode: time 0.002711/0.9904, allocations: 1.916 MB / 1.286 GB, free: 13.45 MB / 1.014 GB Notification: Performance of Templates: time 0.02818/1.019, allocations: 16.39 MB / 1.302 GB, free: 13.2 MB / 1.029 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/jenkins1/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