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.005089/0.005089, allocations: 101.5 kB / 15.73 MB, free: 5.988 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.001157/0.001157, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.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.311/2.311, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 66.23 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2427, allocations: 140.4 MB / 1.087 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02425/0.267, allocations: 22.63 MB / 1.11 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02462/0.2916, allocations: 17.63 MB / 1.127 GB, free: 9.562 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.2943, allocations: 115.4 kB / 1.127 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01009/0.3045, allocations: 4.175 MB / 1.131 GB, free: 5.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.009649/0.3141, allocations: 3.506 MB / 1.134 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003186/0.3173, allocations: 1.318 MB / 1.136 GB, free: 452 kB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007083/0.3244, allocations: 5.785 MB / 1.141 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004721/0.3292, allocations: 3.597 MB / 1.145 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003711/0.3329, allocations: 2.41 MB / 1.147 GB, free: 4.547 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004262/0.3372, allocations: 2.452 MB / 1.15 GB, free: 2.086 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.3383, allocations: 368 kB / 1.15 GB, free: 1.727 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.341, allocations: 1.03 MB / 1.151 GB, free: 0.6953 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.00173/0.3428, allocations: 1.196 MB / 1.152 GB, free: 15.5 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.005042/0.3478, allocations: 2.002 MB / 1.154 GB, free: 13.48 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.008124/0.356, allocations: 5.175 MB / 1.159 GB, free: 8.293 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.356, allocations: 0 / 1.159 GB, free: 8.293 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.356, allocations: 7.938 kB / 1.159 GB, free: 8.285 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001622/0.3562, allocations: 0 / 1.159 GB, free: 8.285 MB / 0.92 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.01074/0.3669, allocations: 4.605 MB / 1.164 GB, free: 3.566 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.367, allocations: 8.031 kB / 1.164 GB, free: 3.559 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004795/0.3675, allocations: 362.3 kB / 1.164 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/0.3835, allocations: 3.262 MB / 1.167 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/0.3879, allocations: 2.228 MB / 1.169 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003597/0.3882, allocations: 470 kB / 1.17 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005556/0.3888, allocations: 236 kB / 1.17 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01037/0.3992, allocations: 4.814 MB / 1.175 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.288e-05/0.3992, allocations: 4 kB / 1.175 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.3996, allocations: 104 kB / 1.175 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002349/0.3998, allocations: 172.8 kB / 1.175 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.4135, allocations: 5.194 MB / 1.18 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02087/0.4344, allocations: 14.4 MB / 1.194 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/0.4445, allocations: 3.39 MB / 1.197 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003811/0.4484, allocations: 1.463 MB / 1.199 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.4485, allocations: 29.2 kB / 1.199 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004227/0.4528, allocations: 1.794 MB / 1.201 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=163): time 3.797e-06/0.4528, allocations: 0 / 1.201 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of matching and sorting (n=250): time 0.1321/0.5849, allocations: 28.23 MB / 1.228 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002673/0.5852, allocations: 0.4928 MB / 1.229 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003374/0.5886, allocations: 2.292 MB / 1.231 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000348/0.5889, allocations: 81.69 kB / 1.231 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.59, allocations: 1.438 MB / 1.232 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008404/0.5909, allocations: 0.8201 MB / 1.233 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008854/0.5918, allocations: 412.5 kB / 1.234 GB, free: 9.953 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.5919, allocations: 301.1 kB / 1.234 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005452/0.5973, allocations: 1.933 MB / 1.236 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/0.6031, allocations: 2.227 MB / 1.238 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/0.6141, allocations: 4.165 MB / 1.242 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.6142, allocations: 4 kB / 1.242 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01943/0.6336, allocations: 6.536 MB / 1.248 GB, free: 10.48 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.6337, allocations: 152.5 kB / 1.249 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.6338, allocations: 4 kB / 1.249 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01023/0.644, allocations: 2.93 MB / 1.251 GB, free: 7.352 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/0.647, allocations: 483.2 kB / 1.252 GB, free: 6.879 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5044/1.151, allocations: 18.83 MB / 1.27 GB, free: 151.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/1.156, allocations: 319.2 kB / 1.271 GB, free: 151.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/1.156, allocations: 88.48 kB / 1.271 GB, free: 151.4 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.001433/1.158, allocations: 0.7097 MB / 1.271 GB, free: 151 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006168/1.158, allocations: 336.1 kB / 1.272 GB, free: 151 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000745/1.159, allocations: 383.2 kB / 1.272 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/1.159, allocations: 24.75 kB / 1.272 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.01e-05/1.159, allocations: 9.156 kB / 1.272 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/1.159, allocations: 14.03 kB / 1.272 GB, free: 150.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/1.163, allocations: 3.619 MB / 1.276 GB, free: 149.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.164, allocations: 0.6562 kB / 1.276 GB, free: 149.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/1.166, allocations: 419.6 kB / 1.276 GB, free: 149.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009764/1.176, allocations: 2.872 MB / 1.279 GB, free: 148.8 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002795/1.176, allocations: 51.45 kB / 1.279 GB, free: 148.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03718/1.213, allocations: 18.62 MB / 1.297 GB, free: 139.7 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.213, allocations: 5.062 kB / 1.297 GB, free: 139.7 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/1.231, allocations: 6.17 MB / 1.303 GB, free: 137.7 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/1.233, allocations: 0.6962 MB / 1.304 GB, free: 137.3 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/1.233, allocations: 48.56 kB / 1.304 GB, free: 137.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003183/1.237, allocations: 311.6 kB / 1.304 GB, free: 137.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001122/1.238, allocations: 349.7 kB / 1.304 GB, free: 137.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/1.238, allocations: 75.12 kB / 1.305 GB, free: 137.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001679/1.24, allocations: 1.534 MB / 1.306 GB, free: 136.5 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.1e-07/1.24, allocations: 0 / 1.306 GB, free: 136.5 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002401/1.242, allocations: 1.054 MB / 1.307 GB, free: 136.4 MB / 1.014 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.01656/1.259, allocations: 6.808 MB / 1.314 GB, free: 133.6 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02208/1.281, allocations: 6.477 MB / 1.32 GB, free: 130.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.281, allocations: 128 / 1.32 GB, free: 130.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.01653/1.297, allocations: 4.055 MB / 1.324 GB, free: 127 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00398/1.301, allocations: 1.143 MB / 1.325 GB, free: 125.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05994/1.361, allocations: 31.84 MB / 1.356 GB, free: 93.64 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001364/1.363, allocations: 2.234 MB / 1.358 GB, free: 91.38 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001908/1.365, allocations: 0.5172 MB / 1.359 GB, free: 90.86 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.366, allocations: 1.339 MB / 1.36 GB, free: 89.52 MB / 1.014 GB Notification: Performance of SimCode: time 6.11e-07/1.366, allocations: 0 / 1.36 GB, free: 89.52 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.126/1.492, allocations: 102.7 MB / 1.461 GB, free: 3.809 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.24/19.73, allocations: 4.656 kB / 1.461 GB, free: 3.805 MB / 1.029 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