Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_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.0007801/0.00078, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004199/0.004199, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.241/1.241, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.43/2.43, allocations: 437.8 MB / 0.7121 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.000302, allocations: 11.98 kB / 0.8729 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5903/0.5906, allocations: 153.8 MB / 1.023 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004333/0.595, allocations: 2.765 MB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002393/0.5974, allocations: 1.309 MB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.5976, allocations: 7.938 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.5979, allocations: 35.7 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004328/0.5983, allocations: 135.4 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.5987, allocations: 127.7 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.5991, allocations: 434.7 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.5995, allocations: 233.4 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.5996, allocations: 95.62 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.5999, allocations: 131.5 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.764e-05/0.5999, allocations: 12 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003253/0.6003, allocations: 203.6 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.337e-05/0.6004, allocations: 75.78 kB / 1.029 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.6005, allocations: 133.2 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.6009, allocations: 333.1 kB / 1.029 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.6009, allocations: 0 / 1.029 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.685e-06/0.6009, allocations: 0 / 1.029 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.257e-06/0.6009, allocations: 3.938 kB / 1.029 GB, free: 9.875 MB / 0.7794 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.0006784/0.6016, allocations: 489.4 kB / 1.029 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.6016, allocations: 8.031 kB / 1.029 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.417e-05/0.6017, allocations: 58.73 kB / 1.03 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005511/0.6023, allocations: 84.58 kB / 1.03 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.6025, allocations: 239.9 kB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.6025, allocations: 16.73 kB / 1.03 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.6026, allocations: 16.38 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.603, allocations: 303.3 kB / 1.03 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.603, allocations: 3.984 kB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.603, allocations: 8 kB / 1.03 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.084e-05/0.6031, allocations: 16.36 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.6034, allocations: 200.9 kB / 1.03 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.6046, allocations: 1.464 MB / 1.032 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.6049, allocations: 171.7 kB / 1.032 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.566e-05/0.6049, allocations: 36.84 kB / 1.032 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.605, allocations: 0 / 1.032 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.605, allocations: 38.56 kB / 1.032 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.605, allocations: 48 / 1.032 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004171/0.6054, allocations: 227.6 kB / 1.032 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.6054, allocations: 59.56 kB / 1.032 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.6056, allocations: 195.2 kB / 1.032 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.6056, allocations: 25.7 kB / 1.033 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.5e-05/0.6057, allocations: 167.6 kB / 1.033 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.6058, allocations: 23.66 kB / 1.033 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.6058, allocations: 25.64 kB / 1.033 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.706e-05/0.6059, allocations: 330.8 kB / 1.033 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.082e-05/0.606, allocations: 35.89 kB / 1.033 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.6061, allocations: 104.5 kB / 1.033 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.6062, allocations: 144.4 kB / 1.033 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.6063, allocations: 4 kB / 1.033 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002951/0.6066, allocations: 190.1 kB / 1.033 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.6066, allocations: 8 kB / 1.033 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.6066, allocations: 80 / 1.033 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.6068, allocations: 24.84 kB / 1.034 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.6069, allocations: 31.92 kB / 1.034 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.608, allocations: 1.323 MB / 1.035 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.6081, allocations: 23.8 kB / 1.035 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.6081, allocations: 8.156 kB / 1.035 GB, free: 3.246 MB / 0.7794 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.0001468/0.6083, allocations: 146.3 kB / 1.035 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.6083, allocations: 19.75 kB / 1.035 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.332e-05/0.6084, allocations: 17.41 kB / 1.035 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.6084, allocations: 3.984 kB / 1.035 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.6084, allocations: 4 kB / 1.035 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.6084, allocations: 0 / 1.035 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005271/0.6089, allocations: 443.2 kB / 1.035 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.609, allocations: 0 / 1.035 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-05/0.609, allocations: 15.92 kB / 1.035 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.4e-05/0.6091, allocations: 24.91 kB / 1.036 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.6091, allocations: 4 kB / 1.036 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.6101, allocations: 1.308 MB / 1.037 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.6101, allocations: 7.969 kB / 1.037 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.6104, allocations: 212.3 kB / 1.037 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.07e-05/0.6105, allocations: 96.84 kB / 1.037 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.6105, allocations: 7.938 kB / 1.037 GB, free: 0.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.913e-05/0.6106, allocations: 4 kB / 1.037 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.695e-05/0.6106, allocations: 7.984 kB / 1.037 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.6106, allocations: 0 / 1.037 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001317/0.6108, allocations: 147.2 kB / 1.037 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6108, allocations: 0 / 1.037 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003086/0.6111, allocations: 51.84 kB / 1.037 GB, free: 0.5 MB / 0.7794 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.0005239/0.6116, allocations: 0.7488 MB / 1.038 GB, free: 15.72 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003476/0.612, allocations: 206.7 kB / 1.038 GB, free: 15.51 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.612, allocations: 0 / 1.038 GB, free: 15.51 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.6122, allocations: 154.6 kB / 1.038 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.6125, allocations: 33.73 kB / 1.038 GB, free: 15.31 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.6148, allocations: 2.125 MB / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.6152, allocations: 0.7439 MB / 1.041 GB, free: 12.27 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001009/0.6153, allocations: 25.92 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.725e-05/0.6154, allocations: 55.42 kB / 1.041 GB, free: 12.19 MB / 0.795 GB Notification: Performance of SimCode: time 6.51e-07/0.6154, allocations: 0 / 1.041 GB, free: 12.19 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01346/0.6288, allocations: 3.39 MB / 1.045 GB, free: 8.965 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002392/0.6291, allocations: 223.4 kB / 1.045 GB, free: 8.707 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/2.342, allocations: 0 / 1.045 GB, free: 8.707 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches