Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_11_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.007006/0.007006, allocations: 100 kB / 15.73 MB, free: 6.016 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.001755/0.001755, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.457/2.457, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 63.89 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6416/0.6433, allocations: 159.1 MB / 1.22 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004173/0.6475, allocations: 3.084 MB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001778/0.6493, allocations: 1.317 MB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.876e-05/0.6494, allocations: 11.94 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008761/0.6503, allocations: 338.7 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.6506, allocations: 143.3 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.6508, allocations: 141.4 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.6512, allocations: 299 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003689/0.6515, allocations: 236.3 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.6517, allocations: 127.5 kB / 1.226 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.6519, allocations: 135.5 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.442e-05/0.652, allocations: 20 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.6522, allocations: 163.6 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.562e-05/0.6523, allocations: 83.78 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.6525, allocations: 111.5 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.6528, allocations: 342.4 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.6529, allocations: 0 / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.133e-06/0.6529, allocations: 3.938 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.6529, allocations: 0 / 1.226 GB, free: 11.49 MB / 0.9512 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.0006763/0.6536, allocations: 0.5182 MB / 1.227 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.6536, allocations: 12.03 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.04e-05/0.6537, allocations: 54.73 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00051/0.6542, allocations: 76.7 kB / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.6545, allocations: 252 kB / 1.227 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.6545, allocations: 12.75 kB / 1.227 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.6545, allocations: 24.36 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.6549, allocations: 295.3 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.6549, allocations: 4 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.655, allocations: 4 kB / 1.228 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.655, allocations: 24.36 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.6553, allocations: 196.9 kB / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.6566, allocations: 1.456 MB / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.6569, allocations: 171.7 kB / 1.229 GB, free: 8.105 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.011e-05/0.6569, allocations: 40.84 kB / 1.23 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 8.627e-06/0.657, allocations: 4 kB / 1.23 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.657, allocations: 30.56 kB / 1.23 GB, free: 8.02 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.635e-06/0.657, allocations: 0 / 1.23 GB, free: 8.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004075/0.6574, allocations: 227.3 kB / 1.23 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.6575, allocations: 59.41 kB / 1.23 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.6576, allocations: 207.9 kB / 1.23 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.6577, allocations: 25.7 kB / 1.23 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.865e-05/0.6578, allocations: 172.1 kB / 1.23 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.6578, allocations: 23.78 kB / 1.23 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.412e-05/0.6579, allocations: 37.7 kB / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.658, allocations: 330.8 kB / 1.231 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.237e-05/0.6581, allocations: 35.89 kB / 1.231 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.942e-05/0.6582, allocations: 104.5 kB / 1.231 GB, free: 6.719 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.6583, allocations: 144.5 kB / 1.231 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.6583, allocations: 8 kB / 1.231 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002823/0.6586, allocations: 190.2 kB / 1.231 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.6586, allocations: 4 kB / 1.231 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.6587, allocations: 4.312 kB / 1.231 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.6588, allocations: 24.84 kB / 1.231 GB, free: 6.309 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.783e-05/0.6589, allocations: 31.92 kB / 1.231 GB, free: 6.277 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.6599, allocations: 1.422 MB / 1.233 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.66, allocations: 24 kB / 1.233 GB, free: 4.684 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.6601, allocations: 8 kB / 1.233 GB, free: 4.676 MB / 0.9512 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.000122/0.6602, allocations: 154.2 kB / 1.233 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.6602, allocations: 15.91 kB / 1.233 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.833e-05/0.6603, allocations: 17.39 kB / 1.233 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.6603, allocations: 0 / 1.233 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.6603, allocations: 0 / 1.233 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.6603, allocations: 96 / 1.233 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004712/0.6608, allocations: 455.2 kB / 1.233 GB, free: 3.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.6608, allocations: 0 / 1.233 GB, free: 3.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.6608, allocations: 8 kB / 1.233 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.911e-05/0.6609, allocations: 20.84 kB / 1.233 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.6609, allocations: 0 / 1.233 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009476/0.6618, allocations: 1.426 MB / 1.235 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6619, allocations: 0 / 1.235 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.6621, allocations: 216.3 kB / 1.235 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.6621, allocations: 101 kB / 1.235 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.6622, allocations: 4 kB / 1.235 GB, free: 2.035 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.444e-05/0.6623, allocations: 0 / 1.235 GB, free: 2.035 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.207e-05/0.6623, allocations: 15.92 kB / 1.235 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.6623, allocations: 4 kB / 1.235 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001173/0.6624, allocations: 144.4 kB / 1.235 GB, free: 1.875 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6624, allocations: 0 / 1.235 GB, free: 1.875 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002833/0.6627, allocations: 51.89 kB / 1.235 GB, free: 1.824 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.0004621/0.6632, allocations: 0.7444 MB / 1.236 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003082/0.6635, allocations: 206.6 kB / 1.236 GB, free: 0.832 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6635, allocations: 0 / 1.236 GB, free: 0.832 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.6637, allocations: 150.6 kB / 1.236 GB, free: 0.6719 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.664, allocations: 41.12 kB / 1.236 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.666, allocations: 2.054 MB / 1.238 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.6663, allocations: 0.7475 MB / 1.239 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.246e-05/0.6664, allocations: 25.92 kB / 1.239 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.804e-05/0.6665, allocations: 51.42 kB / 1.239 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.6665, allocations: 0 / 1.239 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.707/2.373, allocations: 3.729 MB / 1.243 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.4/20.78, allocations: 6.281 kB / 1.243 GB, free: 9.988 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches