Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_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.004879/0.004879, allocations: 103 kB / 15.73 MB, free: 6.055 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.001217/0.001217, allocations: 191.4 kB / 16.67 MB, free: 5.969 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.159/2.159, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 71.83 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8291/0.8303, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004712/0.8351, allocations: 3.078 MB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.8373, allocations: 1.324 MB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.8375, allocations: 4.688 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.8385, allocations: 335.3 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003703/0.8389, allocations: 143.2 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.8393, allocations: 136.2 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.8397, allocations: 312.2 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004393/0.8402, allocations: 240.8 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.8403, allocations: 124.6 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.8406, allocations: 143.3 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.963e-05/0.8407, allocations: 17.84 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003607/0.8411, allocations: 164.8 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.8412, allocations: 83.2 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.8413, allocations: 112.8 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005031/0.8418, allocations: 334.2 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.8418, allocations: 4.516 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8418, allocations: 0.9688 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.8419, allocations: 0 / 1.094 GB, free: 1.289 MB / 0.8575 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.0007978/0.8427, allocations: 0.5113 MB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.8427, allocations: 9.062 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.8428, allocations: 55 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006175/0.8434, allocations: 83.19 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.8437, allocations: 244.8 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.8438, allocations: 16.91 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.8438, allocations: 23.7 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005226/0.8443, allocations: 299.2 kB / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.8444, allocations: 0 / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.8444, allocations: 10.75 kB / 1.095 GB, free: 348 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.18e-05/0.8444, allocations: 16.34 kB / 1.095 GB, free: 348 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.8448, allocations: 194.2 kB / 1.095 GB, free: 284 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.8464, allocations: 1.46 MB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.8468, allocations: 185.6 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.852e-05/0.8468, allocations: 31.67 kB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.8468, allocations: 0.875 kB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.8469, allocations: 33 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.8469, allocations: 0 / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0005312/0.8474, allocations: 235.1 kB / 1.097 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.8475, allocations: 52.44 kB / 1.097 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.8477, allocations: 189.6 kB / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.8477, allocations: 30.45 kB / 1.097 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.8478, allocations: 166.3 kB / 1.098 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.8479, allocations: 30.92 kB / 1.098 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.848, allocations: 31.97 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8481, allocations: 330.3 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.435e-05/0.8482, allocations: 39.58 kB / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.8483, allocations: 96.59 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.8485, allocations: 152.4 kB / 1.098 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.8485, allocations: 1 kB / 1.098 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003437/0.8489, allocations: 191.8 kB / 1.098 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.8489, allocations: 6.125 kB / 1.098 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.8489, allocations: 3.266 kB / 1.098 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.8491, allocations: 25.36 kB / 1.098 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.8493, allocations: 30.14 kB / 1.098 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.8504, allocations: 1.423 MB / 1.1 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.8506, allocations: 17.41 kB / 1.1 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.8506, allocations: 6.812 kB / 1.1 GB, free: 12.02 MB / 0.8731 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.0001548/0.8508, allocations: 146.3 kB / 1.1 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.705e-05/0.8508, allocations: 20.66 kB / 1.1 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.8509, allocations: 19.27 kB / 1.1 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.8509, allocations: 4.938 kB / 1.1 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.8509, allocations: 0.6094 kB / 1.1 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.8509, allocations: 1.062 kB / 1.1 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006431/0.8515, allocations: 444.6 kB / 1.1 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.8515, allocations: 0 / 1.1 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.8516, allocations: 7.766 kB / 1.1 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.752e-05/0.8517, allocations: 23.03 kB / 1.1 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.8517, allocations: 1.375 kB / 1.1 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.8529, allocations: 1.423 MB / 1.102 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8529, allocations: 1.828 kB / 1.102 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.8531, allocations: 214.5 kB / 1.102 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.8533, allocations: 98.59 kB / 1.102 GB, free: 9.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.8533, allocations: 1.641 kB / 1.102 GB, free: 9.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.8534, allocations: 8.141 kB / 1.102 GB, free: 9.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/0.8535, allocations: 7.828 kB / 1.102 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.8535, allocations: 2.688 kB / 1.102 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001535/0.8536, allocations: 146.6 kB / 1.102 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8536, allocations: 96 / 1.102 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003766/0.854, allocations: 56.53 kB / 1.102 GB, free: 9.652 MB / 0.8731 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.0005332/0.8546, allocations: 0.748 MB / 1.103 GB, free: 8.945 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004119/0.855, allocations: 209.5 kB / 1.103 GB, free: 8.801 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.855, allocations: 0 / 1.103 GB, free: 8.801 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.8552, allocations: 150.3 kB / 1.103 GB, free: 8.676 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.8556, allocations: 38.75 kB / 1.103 GB, free: 8.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.8582, allocations: 2.034 MB / 1.105 GB, free: 7.035 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.8587, allocations: 0.7542 MB / 1.106 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.8588, allocations: 25.42 kB / 1.106 GB, free: 6.316 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.967e-05/0.8589, allocations: 55.19 kB / 1.106 GB, free: 6.273 MB / 0.8731 GB Notification: Performance of SimCode: time 7.71e-07/0.8589, allocations: 0 / 1.106 GB, free: 6.273 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.8902, allocations: 3.727 MB / 1.11 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/12.03, allocations: 9.047 kB / 1.11 GB, free: 5.684 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches