Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006483/0.006483, allocations: 101.1 kB / 15.73 MB, free: 6.016 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.001563/0.001563, allocations: 193 kB / 16.67 MB, free: 5.934 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.91 kB / 0.9504 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7191/0.7204, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02447/0.7449, allocations: 22.63 MB / 1.11 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02713/0.7721, allocations: 17.63 MB / 1.127 GB, free: 9.461 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003816/0.776, allocations: 111.1 kB / 1.127 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.7877, allocations: 4.175 MB / 1.131 GB, free: 6.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0131/0.8008, allocations: 3.581 MB / 1.134 GB, free: 4.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004172/0.805, allocations: 1.32 MB / 1.136 GB, free: 4.055 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01028/0.8153, allocations: 5.794 MB / 1.141 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007631/0.823, allocations: 3.589 MB / 1.145 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005156/0.8282, allocations: 2.484 MB / 1.147 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00541/0.8336, allocations: 2.451 MB / 1.15 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001564/0.8352, allocations: 368.8 kB / 1.15 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003599/0.8388, allocations: 1.034 MB / 1.151 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.002286/0.8411, allocations: 1.193 MB / 1.152 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.004775/0.8459, allocations: 2.001 MB / 1.154 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.008645/0.8546, allocations: 5.198 MB / 1.159 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.8546, allocations: 0 / 1.159 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.412e-06/0.8546, allocations: 1.094 kB / 1.159 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001454/0.8548, allocations: 0 / 1.159 GB, free: 8.828 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.0132/0.868, allocations: 4.737 MB / 1.164 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.868, allocations: 8.531 kB / 1.164 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006296/0.8686, allocations: 361 kB / 1.164 GB, free: 5.258 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/0.8855, allocations: 3.281 MB / 1.168 GB, free: 3.75 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006075/0.8916, allocations: 2.253 MB / 1.17 GB, free: 2.145 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004585/0.8921, allocations: 467.3 kB / 1.17 GB, free: 1.738 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009099/0.893, allocations: 234.5 kB / 1.17 GB, free: 1.66 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.9059, allocations: 4.81 MB / 1.175 GB, free: 14.81 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.906, allocations: 4.812 kB / 1.175 GB, free: 14.8 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004093/0.9064, allocations: 106.7 kB / 1.175 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/0.9067, allocations: 176.5 kB / 1.175 GB, free: 14.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.9219, allocations: 5.19 MB / 1.18 GB, free: 12.07 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02509/0.947, allocations: 14.42 MB / 1.194 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009808/0.9569, allocations: 3.392 MB / 1.198 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003736/0.9606, allocations: 1.467 MB / 1.199 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.9607, allocations: 25.3 kB / 1.199 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004242/0.965, allocations: 1.798 MB / 1.201 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 3.407e-06/0.965, allocations: 4 kB / 1.201 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1317/1.097, allocations: 28.29 MB / 1.229 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003086/1.097, allocations: 0.4966 MB / 1.229 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003977/1.101, allocations: 2.3 MB / 1.231 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004858/1.102, allocations: 77.7 kB / 1.231 GB, free: 8.652 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001303/1.103, allocations: 1.448 MB / 1.233 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.001128/1.104, allocations: 0.8598 MB / 1.234 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/1.105, allocations: 428.5 kB / 1.234 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.866e-05/1.105, allocations: 301.1 kB / 1.234 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005581/1.111, allocations: 1.925 MB / 1.236 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/1.117, allocations: 2.239 MB / 1.238 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/1.128, allocations: 4.158 MB / 1.243 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/1.128, allocations: 0 / 1.243 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01983/1.148, allocations: 6.553 MB / 1.249 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.148, allocations: 148.5 kB / 1.249 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/1.148, allocations: 8 kB / 1.249 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/1.159, allocations: 2.926 MB / 1.252 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003037/1.162, allocations: 491.2 kB / 1.252 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04245/1.204, allocations: 18.86 MB / 1.271 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/1.209, allocations: 319.6 kB / 1.271 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005269/1.21, allocations: 87.97 kB / 1.271 GB, free: 15.31 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001857/1.211, allocations: 0.7105 MB / 1.272 GB, free: 14.59 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008833/1.212, allocations: 349.9 kB / 1.272 GB, free: 14.25 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008863/1.213, allocations: 376.1 kB / 1.273 GB, free: 13.87 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/1.213, allocations: 24 kB / 1.273 GB, free: 13.85 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.278e-05/1.213, allocations: 8 kB / 1.273 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.213, allocations: 11.95 kB / 1.273 GB, free: 13.83 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005114/1.218, allocations: 3.636 MB / 1.276 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/1.218, allocations: 0 / 1.276 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.221, allocations: 415.3 kB / 1.277 GB, free: 9.73 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009841/1.231, allocations: 2.876 MB / 1.279 GB, free: 6.844 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004601/1.231, allocations: 51.97 kB / 1.279 GB, free: 6.793 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04013/1.271, allocations: 18.63 MB / 1.298 GB, free: 3.875 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/1.272, allocations: 4 kB / 1.298 GB, free: 3.871 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01904/1.291, allocations: 6.198 MB / 1.304 GB, free: 13.63 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/1.293, allocations: 0.7096 MB / 1.304 GB, free: 12.9 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/1.294, allocations: 47.94 kB / 1.304 GB, free: 12.85 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0041/1.298, allocations: 311.6 kB / 1.305 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/1.3, allocations: 354.7 kB / 1.305 GB, free: 12.2 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003425/1.3, allocations: 67.97 kB / 1.305 GB, free: 12.14 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002625/1.303, allocations: 1.544 MB / 1.307 GB, free: 10.59 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/1.303, allocations: 0 / 1.307 GB, free: 10.59 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003723/1.306, allocations: 1.043 MB / 1.308 GB, free: 9.551 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01911/1.325, allocations: 6.82 MB / 1.314 GB, free: 2.695 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.02413/1.35, allocations: 6.488 MB / 1.321 GB, free: 12.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/1.35, allocations: 0.75 kB / 1.321 GB, free: 12.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.01798/1.368, allocations: 4.071 MB / 1.325 GB, free: 7.996 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005611/1.373, allocations: 1.142 MB / 1.326 GB, free: 6.898 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07574/1.449, allocations: 31.98 MB / 1.357 GB, free: 6.445 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/1.451, allocations: 2.227 MB / 1.359 GB, free: 4.188 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.002357/1.454, allocations: 0.5099 MB / 1.36 GB, free: 3.672 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001902/1.456, allocations: 1.339 MB / 1.361 GB, free: 2.332 MB / 1.092 GB Notification: Performance of SimCode: time 5.42e-07/1.456, allocations: 0 / 1.361 GB, free: 2.332 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1585/1.614, allocations: 102.7 MB / 1.461 GB, free: 12.72 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/19.98, allocations: 12.48 kB / 1.461 GB, free: 12.71 MB / 1.201 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches