Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_11_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.004941/0.004941, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001248/0.001248, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.755/2.755, allocations: 469.8 MB / 0.7425 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.89 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3239, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02658/0.3505, allocations: 22.63 MB / 1.242 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6503/1.001, allocations: 17.63 MB / 1.26 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/1.004, allocations: 112.4 kB / 1.26 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009626/1.014, allocations: 4.163 MB / 1.264 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01071/1.025, allocations: 3.519 MB / 1.267 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003776/1.029, allocations: 1.315 MB / 1.268 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009234/1.038, allocations: 5.779 MB / 1.274 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00621/1.044, allocations: 3.597 MB / 1.278 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005452/1.05, allocations: 2.404 MB / 1.28 GB, free: 1.047 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005979/1.056, allocations: 2.448 MB / 1.282 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001331/1.057, allocations: 369.3 kB / 1.283 GB, free: 108 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/1.061, allocations: 1.038 MB / 1.284 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001916/1.063, allocations: 1.189 MB / 1.285 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.00475/1.067, allocations: 1.999 MB / 1.287 GB, free: 14.15 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01027/1.078, allocations: 5.195 MB / 1.292 GB, free: 12.36 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/1.078, allocations: 1.094 kB / 1.292 GB, free: 12.36 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.374e-06/1.078, allocations: 0 / 1.292 GB, free: 12.36 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002194/1.078, allocations: 0 / 1.292 GB, free: 12.36 MB / 1.014 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.01424/1.092, allocations: 4.716 MB / 1.296 GB, free: 9.695 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/1.092, allocations: 10.09 kB / 1.296 GB, free: 9.695 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000709/1.093, allocations: 366.4 kB / 1.297 GB, free: 9.488 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0169/1.11, allocations: 3.282 MB / 1.3 GB, free: 9.098 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006363/1.116, allocations: 2.258 MB / 1.302 GB, free: 7.926 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005465/1.117, allocations: 467.1 kB / 1.303 GB, free: 7.531 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/1.118, allocations: 231.8 kB / 1.303 GB, free: 7.461 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/1.134, allocations: 4.821 MB / 1.308 GB, free: 5.691 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-05/1.134, allocations: 0 / 1.308 GB, free: 5.691 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005822/1.135, allocations: 103.4 kB / 1.308 GB, free: 5.621 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/1.135, allocations: 169.8 kB / 1.308 GB, free: 5.602 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/1.151, allocations: 5.2 MB / 1.313 GB, free: 4.047 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02827/1.179, allocations: 14.42 MB / 1.327 GB, free: 7.793 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/1.19, allocations: 3.384 MB / 1.33 GB, free: 6.082 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00442/1.195, allocations: 1.469 MB / 1.332 GB, free: 5.332 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002267/1.195, allocations: 27.09 kB / 1.332 GB, free: 5.324 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005073/1.2, allocations: 1.787 MB / 1.334 GB, free: 4.219 MB / 1.029 GB Notification: Performance of pre-optimization done (n=163): time 6.703e-06/1.2, allocations: 0 / 1.334 GB, free: 4.219 MB / 1.029 GB Notification: Performance of matching and sorting (n=250): time 0.1332/1.334, allocations: 28.31 MB / 1.361 GB, free: 1.113 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002978/1.334, allocations: 0.4889 MB / 1.362 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004346/1.338, allocations: 2.3 MB / 1.364 GB, free: 14.2 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0006194/1.339, allocations: 73.7 kB / 1.364 GB, free: 14.12 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001601/1.34, allocations: 1.459 MB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.342, allocations: 0.8581 MB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001442/1.343, allocations: 412.5 kB / 1.367 GB, free: 11.4 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.343, allocations: 313.1 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005742/1.349, allocations: 1.917 MB / 1.369 GB, free: 9.172 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006193/1.355, allocations: 2.241 MB / 1.371 GB, free: 6.848 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/1.367, allocations: 4.158 MB / 1.375 GB, free: 2.555 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/1.367, allocations: 0 / 1.375 GB, free: 2.555 MB / 1.061 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02079/1.388, allocations: 6.557 MB / 1.381 GB, free: 11.91 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/1.388, allocations: 154.2 kB / 1.382 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/1.388, allocations: 4 kB / 1.382 GB, free: 11.72 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01052/1.398, allocations: 2.93 MB / 1.384 GB, free: 8.785 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003039/1.402, allocations: 483.2 kB / 1.385 GB, free: 8.312 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04187/1.443, allocations: 18.87 MB / 1.403 GB, free: 5.215 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00511/1.449, allocations: 319.6 kB / 1.404 GB, free: 4.902 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007665/1.449, allocations: 87.97 kB / 1.404 GB, free: 4.816 MB / 1.092 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.002402/1.452, allocations: 0.7058 MB / 1.404 GB, free: 4.105 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/1.453, allocations: 353.8 kB / 1.405 GB, free: 3.758 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/1.454, allocations: 384.1 kB / 1.405 GB, free: 3.375 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/1.454, allocations: 24 kB / 1.405 GB, free: 3.352 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.747e-05/1.454, allocations: 8 kB / 1.405 GB, free: 3.344 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.872e-05/1.454, allocations: 11.95 kB / 1.405 GB, free: 3.332 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007621/1.462, allocations: 3.631 MB / 1.409 GB, free: 15.69 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.093e-05/1.462, allocations: 0 / 1.409 GB, free: 15.69 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002812/1.465, allocations: 415.3 kB / 1.409 GB, free: 15.28 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01089/1.476, allocations: 2.872 MB / 1.412 GB, free: 12.4 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006201/1.476, allocations: 51.97 kB / 1.412 GB, free: 12.35 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04359/1.52, allocations: 18.64 MB / 1.43 GB, free: 9.434 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.52, allocations: 4.031 kB / 1.43 GB, free: 9.43 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/1.54, allocations: 6.186 MB / 1.436 GB, free: 3.215 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/1.543, allocations: 0.7214 MB / 1.437 GB, free: 2.473 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.544, allocations: 44 kB / 1.437 GB, free: 2.43 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004025/1.548, allocations: 323.4 kB / 1.437 GB, free: 2.113 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/1.55, allocations: 354.7 kB / 1.438 GB, free: 1.766 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003589/1.55, allocations: 67.97 kB / 1.438 GB, free: 1.699 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.003031/1.553, allocations: 1.536 MB / 1.439 GB, free: 168 kB / 1.123 GB Notification: Performance of sort global known variables: time 1.974e-06/1.553, allocations: 0 / 1.439 GB, free: 168 kB / 1.123 GB Notification: Performance of remove unused functions: time 0.003966/1.557, allocations: 1.044 MB / 1.44 GB, free: 15.12 MB / 1.139 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.02026/1.577, allocations: 6.827 MB / 1.447 GB, free: 8.258 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.02514/1.603, allocations: 6.484 MB / 1.453 GB, free: 1.676 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.603, allocations: 4 kB / 1.453 GB, free: 1.672 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.01847/1.621, allocations: 4.059 MB / 1.457 GB, free: 13.58 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006507/1.628, allocations: 1.137 MB / 1.458 GB, free: 12.48 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0865/1.714, allocations: 31.97 MB / 1.489 GB, free: 12.05 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003348/1.717, allocations: 2.231 MB / 1.492 GB, free: 9.785 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.003123/1.721, allocations: 0.506 MB / 1.492 GB, free: 9.273 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002588/1.723, allocations: 1.343 MB / 1.493 GB, free: 7.93 MB / 1.186 GB Notification: Performance of SimCode: time 1.011e-06/1.723, allocations: 4 kB / 1.493 GB, free: 7.926 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1834/1.907, allocations: 102.7 MB / 1.594 GB, free: 2.344 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/20.87, allocations: 6.328 kB / 1.594 GB, free: 2.34 MB / 1.279 GB (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches