Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001637/0.001637, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002252/0.002252, allocations: 189.8 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.585/2.585, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.114/5.114, allocations: 461.9 MB / 0.7343 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001438, allocations: 67.7 kB / 0.8987 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4789/0.4804, allocations: 157.4 MB / 1.052 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.009193/0.4896, allocations: 3.126 MB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003407/0.4931, allocations: 1.321 MB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003725/0.4935, allocations: 7.938 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.4952, allocations: 323 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000818/0.4961, allocations: 131.4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006896/0.4968, allocations: 131.3 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006645/0.4975, allocations: 307 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.4982, allocations: 256.5 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.4985, allocations: 131.5 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.499, allocations: 143.5 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.499, allocations: 16 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004789/0.4995, allocations: 167.6 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.4997, allocations: 75.8 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.4999, allocations: 107.5 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006727/0.5005, allocations: 346.9 kB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.5006, allocations: 4 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.475e-06/0.5006, allocations: 0 / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.5006, allocations: 0 / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001196/0.5018, allocations: 0.5146 MB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.107e-05/0.5019, allocations: 12.61 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.174e-05/0.502, allocations: 58.72 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008761/0.5029, allocations: 84.58 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.5033, allocations: 232 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.5033, allocations: 16.75 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.959e-05/0.5034, allocations: 16.38 kB / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/0.5041, allocations: 295.3 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.5041, allocations: 8 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.5041, allocations: 8 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.945e-05/0.5042, allocations: 16.36 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004631/0.5047, allocations: 196.9 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.5068, allocations: 1.472 MB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.5072, allocations: 175.7 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.5073, allocations: 36.84 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.5073, allocations: 0 / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.5073, allocations: 34.56 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.084e-06/0.5074, allocations: 3.938 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006358/0.508, allocations: 227.4 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.5081, allocations: 51.41 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.5083, allocations: 202.8 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.5084, allocations: 25.7 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.5085, allocations: 167.6 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.5086, allocations: 31.8 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/0.5087, allocations: 37.61 kB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5088, allocations: 330.8 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-05/0.5089, allocations: 27.98 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.5091, allocations: 109.8 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.5093, allocations: 144.4 kB / 1.063 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5094, allocations: 0 / 1.063 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004177/0.5098, allocations: 186.1 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.5098, allocations: 12.28 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5098, allocations: 4 kB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002167/0.5101, allocations: 24.84 kB / 1.063 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.5102, allocations: 27.92 kB / 1.063 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.5117, allocations: 1.418 MB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.5118, allocations: 19.94 kB / 1.065 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.5119, allocations: 8.094 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.5121, allocations: 161.7 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.5121, allocations: 15.81 kB / 1.065 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.5122, allocations: 21.39 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.5122, allocations: 4 kB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.5122, allocations: 0 / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.5122, allocations: 0 / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006701/0.5129, allocations: 439.3 kB / 1.065 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5129, allocations: 0 / 1.065 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.466e-05/0.513, allocations: 11.94 kB / 1.065 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.5131, allocations: 20.84 kB / 1.065 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.5131, allocations: 4 kB / 1.065 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.5144, allocations: 1.414 MB / 1.067 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.5144, allocations: 0 / 1.067 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.5147, allocations: 216.3 kB / 1.067 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.5148, allocations: 97 kB / 1.067 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.5148, allocations: 3.938 kB / 1.067 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.515, allocations: 8 kB / 1.067 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.515, allocations: 7.984 kB / 1.067 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.515, allocations: 3.938 kB / 1.067 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001729/0.5152, allocations: 156.1 kB / 1.067 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5152, allocations: 0 / 1.067 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005259/0.5158, allocations: 55.75 kB / 1.067 GB, free: 8.434 MB / 0.8262 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006667/0.5164, allocations: 0.7327 MB / 1.068 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005091/0.517, allocations: 218.5 kB / 1.068 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.517, allocations: 0 / 1.068 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.5172, allocations: 154.5 kB / 1.068 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005371/0.5177, allocations: 44.8 kB / 1.068 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/0.5209, allocations: 2.104 MB / 1.071 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/0.5214, allocations: 0.7513 MB / 1.071 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001449/0.5215, allocations: 17.55 kB / 1.071 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.5216, allocations: 51.42 kB / 1.071 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of SimCode: time 8.72e-07/0.5216, allocations: 0 / 1.071 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.181/1.703, allocations: 3.572 MB / 1.075 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003439/1.703, allocations: 227.8 kB / 1.075 GB, free: 492 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/4.286, allocations: 3.938 kB / 1.075 GB, free: 488 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches