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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001068/0.001068, 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.001101/0.001101, allocations: 190.1 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 1.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.259/2.259, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 63.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5313/0.5326, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004243/0.5369, allocations: 3.139 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.5387, allocations: 1.317 MB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.5389, allocations: 4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009087/0.5398, allocations: 311 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.5401, allocations: 135.4 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.5405, allocations: 127.7 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.5408, allocations: 310.9 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.5412, allocations: 267 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.5414, allocations: 119.6 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.5416, allocations: 139.5 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.404e-05/0.5417, allocations: 20 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.5419, allocations: 171.6 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.123e-05/0.542, allocations: 75.8 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.872e-05/0.5421, allocations: 111.5 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.5425, allocations: 346.9 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.5425, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.395e-06/0.5425, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.5425, allocations: 3.938 kB / 1.023 GB, free: 12.11 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.000691/0.5432, allocations: 0.5108 MB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.5433, allocations: 8.031 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.712e-05/0.5433, allocations: 54.73 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005114/0.5438, allocations: 84.58 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.5441, allocations: 245.1 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.5441, allocations: 12.75 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.5441, allocations: 16.38 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.5445, allocations: 299.4 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5445, allocations: 7.922 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.5446, allocations: 12 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.878e-05/0.5446, allocations: 16.36 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002644/0.5449, allocations: 197 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.5461, allocations: 1.456 MB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.5463, allocations: 175.7 kB / 1.026 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.826e-05/0.5464, allocations: 32.84 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.759e-06/0.5464, allocations: 4 kB / 1.026 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.5464, allocations: 34.5 kB / 1.026 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.5464, allocations: 4 kB / 1.026 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004/0.5468, allocations: 227.4 kB / 1.027 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.5469, allocations: 55.41 kB / 1.027 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.547, allocations: 195.5 kB / 1.027 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.5471, allocations: 25.7 kB / 1.027 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.154e-05/0.5471, allocations: 167.5 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.5472, allocations: 35.58 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.5472, allocations: 37.62 kB / 1.027 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.718e-05/0.5473, allocations: 326.8 kB / 1.027 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.5474, allocations: 35.98 kB / 1.027 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.319e-05/0.5475, allocations: 96.56 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.5476, allocations: 152.5 kB / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5476, allocations: 4 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002723/0.5479, allocations: 190.1 kB / 1.028 GB, free: 6.988 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.5479, allocations: 6 kB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5479, allocations: 8 kB / 1.028 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001291/0.5481, allocations: 24.78 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.5482, allocations: 32.03 kB / 1.028 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008752/0.5491, allocations: 1.43 MB / 1.029 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.5492, allocations: 15.78 kB / 1.029 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.5492, allocations: 12 kB / 1.029 GB, free: 5.324 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.0001082/0.5493, allocations: 153.8 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.5494, allocations: 15.81 kB / 1.03 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.5494, allocations: 17.41 kB / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.5494, allocations: 0 / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.5494, allocations: 0 / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.5494, allocations: 0 / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004244/0.5498, allocations: 443.2 kB / 1.03 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5498, allocations: 4 kB / 1.03 GB, free: 4.637 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.5499, allocations: 8 kB / 1.03 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-05/0.55, allocations: 24.83 kB / 1.03 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.55, allocations: 0 / 1.03 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008011/0.5508, allocations: 1.414 MB / 1.031 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5508, allocations: 3.984 kB / 1.031 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.551, allocations: 220.2 kB / 1.032 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.5511, allocations: 92.94 kB / 1.032 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.5511, allocations: 8 kB / 1.032 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.5512, allocations: 3.984 kB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.659e-05/0.5512, allocations: 4.094 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.5512, allocations: 7.938 kB / 1.032 GB, free: 2.668 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001054/0.5513, allocations: 143.2 kB / 1.032 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5514, allocations: 3.938 kB / 1.032 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002899/0.5516, allocations: 51.84 kB / 1.032 GB, free: 2.473 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.0003945/0.552, allocations: 0.7482 MB / 1.033 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003052/0.5524, allocations: 218.5 kB / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5524, allocations: 4 kB / 1.033 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.5525, allocations: 138.7 kB / 1.033 GB, free: 1.316 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.5528, allocations: 40 kB / 1.033 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.5547, allocations: 2.108 MB / 1.035 GB, free: 15.02 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.555, allocations: 0.7513 MB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.066e-05/0.5551, allocations: 25.53 kB / 1.036 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.74e-05/0.5551, allocations: 51.42 kB / 1.036 GB, free: 14.17 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.5551, allocations: 0 / 1.036 GB, free: 14.17 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.042/1.597, allocations: 3.561 MB / 1.039 GB, free: 10.77 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/1.598, allocations: 222.5 kB / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/3.354, allocations: 0 / 1.04 GB, free: 10.51 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