Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_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.001665/0.001665, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 197.7 kB / 16.53 MB, free: 6.66 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.842/2.842, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 64.03 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02369/0.3092, allocations: 22.62 MB / 1.086 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02351/0.3328, allocations: 17.63 MB / 1.103 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002887/0.3357, allocations: 115.4 kB / 1.103 GB, free: 6.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.3466, allocations: 4.171 MB / 1.107 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.3592, allocations: 3.508 MB / 1.111 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.3626, allocations: 1.319 MB / 1.112 GB, free: 13 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.007743/0.3704, allocations: 5.765 MB / 1.118 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005311/0.3757, allocations: 3.6 MB / 1.121 GB, free: 3.543 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.3793, allocations: 2.394 MB / 1.123 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003898/0.3833, allocations: 2.452 MB / 1.126 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.3843, allocations: 368 kB / 1.126 GB, free: 14.32 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.3868, allocations: 1.041 MB / 1.127 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001349/0.3881, allocations: 1.196 MB / 1.128 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002879/0.391, allocations: 1.998 MB / 1.13 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005348/0.3964, allocations: 5.101 MB / 1.135 GB, free: 4.953 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3964, allocations: 0 / 1.135 GB, free: 4.953 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3964, allocations: 0 / 1.135 GB, free: 4.953 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.598e-05/0.3965, allocations: 0 / 1.135 GB, free: 4.953 MB / 0.8887 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.009294/0.4058, allocations: 4.606 MB / 1.14 GB, free: 240 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4059, allocations: 12.03 kB / 1.14 GB, free: 228 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004777/0.4063, allocations: 366.3 kB / 1.14 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.4221, allocations: 3.261 MB / 1.143 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/0.4258, allocations: 2.084 MB / 1.145 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003397/0.4261, allocations: 478 kB / 1.146 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004577/0.4266, allocations: 228 kB / 1.146 GB, free: 9.68 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009916/0.4365, allocations: 4.814 MB / 1.151 GB, free: 4.719 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.4366, allocations: 7.875 kB / 1.151 GB, free: 4.711 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/0.4369, allocations: 112 kB / 1.151 GB, free: 4.602 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001765/0.4371, allocations: 168.8 kB / 1.151 GB, free: 4.434 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.4503, allocations: 5.195 MB / 1.156 GB, free: 15.22 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02123/0.4716, allocations: 14.48 MB / 1.17 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009816/0.4814, allocations: 3.386 MB / 1.173 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003703/0.4852, allocations: 1.471 MB / 1.175 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.4853, allocations: 29.2 kB / 1.175 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004265/0.4896, allocations: 1.791 MB / 1.177 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 5.631e-06/0.4896, allocations: 0 / 1.177 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1321/0.6218, allocations: 28.22 MB / 1.204 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.622, allocations: 0.5005 MB / 1.205 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003063/0.6251, allocations: 2.296 MB / 1.207 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0002881/0.6254, allocations: 77.69 kB / 1.207 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.6265, allocations: 1.43 MB / 1.208 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007535/0.6272, allocations: 0.8201 MB / 1.209 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000886/0.6281, allocations: 412.5 kB / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 7.823e-05/0.6282, allocations: 301.1 kB / 1.21 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005384/0.6336, allocations: 1.933 MB / 1.212 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/0.6392, allocations: 2.223 MB / 1.214 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.6501, allocations: 4.169 MB / 1.218 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.6501, allocations: 0 / 1.218 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02039/0.6705, allocations: 6.543 MB / 1.224 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.6707, allocations: 144.5 kB / 1.225 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.6707, allocations: 8 kB / 1.225 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/0.681, allocations: 2.942 MB / 1.227 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.684, allocations: 491.2 kB / 1.228 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03897/0.7229, allocations: 18.86 MB / 1.246 GB, free: 492 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004046/0.727, allocations: 315.6 kB / 1.247 GB, free: 176 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004296/0.7275, allocations: 87.97 kB / 1.247 GB, free: 88 kB / 0.9981 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.4507/1.178, allocations: 0.7069 MB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007471/1.179, allocations: 332.1 kB / 1.248 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000721/1.18, allocations: 383.8 kB / 1.248 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/1.18, allocations: 24.5 kB / 1.248 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-05/1.18, allocations: 10.84 kB / 1.248 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/1.18, allocations: 12.38 kB / 1.248 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004729/1.184, allocations: 3.628 MB / 1.252 GB, free: 169 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/1.184, allocations: 3.422 kB / 1.252 GB, free: 169 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002561/1.187, allocations: 418.5 kB / 1.252 GB, free: 169 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009811/1.197, allocations: 2.885 MB / 1.255 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003215/1.197, allocations: 52.59 kB / 1.255 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03814/1.235, allocations: 18.63 MB / 1.273 GB, free: 162.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/1.235, allocations: 1.469 kB / 1.273 GB, free: 162.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/1.253, allocations: 6.174 MB / 1.279 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/1.255, allocations: 0.7066 MB / 1.28 GB, free: 160.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006657/1.256, allocations: 43.72 kB / 1.28 GB, free: 160.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003279/1.259, allocations: 310.5 kB / 1.28 GB, free: 160.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00134/1.26, allocations: 354.4 kB / 1.281 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002182/1.261, allocations: 69.39 kB / 1.281 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002433/1.263, allocations: 1.54 MB / 1.282 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.263, allocations: 0 / 1.282 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003151/1.266, allocations: 1.039 MB / 1.283 GB, free: 159.6 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: 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.01739/1.284, allocations: 6.813 MB / 1.29 GB, free: 157 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02403/1.308, allocations: 7.303 MB / 1.297 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.308, allocations: 4.688 kB / 1.297 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01626/1.324, allocations: 4.058 MB / 1.301 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00412/1.328, allocations: 1.141 MB / 1.302 GB, free: 152.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06075/1.389, allocations: 36.87 MB / 1.338 GB, free: 115.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/1.39, allocations: 2.231 MB / 1.34 GB, free: 113.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002173/1.393, allocations: 0.5186 MB / 1.341 GB, free: 113.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/1.394, allocations: 1.335 MB / 1.342 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of SimCode: time 6.82e-07/1.394, allocations: 0 / 1.342 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1262/1.52, allocations: 104.2 MB / 1.444 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/15.45, allocations: 29.23 kB / 1.444 GB, free: 8.637 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches