Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001301/0.001301, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001384/0.001384, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.396/1.396, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.898/2.898, allocations: 0.4892 GB / 0.7943 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Fluid_Sources_Examples_Outside_Cp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_12_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.001976/0.001976, allocations: 75.14 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3042, allocations: 176.1 MB / 1.325 GB, free: 2.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1919/0.4961, allocations: 155.4 MB / 1.477 GB, free: 6.41 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.02091/0.517, allocations: 14.66 MB / 1.491 GB, free: 7.699 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.5185, allocations: 43.62 kB / 1.491 GB, free: 7.656 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.5205, allocations: 0.5934 MB / 1.492 GB, free: 7.059 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.004695/0.5252, allocations: 1.646 MB / 1.493 GB, free: 5.41 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.00416/0.5293, allocations: 1.719 MB / 1.495 GB, free: 3.699 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.003573/0.5329, allocations: 2.922 MB / 1.498 GB, free: 0.7656 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.5349, allocations: 1.458 MB / 1.499 GB, free: 15.25 MB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004114/0.539, allocations: 1.692 MB / 1.501 GB, free: 13.59 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.5404, allocations: 0.9817 MB / 1.502 GB, free: 12.6 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 0.000298/0.5407, allocations: 200 kB / 1.502 GB, free: 12.41 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002414/0.5431, allocations: 1.22 MB / 1.503 GB, free: 11.18 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 0.0005278/0.5436, allocations: 0.5841 MB / 1.504 GB, free: 10.6 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 0.0008868/0.5445, allocations: 0.8516 MB / 1.505 GB, free: 9.742 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.003987/0.5485, allocations: 3.082 MB / 1.508 GB, free: 6.648 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.5485, allocations: 4 kB / 1.508 GB, free: 6.645 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5485, allocations: 0 / 1.508 GB, free: 6.645 MB / 1.201 GB Notification: Performance of Transformations before backend: time 2.717e-05/0.5486, allocations: 0 / 1.508 GB, free: 6.645 MB / 1.201 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.00398/0.5525, allocations: 2.313 MB / 1.51 GB, free: 4.281 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.5526, allocations: 15.97 kB / 1.51 GB, free: 4.266 MB / 1.201 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003109/0.5529, allocations: 236.3 kB / 1.51 GB, free: 4.023 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003511/0.5564, allocations: 0.5294 MB / 1.511 GB, free: 3.492 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.5586, allocations: 1.069 MB / 1.512 GB, free: 2.383 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.5587, allocations: 119.2 kB / 1.512 GB, free: 2.266 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.5589, allocations: 159.9 kB / 1.512 GB, free: 2.109 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003549/0.5625, allocations: 2.412 MB / 1.514 GB, free: 15.46 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.5625, allocations: 7.938 kB / 1.514 GB, free: 15.45 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.5626, allocations: 68 kB / 1.514 GB, free: 15.39 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.049e-05/0.5627, allocations: 47.98 kB / 1.515 GB, free: 15.34 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003258/0.566, allocations: 1.725 MB / 1.516 GB, free: 13.61 MB / 1.217 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008537/0.5745, allocations: 4.66 MB / 1.521 GB, free: 8.84 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.5771, allocations: 1.25 MB / 1.522 GB, free: 7.582 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.5782, allocations: 0.5206 MB / 1.522 GB, free: 7.059 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005823/0.5788, allocations: 132.9 kB / 1.523 GB, free: 6.93 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001774/0.5806, allocations: 1.29 MB / 1.524 GB, free: 5.504 MB / 1.217 GB Notification: Performance of pre-optimization done (n=126): time 3.136e-06/0.5806, allocations: 0 / 1.524 GB, free: 5.504 MB / 1.217 GB Notification: Performance of matching and sorting (n=126): time 0.004756/0.5853, allocations: 1.812 MB / 1.526 GB, free: 3.684 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.5854, allocations: 196.9 kB / 1.526 GB, free: 3.449 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.5868, allocations: 1.012 MB / 1.527 GB, free: 2.422 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.5869, allocations: 57.64 kB / 1.527 GB, free: 2.359 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005849/0.5875, allocations: 0.6816 MB / 1.528 GB, free: 1.668 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/0.5879, allocations: 440.2 kB / 1.528 GB, free: 1.234 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003391/0.5882, allocations: 210.9 kB / 1.528 GB, free: 1.02 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5884, allocations: 353.9 kB / 1.529 GB, free: 0.668 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009012/0.5893, allocations: 422.4 kB / 1.529 GB, free: 264 kB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.5905, allocations: 0.7945 MB / 1.53 GB, free: 15.36 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001947/0.5924, allocations: 1.015 MB / 1.531 GB, free: 14.32 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5924, allocations: 0 / 1.531 GB, free: 14.32 MB / 1.232 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002935/0.5953, allocations: 1.313 MB / 1.532 GB, free: 13 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.5954, allocations: 8 kB / 1.532 GB, free: 12.99 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.5954, allocations: 0 / 1.532 GB, free: 12.99 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/0.5959, allocations: 92.91 kB / 1.532 GB, free: 12.89 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5972, allocations: 279.6 kB / 1.532 GB, free: 12.62 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.5994, allocations: 1.539 MB / 1.534 GB, free: 10.96 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.6005, allocations: 131.2 kB / 1.534 GB, free: 10.83 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-05/0.6006, allocations: 43.97 kB / 1.534 GB, free: 10.79 MB / 1.232 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.0007164/0.6013, allocations: 389.6 kB / 1.534 GB, free: 10.4 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002659/0.6016, allocations: 151 kB / 1.535 GB, free: 10.25 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/0.6051, allocations: 1.598 MB / 1.536 GB, free: 8.637 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.6051, allocations: 12 kB / 1.536 GB, free: 8.625 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.6051, allocations: 15.88 kB / 1.536 GB, free: 8.609 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.6051, allocations: 3.984 kB / 1.536 GB, free: 8.605 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/0.6107, allocations: 2.936 MB / 1.539 GB, free: 5.621 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6107, allocations: 3.938 kB / 1.539 GB, free: 5.617 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.6119, allocations: 275.6 kB / 1.539 GB, free: 5.348 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004259/0.6123, allocations: 68.8 kB / 1.539 GB, free: 5.277 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.001e-05/0.6124, allocations: 35.97 kB / 1.539 GB, free: 5.242 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.6144, allocations: 1.559 MB / 1.541 GB, free: 3.566 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.6144, allocations: 8 kB / 1.541 GB, free: 3.559 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.6188, allocations: 2.183 MB / 1.543 GB, free: 1.352 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.6196, allocations: 330.5 kB / 1.543 GB, free: 1.027 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.6198, allocations: 32.06 kB / 1.543 GB, free: 0.9961 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6209, allocations: 89.39 kB / 1.543 GB, free: 0.9102 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.621, allocations: 101.1 kB / 1.544 GB, free: 0.8125 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.6212, allocations: 63.95 kB / 1.544 GB, free: 0.75 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.000974/0.6221, allocations: 0.7041 MB / 1.544 GB, free: 40 kB / 1.232 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6221, allocations: 4 kB / 1.544 GB, free: 36 kB / 1.232 GB Notification: Performance of remove unused functions: time 0.001267/0.6234, allocations: 0.5571 MB / 1.545 GB, free: 15.48 MB / 1.248 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.00667/0.6301, allocations: 3.372 MB / 1.548 GB, free: 12.29 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.002661/0.6327, allocations: 1.205 MB / 1.549 GB, free: 11.07 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6327, allocations: 448 / 1.549 GB, free: 11.07 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.6342, allocations: 0.7127 MB / 1.55 GB, free: 10.35 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.6366, allocations: 0.5696 MB / 1.551 GB, free: 9.793 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01758/0.6542, allocations: 10.16 MB / 1.56 GB, free: 15.46 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008311/0.655, allocations: 0.7343 MB / 1.561 GB, free: 14.69 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.001539/0.6566, allocations: 442.9 kB / 1.562 GB, free: 14.25 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000993/0.6576, allocations: 0.675 MB / 1.562 GB, free: 13.57 MB / 1.264 GB Notification: Performance of SimCode: time 9.81e-07/0.6576, allocations: 0 / 1.562 GB, free: 13.57 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08772/0.7453, allocations: 40.69 MB / 1.602 GB, free: 5.445 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/14.15, allocations: 2.656 kB / 1.602 GB, free: 5.445 MB / 1.295 GB " [Timeout remaining time 286] (rm -f Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sources_Examples_Outside_Cp_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Sources_Examples_Outside_Cp.fmu > Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.961656427942216]