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.007103/0.007103, allocations: 102 kB / 15.73 MB, free: 6.039 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.001577/0.001577, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 59.91 kB / 1.054 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8285/0.8299, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005375/0.8354, allocations: 3.082 MB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002352/0.8377, allocations: 1.321 MB / 1.212 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.838, allocations: 7.938 kB / 1.212 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.8392, allocations: 338.1 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.8397, allocations: 151.2 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.8401, allocations: 127.7 kB / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004376/0.8406, allocations: 306.9 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.8411, allocations: 238.5 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.8413, allocations: 127.5 kB / 1.213 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.8416, allocations: 135.5 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.8417, allocations: 24 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.842, allocations: 159.6 kB / 1.213 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.8422, allocations: 83.78 kB / 1.213 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.8423, allocations: 111.5 kB / 1.213 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.8428, allocations: 335 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.8429, allocations: 0 / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.427e-06/0.8429, allocations: 0 / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.516e-05/0.8429, allocations: 3.938 kB / 1.214 GB, free: 7 MB / 0.9356 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.001018/0.8439, allocations: 0.5185 MB / 1.214 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.844, allocations: 8.031 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.404e-05/0.844, allocations: 58.72 kB / 1.214 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006297/0.8447, allocations: 84.56 kB / 1.214 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.845, allocations: 240 kB / 1.214 GB, free: 6 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.8451, allocations: 20.75 kB / 1.214 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.8451, allocations: 16.38 kB / 1.215 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004741/0.8456, allocations: 299.3 kB / 1.215 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.8456, allocations: 0 / 1.215 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.8456, allocations: 8 kB / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.8457, allocations: 20.36 kB / 1.215 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.846, allocations: 200.9 kB / 1.215 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.8476, allocations: 1.452 MB / 1.216 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.8479, allocations: 171.7 kB / 1.217 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.34e-05/0.848, allocations: 36.84 kB / 1.217 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.848, allocations: 3.938 kB / 1.217 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.848, allocations: 38.56 kB / 1.217 GB, free: 3.527 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.848, allocations: 0 / 1.217 GB, free: 3.527 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004758/0.8485, allocations: 223.4 kB / 1.217 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.8485, allocations: 55.41 kB / 1.217 GB, free: 3.215 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.8488, allocations: 198.2 kB / 1.217 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.8488, allocations: 25.7 kB / 1.217 GB, free: 2.98 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.8489, allocations: 171.6 kB / 1.217 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.8489, allocations: 31.73 kB / 1.217 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.849, allocations: 33.7 kB / 1.217 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.8491, allocations: 330.8 kB / 1.218 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.048e-05/0.8492, allocations: 31.98 kB / 1.218 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.8493, allocations: 110.3 kB / 1.218 GB, free: 2.238 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.8494, allocations: 144.4 kB / 1.218 GB, free: 2.066 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.8495, allocations: 4 kB / 1.218 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003108/0.8498, allocations: 186.4 kB / 1.218 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.8498, allocations: 4 kB / 1.218 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.8498, allocations: 4 kB / 1.218 GB, free: 1.863 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001627/0.85, allocations: 24.84 kB / 1.218 GB, free: 1.836 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.8501, allocations: 31.92 kB / 1.218 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.8513, allocations: 1.422 MB / 1.22 GB, free: 244 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.8514, allocations: 19.78 kB / 1.22 GB, free: 224 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.8514, allocations: 8 kB / 1.22 GB, free: 216 kB / 0.9356 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.0001471/0.8516, allocations: 153.9 kB / 1.22 GB, free: 52 kB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.8516, allocations: 15.81 kB / 1.22 GB, free: 36 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.801e-05/0.8517, allocations: 17.48 kB / 1.22 GB, free: 24 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.8517, allocations: 3.938 kB / 1.22 GB, free: 20 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.8517, allocations: 0 / 1.22 GB, free: 20 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.8517, allocations: 0 / 1.22 GB, free: 20 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.8523, allocations: 451.2 kB / 1.22 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.8523, allocations: 7.938 kB / 1.22 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.646e-05/0.8523, allocations: 4 kB / 1.22 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.596e-05/0.8524, allocations: 20.84 kB / 1.22 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.8524, allocations: 4 kB / 1.22 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009626/0.8534, allocations: 1.41 MB / 1.222 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.8534, allocations: 0 / 1.222 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.8536, allocations: 216.2 kB / 1.222 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.063e-05/0.8537, allocations: 104.8 kB / 1.222 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.8537, allocations: 4 kB / 1.222 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.8539, allocations: 4 kB / 1.222 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.8539, allocations: 11.92 kB / 1.222 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.8539, allocations: 3.938 kB / 1.222 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001279/0.854, allocations: 148.9 kB / 1.222 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.854, allocations: 0 / 1.222 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003307/0.8544, allocations: 55.84 kB / 1.222 GB, free: 13.36 MB / 0.9512 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.0005105/0.8549, allocations: 0.7443 MB / 1.223 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003776/0.8553, allocations: 206.8 kB / 1.223 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.8553, allocations: 0 / 1.223 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.8555, allocations: 150.6 kB / 1.223 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.8559, allocations: 37.3 kB / 1.223 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.8581, allocations: 2.048 MB / 1.225 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.8585, allocations: 0.7475 MB / 1.226 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.862e-05/0.8586, allocations: 21.55 kB / 1.226 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.998e-05/0.8587, allocations: 55.41 kB / 1.226 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.8587, allocations: 0 / 1.226 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.8855, allocations: 3.765 MB / 1.23 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.996/9.881, allocations: 8.875 kB / 1.23 GB, free: 5.5 MB / 0.9512 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