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.001115/0.001114, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001281/0.001281, allocations: 195.8 kB / 16.14 MB, free: 6.719 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.341/1.341, allocations: 222.9 MB / 239.8 MB, free: 4.457 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.405/2.405, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 67.91 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5414/0.5428, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004615/0.5475, allocations: 3.135 MB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001974/0.5495, allocations: 1.324 MB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.5496, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008889/0.5506, allocations: 320.2 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003331/0.5509, allocations: 139.4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.5512, allocations: 127.7 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004025/0.5516, allocations: 430.8 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002828/0.5519, allocations: 156.3 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.5521, allocations: 107.6 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.5524, allocations: 147.5 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.5525, allocations: 16 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003975/0.5529, allocations: 207.6 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.853e-05/0.553, allocations: 71.8 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.5531, allocations: 111.4 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.5535, allocations: 341.2 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5535, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.61e-07/0.5535, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.932e-06/0.5535, allocations: 0 / 1.023 GB, free: 12.17 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.0007249/0.5543, allocations: 0.5161 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.5543, allocations: 8.031 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.745e-05/0.5544, allocations: 58.72 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005375/0.5549, allocations: 72.59 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.5553, allocations: 243.9 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.5553, allocations: 16.73 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.5553, allocations: 24.36 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.5558, allocations: 295.3 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.5558, allocations: 4 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.5558, allocations: 4 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.5559, allocations: 20.36 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.5562, allocations: 196.9 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.5576, allocations: 1.464 MB / 1.026 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.5578, allocations: 171.7 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.5579, allocations: 48.81 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.5579, allocations: 0 / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.5579, allocations: 30.56 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.5579, allocations: 0 / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004822/0.5584, allocations: 227.5 kB / 1.026 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.5585, allocations: 55.41 kB / 1.026 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.5587, allocations: 203.2 kB / 1.027 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.5587, allocations: 25.7 kB / 1.027 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.5588, allocations: 167.6 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.5588, allocations: 23.64 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.5589, allocations: 41.61 kB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5591, allocations: 326.8 kB / 1.027 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.153e-05/0.5591, allocations: 31.98 kB / 1.027 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.82e-05/0.5592, allocations: 108.5 kB / 1.027 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.5594, allocations: 144.4 kB / 1.028 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5594, allocations: 0 / 1.028 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002846/0.5597, allocations: 190.1 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.5597, allocations: 10.03 kB / 1.028 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.5597, allocations: 4.312 kB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001379/0.5599, allocations: 24.84 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.56, allocations: 27.92 kB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.5611, allocations: 1.327 MB / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.5613, allocations: 23.69 kB / 1.029 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.5613, allocations: 12.16 kB / 1.029 GB, free: 5.492 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.0001192/0.5614, allocations: 150.3 kB / 1.029 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.5614, allocations: 15.75 kB / 1.029 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.817e-05/0.5615, allocations: 13.41 kB / 1.029 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.5616, allocations: 4 kB / 1.029 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.5616, allocations: 0 / 1.029 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.5616, allocations: 96 / 1.029 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004828/0.5621, allocations: 455.2 kB / 1.03 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5621, allocations: 0 / 1.03 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.698e-05/0.5621, allocations: 8 kB / 1.03 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-05/0.5622, allocations: 20.84 kB / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.5622, allocations: 7.984 kB / 1.03 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008303/0.563, allocations: 1.315 MB / 1.031 GB, free: 3.305 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5631, allocations: 3.938 kB / 1.031 GB, free: 3.301 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.5633, allocations: 204.4 kB / 1.031 GB, free: 3.082 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.439e-05/0.5634, allocations: 100.8 kB / 1.031 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.5634, allocations: 7.938 kB / 1.031 GB, free: 2.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.5635, allocations: 7.938 kB / 1.031 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.5635, allocations: 4 kB / 1.031 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.5635, allocations: 4 kB / 1.031 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001081/0.5637, allocations: 143.2 kB / 1.031 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5637, allocations: 0 / 1.031 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002961/0.564, allocations: 51.84 kB / 1.032 GB, free: 2.75 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.0006028/0.5646, allocations: 0.7521 MB / 1.032 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003039/0.5649, allocations: 206.8 kB / 1.032 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5649, allocations: 0 / 1.032 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.565, allocations: 146.6 kB / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.5654, allocations: 31.97 kB / 1.033 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.5675, allocations: 2.113 MB / 1.035 GB, free: 15.31 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.5678, allocations: 0.7441 MB / 1.035 GB, free: 14.54 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.997e-05/0.5679, allocations: 25.53 kB / 1.035 GB, free: 14.52 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.45e-05/0.568, allocations: 55.36 kB / 1.035 GB, free: 14.46 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.568, allocations: 0 / 1.035 GB, free: 14.46 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.761/2.329, allocations: 3.472 MB / 1.039 GB, free: 11.12 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/2.329, allocations: 222.5 kB / 1.039 GB, free: 10.87 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/4.335, allocations: 0 / 1.039 GB, free: 10.87 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