Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 213.9 kB / 22.25 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.318/1.318, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.945/2.945, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.58 kB / 1.186 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2991, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1783/0.4773, allocations: 155.4 MB / 1.515 GB, free: 2.055 MB / 1.201 GB Notification: Performance of NFInst.instExpressions: time 0.01961/0.497, allocations: 14.78 MB / 1.53 GB, free: 3.227 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001248/0.4982, allocations: 43.62 kB / 1.53 GB, free: 3.184 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.4998, allocations: 0.6051 MB / 1.53 GB, free: 2.574 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.004066/0.5038, allocations: 1.68 MB / 1.532 GB, free: 0.8906 MB / 1.217 GB Notification: Performance of NFTyping.typeClassSections: time 0.003904/0.5077, allocations: 1.714 MB / 1.534 GB, free: 15.18 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.003545/0.5113, allocations: 2.959 MB / 1.536 GB, free: 12.21 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.5133, allocations: 1.47 MB / 1.538 GB, free: 10.69 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004125/0.5174, allocations: 1.694 MB / 1.54 GB, free: 9.023 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.5189, allocations: 0.9799 MB / 1.54 GB, free: 8.039 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.0003003/0.5192, allocations: 204 kB / 1.541 GB, free: 7.84 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002605/0.5219, allocations: 1.259 MB / 1.542 GB, free: 6.578 MB / 1.232 GB Notification: Performance of NFScalarize.scalarize: time 0.0005359/0.5224, allocations: 0.5919 MB / 1.542 GB, free: 5.984 MB / 1.232 GB Notification: Performance of NFVerifyModel.verify: time 0.0008867/0.5233, allocations: 0.8633 MB / 1.543 GB, free: 5.117 MB / 1.232 GB Notification: Performance of NFConvertDAE.convert: time 0.004003/0.5273, allocations: 3.121 MB / 1.546 GB, free: 1.984 MB / 1.232 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5273, allocations: 3.938 kB / 1.546 GB, free: 1.98 MB / 1.232 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5273, allocations: 0 / 1.546 GB, free: 1.98 MB / 1.232 GB Notification: Performance of Transformations before backend: time 2.239e-05/0.5273, allocations: 0 / 1.546 GB, free: 1.98 MB / 1.232 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.00388/0.5312, allocations: 2.34 MB / 1.549 GB, free: 15.59 MB / 1.248 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.5312, allocations: 12.03 kB / 1.549 GB, free: 15.58 MB / 1.248 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002839/0.5315, allocations: 240.3 kB / 1.549 GB, free: 15.33 MB / 1.248 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/0.5357, allocations: 0.6035 MB / 1.549 GB, free: 14.73 MB / 1.248 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.5378, allocations: 1.089 MB / 1.551 GB, free: 13.6 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.5379, allocations: 115.2 kB / 1.551 GB, free: 13.48 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002365/0.5381, allocations: 164 kB / 1.551 GB, free: 13.32 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003623/0.5418, allocations: 2.474 MB / 1.553 GB, free: 10.62 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.5418, allocations: 0 / 1.553 GB, free: 10.62 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/0.5419, allocations: 75.98 kB / 1.553 GB, free: 10.54 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.014e-05/0.542, allocations: 44 kB / 1.553 GB, free: 10.5 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003541/0.5455, allocations: 1.826 MB / 1.555 GB, free: 8.668 MB / 1.248 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007963/0.5535, allocations: 4.721 MB / 1.56 GB, free: 3.836 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/0.5566, allocations: 1.409 MB / 1.561 GB, free: 2.418 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.5578, allocations: 0.5749 MB / 1.562 GB, free: 1.836 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003253/0.5581, allocations: 80.94 kB / 1.562 GB, free: 1.758 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001921/0.5601, allocations: 1.333 MB / 1.563 GB, free: 300 kB / 1.248 GB Notification: Performance of pre-optimization done (n=126): time 3.376e-06/0.5601, allocations: 0 / 1.563 GB, free: 300 kB / 1.248 GB Notification: Performance of matching and sorting (n=126): time 0.0053/0.5654, allocations: 1.976 MB / 1.565 GB, free: 14.3 MB / 1.264 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.5655, allocations: 196.9 kB / 1.565 GB, free: 14.07 MB / 1.264 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.5669, allocations: 1.013 MB / 1.566 GB, free: 13.04 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.567, allocations: 57.69 kB / 1.566 GB, free: 12.98 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006143/0.5676, allocations: 0.6816 MB / 1.567 GB, free: 12.29 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.568, allocations: 440.2 kB / 1.567 GB, free: 11.86 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003687/0.5683, allocations: 218.8 kB / 1.568 GB, free: 11.63 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.5685, allocations: 345.9 kB / 1.568 GB, free: 11.29 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.5696, allocations: 486.3 kB / 1.568 GB, free: 10.82 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.571, allocations: 0.849 MB / 1.569 GB, free: 9.867 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.5733, allocations: 1.093 MB / 1.57 GB, free: 8.754 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5733, allocations: 8 kB / 1.57 GB, free: 8.746 MB / 1.264 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00333/0.5767, allocations: 1.407 MB / 1.572 GB, free: 7.328 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.5767, allocations: 4 kB / 1.572 GB, free: 7.324 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.5767, allocations: 4 kB / 1.572 GB, free: 7.32 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005878/0.5773, allocations: 88.86 kB / 1.572 GB, free: 7.23 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5787, allocations: 295.6 kB / 1.572 GB, free: 6.941 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.5808, allocations: 1.548 MB / 1.573 GB, free: 5.273 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.5819, allocations: 151.2 kB / 1.574 GB, free: 5.125 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.582, allocations: 51.95 kB / 1.574 GB, free: 5.074 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 135 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006483/0.5827, allocations: 369.6 kB / 1.574 GB, free: 4.703 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.583, allocations: 155 kB / 1.574 GB, free: 4.551 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.5869, allocations: 1.712 MB / 1.576 GB, free: 2.824 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.5869, allocations: 12 kB / 1.576 GB, free: 2.812 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.5869, allocations: 0 / 1.576 GB, free: 2.812 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.5869, allocations: 11.97 kB / 1.576 GB, free: 2.801 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005876/0.5928, allocations: 3.074 MB / 1.579 GB, free: 15.67 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.5928, allocations: 7.875 kB / 1.579 GB, free: 15.66 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.5942, allocations: 287.6 kB / 1.579 GB, free: 15.38 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.5946, allocations: 76.73 kB / 1.579 GB, free: 15.3 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.5947, allocations: 39.95 kB / 1.579 GB, free: 15.27 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001978/0.5967, allocations: 1.563 MB / 1.581 GB, free: 13.59 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5967, allocations: 0 / 1.581 GB, free: 13.59 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005159/0.6018, allocations: 2.359 MB / 1.583 GB, free: 11.21 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009217/0.6027, allocations: 346.5 kB / 1.583 GB, free: 10.87 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.6029, allocations: 24 kB / 1.583 GB, free: 10.84 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.6041, allocations: 105.5 kB / 1.584 GB, free: 10.74 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.6043, allocations: 97.12 kB / 1.584 GB, free: 10.65 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.6045, allocations: 63.94 kB / 1.584 GB, free: 10.59 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001034/0.6055, allocations: 0.7082 MB / 1.584 GB, free: 9.871 MB / 1.279 GB Notification: Performance of sort global known variables: time 8e-08/0.6055, allocations: 0 / 1.584 GB, free: 9.871 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.001312/0.6068, allocations: 0.5494 MB / 1.585 GB, free: 9.32 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (ori1.mExc,ori2.mExc) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007218/0.614, allocations: 3.521 MB / 1.588 GB, free: 5.98 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.002894/0.6169, allocations: 1.314 MB / 1.59 GB, free: 4.652 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.6169, allocations: 4.438 kB / 1.59 GB, free: 4.648 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.6185, allocations: 0.7558 MB / 1.59 GB, free: 3.879 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.6207, allocations: 0.5812 MB / 1.591 GB, free: 3.312 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/0.6388, allocations: 10.55 MB / 1.601 GB, free: 8.586 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008284/0.6397, allocations: 0.7323 MB / 1.602 GB, free: 7.812 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001605/0.6413, allocations: 446.9 kB / 1.602 GB, free: 7.371 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.6423, allocations: 0.6789 MB / 1.603 GB, free: 6.691 MB / 1.295 GB Notification: Performance of SimCode: time 9.51e-07/0.6423, allocations: 0 / 1.603 GB, free: 6.691 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6292/1.271, allocations: 41.96 MB / 1.644 GB, free: 234.3 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/14.42, allocations: 4.938 kB / 1.644 GB, free: 234.3 MB / 1.295 GB " [Timeout remaining time 285] (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 20.617487895768136]