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.001497/0.001497, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001816/0.001816, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.399/1.399, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.987/2.987, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 65 kB / 0.9114 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.325, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.007759/0.3328, allocations: 6.295 MB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006185/0.339, allocations: 4.534 MB / 1.078 GB, free: 68 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003861/0.3394, allocations: 23.88 kB / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.3416, allocations: 0.8447 MB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001689/0.3433, allocations: 0.7162 MB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.344, allocations: 287.6 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001392/0.3454, allocations: 1.448 MB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006185/0.346, allocations: 473.8 kB / 1.082 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004714/0.3465, allocations: 426.3 kB / 1.082 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005981/0.3471, allocations: 0.4981 MB / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.3472, allocations: 44 kB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005255/0.3477, allocations: 311.4 kB / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.3479, allocations: 223.3 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.3483, allocations: 389.9 kB / 1.084 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009402/0.3492, allocations: 1.063 MB / 1.085 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3493, allocations: 0 / 1.085 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of FrontEnd: time 7.42e-07/0.3493, allocations: 0 / 1.085 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.3493, allocations: 0 / 1.085 GB, free: 9.344 MB / 0.8419 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.001767/0.3511, allocations: 1.094 MB / 1.086 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.3511, allocations: 12.03 kB / 1.086 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003173/0.3543, allocations: 0.628 MB / 1.086 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007511/0.355, allocations: 0.5501 MB / 1.087 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.3551, allocations: 37.67 kB / 1.087 GB, free: 6.93 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.744e-05/0.3552, allocations: 52.12 kB / 1.087 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.3571, allocations: 1.022 MB / 1.088 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.3572, allocations: 3.938 kB / 1.088 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-05/0.3572, allocations: 27.98 kB / 1.088 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.233e-05/0.3573, allocations: 45.28 kB / 1.088 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/0.3596, allocations: 1.012 MB / 1.089 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00407/0.3637, allocations: 3.486 MB / 1.092 GB, free: 0.9375 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.3652, allocations: 0.4888 MB / 1.093 GB, free: 452 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.3658, allocations: 221.2 kB / 1.093 GB, free: 228 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.3658, allocations: 7.984 kB / 1.093 GB, free: 220 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.3659, allocations: 46.55 kB / 1.093 GB, free: 164 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.964e-06/0.3659, allocations: 0 / 1.093 GB, free: 164 kB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.006899/0.3728, allocations: 2.016 MB / 1.095 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.3728, allocations: 63.34 kB / 1.095 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006877/0.3735, allocations: 0.5743 MB / 1.096 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.3736, allocations: 33.7 kB / 1.096 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.3738, allocations: 352.2 kB / 1.096 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.374, allocations: 149.8 kB / 1.096 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.3742, allocations: 94.16 kB / 1.096 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3743, allocations: 374.7 kB / 1.097 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006689/0.375, allocations: 266.9 kB / 1.097 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/0.3757, allocations: 361.7 kB / 1.097 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.3771, allocations: 0.6187 MB / 1.098 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3771, allocations: 4 kB / 1.098 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002451/0.3796, allocations: 0.9234 MB / 1.099 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.3796, allocations: 8 kB / 1.099 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.3796, allocations: 4 kB / 1.099 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.3809, allocations: 277.2 kB / 1.099 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006666/0.3816, allocations: 119.7 kB / 1.099 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007501/0.3891, allocations: 8.439 MB / 1.107 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006529/0.3898, allocations: 48.05 kB / 1.108 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.3898, allocations: 23.98 kB / 1.108 GB, free: 452 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008874/0.3907, allocations: 433 kB / 1.108 GB, free: 16 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007017/0.3914, allocations: 357.5 kB / 1.108 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001302/0.3928, allocations: 0.6051 MB / 1.109 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.475e-06/0.3928, allocations: 4 kB / 1.109 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002439/0.3952, allocations: 1.121 MB / 1.11 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.3953, allocations: 11.88 kB / 1.11 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3953, allocations: 8.344 kB / 1.11 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008238/0.3961, allocations: 217 kB / 1.11 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/0.3967, allocations: 131.8 kB / 1.11 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006116/0.4029, allocations: 8.161 MB / 1.118 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.4035, allocations: 43.94 kB / 1.118 GB, free: 4.383 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.4036, allocations: 20 kB / 1.118 GB, free: 4.363 MB / 0.8731 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.0002167/0.4038, allocations: 216.9 kB / 1.119 GB, free: 4.145 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.4039, allocations: 63.25 kB / 1.119 GB, free: 4.082 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.4041, allocations: 78.38 kB / 1.119 GB, free: 4.004 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4041, allocations: 8 kB / 1.119 GB, free: 3.996 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.4041, allocations: 0 / 1.119 GB, free: 3.996 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.4041, allocations: 8.062 kB / 1.119 GB, free: 3.988 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008296/0.405, allocations: 0.6416 MB / 1.119 GB, free: 3.297 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.405, allocations: 3.984 kB / 1.119 GB, free: 3.293 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.4055, allocations: 95.86 kB / 1.119 GB, free: 3.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.4065, allocations: 256.9 kB / 1.12 GB, free: 2.93 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.4066, allocations: 11.98 kB / 1.12 GB, free: 2.918 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.4132, allocations: 8.392 MB / 1.128 GB, free: 9.723 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4132, allocations: 0 / 1.128 GB, free: 9.723 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.4155, allocations: 0.9208 MB / 1.129 GB, free: 8.766 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.4157, allocations: 184.2 kB / 1.129 GB, free: 8.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.449e-05/0.4158, allocations: 8 kB / 1.129 GB, free: 8.559 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005046/0.4163, allocations: 43.94 kB / 1.129 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4164, allocations: 31.95 kB / 1.129 GB, free: 8.484 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.4165, allocations: 15.98 kB / 1.129 GB, free: 8.469 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004749/0.417, allocations: 403.1 kB / 1.129 GB, free: 8.082 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.01e-07/0.417, allocations: 4 kB / 1.129 GB, free: 8.078 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001037/0.418, allocations: 300 kB / 1.13 GB, free: 7.785 MB / 0.8887 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.0001415/0.4182, allocations: 107.2 kB / 1.13 GB, free: 7.672 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003685/0.4219, allocations: 2.344 MB / 1.132 GB, free: 5.172 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4219, allocations: 0 / 1.132 GB, free: 5.172 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.4232, allocations: 0.9925 MB / 1.133 GB, free: 4.102 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009941/0.4242, allocations: 225.6 kB / 1.133 GB, free: 3.887 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.4267, allocations: 1.561 MB / 1.135 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000559/0.4273, allocations: 0.982 MB / 1.136 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005738/0.4278, allocations: 145.4 kB / 1.136 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.428, allocations: 51.42 kB / 1.136 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of SimCode: time 3.51e-07/0.428, allocations: 3.938 kB / 1.136 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of Templates: time 0.02016/0.4482, allocations: 12.82 MB / 1.149 GB, free: 4.398 MB / 0.9044 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