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.00119/0.00119, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.00126/0.00126, allocations: 218.1 kB / 22.25 MB, free: 5.258 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.308/1.308, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 179] 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.84/2.84, allocations: 0.49 GB / 0.7951 GB, free: 35.56 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.001899/0.001899, allocations: 63.28 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2904, allocations: 176.1 MB / 1.326 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1869/0.4773, allocations: 155.4 MB / 1.478 GB, free: 5.488 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.02052/0.4978, allocations: 14.67 MB / 1.492 GB, free: 6.773 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.4991, allocations: 43.62 kB / 1.492 GB, free: 6.73 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.5006, allocations: 0.5973 MB / 1.493 GB, free: 6.129 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.003939/0.5046, allocations: 1.622 MB / 1.494 GB, free: 4.504 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.004068/0.5087, allocations: 1.723 MB / 1.496 GB, free: 2.789 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.003274/0.5119, allocations: 2.929 MB / 1.499 GB, free: 15.85 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001957/0.5139, allocations: 1.494 MB / 1.5 GB, free: 14.29 MB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003999/0.5179, allocations: 1.695 MB / 1.502 GB, free: 12.63 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.5192, allocations: 1.066 MB / 1.503 GB, free: 11.56 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 0.000258/0.5195, allocations: 200 kB / 1.503 GB, free: 11.36 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.5218, allocations: 1.252 MB / 1.504 GB, free: 10.11 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 0.0005425/0.5223, allocations: 0.5802 MB / 1.505 GB, free: 9.527 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 0.0008799/0.5232, allocations: 0.8477 MB / 1.506 GB, free: 8.676 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.003501/0.5267, allocations: 3.09 MB / 1.509 GB, free: 5.574 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5267, allocations: 0 / 1.509 GB, free: 5.574 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5267, allocations: 0 / 1.509 GB, free: 5.574 MB / 1.201 GB Notification: Performance of Transformations before backend: time 1.888e-05/0.5268, allocations: 0 / 1.509 GB, free: 5.574 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.003935/0.5307, allocations: 2.321 MB / 1.511 GB, free: 3.203 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.5307, allocations: 8.031 kB / 1.511 GB, free: 3.195 MB / 1.201 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002827/0.531, allocations: 240.3 kB / 1.511 GB, free: 2.949 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00356/0.5346, allocations: 0.506 MB / 1.512 GB, free: 2.441 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.5364, allocations: 1.081 MB / 1.513 GB, free: 1.32 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.5365, allocations: 123.2 kB / 1.513 GB, free: 1.199 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/0.5367, allocations: 160 kB / 1.513 GB, free: 1.043 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003232/0.5399, allocations: 2.412 MB / 1.515 GB, free: 14.4 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/0.54, allocations: 0 / 1.515 GB, free: 14.4 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/0.5401, allocations: 72 kB / 1.515 GB, free: 14.33 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-05/0.5402, allocations: 47.98 kB / 1.515 GB, free: 14.28 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.5432, allocations: 1.725 MB / 1.517 GB, free: 12.55 MB / 1.217 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007524/0.5507, allocations: 4.656 MB / 1.522 GB, free: 7.781 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002412/0.5531, allocations: 1.253 MB / 1.523 GB, free: 6.52 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009691/0.5541, allocations: 0.5234 MB / 1.523 GB, free: 5.992 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005368/0.5546, allocations: 136.9 kB / 1.524 GB, free: 5.859 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001639/0.5562, allocations: 1.282 MB / 1.525 GB, free: 4.441 MB / 1.217 GB Notification: Performance of pre-optimization done (n=126): time 3.206e-06/0.5562, allocations: 4 kB / 1.525 GB, free: 4.438 MB / 1.217 GB Notification: Performance of matching and sorting (n=126): time 0.004621/0.5609, allocations: 1.816 MB / 1.527 GB, free: 2.613 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.561, allocations: 196.9 kB / 1.527 GB, free: 2.379 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.5622, allocations: 1.012 MB / 1.528 GB, free: 1.352 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.5623, allocations: 53.7 kB / 1.528 GB, free: 1.293 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005373/0.5629, allocations: 0.6815 MB / 1.528 GB, free: 0.6016 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.5632, allocations: 444.2 kB / 1.529 GB, free: 168 kB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003558/0.5636, allocations: 214.9 kB / 1.529 GB, free: 15.95 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.5637, allocations: 345.9 kB / 1.529 GB, free: 15.6 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000844/0.5646, allocations: 426.4 kB / 1.53 GB, free: 15.19 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.5657, allocations: 0.7983 MB / 1.531 GB, free: 14.29 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/0.5675, allocations: 1.015 MB / 1.532 GB, free: 13.25 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.5675, allocations: 0 / 1.532 GB, free: 13.25 MB / 1.232 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002812/0.5703, allocations: 1.313 MB / 1.533 GB, free: 11.93 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.5704, allocations: 4 kB / 1.533 GB, free: 11.92 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.5704, allocations: 4 kB / 1.533 GB, free: 11.92 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006332/0.571, allocations: 88.92 kB / 1.533 GB, free: 11.83 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.5723, allocations: 279.6 kB / 1.533 GB, free: 11.55 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.5744, allocations: 1.539 MB / 1.535 GB, free: 9.895 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.5754, allocations: 131.2 kB / 1.535 GB, free: 9.766 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.5755, allocations: 55.97 kB / 1.535 GB, free: 9.711 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.0005941/0.5761, allocations: 377.5 kB / 1.535 GB, free: 9.332 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.5764, allocations: 151 kB / 1.535 GB, free: 9.184 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.5798, allocations: 1.606 MB / 1.537 GB, free: 7.562 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.5799, allocations: 16 kB / 1.537 GB, free: 7.547 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.5799, allocations: 0 / 1.537 GB, free: 7.547 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5799, allocations: 7.984 kB / 1.537 GB, free: 7.539 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005134/0.585, allocations: 2.944 MB / 1.54 GB, free: 4.543 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.585, allocations: 3.938 kB / 1.54 GB, free: 4.539 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.5863, allocations: 267.7 kB / 1.54 GB, free: 4.277 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004313/0.5867, allocations: 72.78 kB / 1.54 GB, free: 4.203 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.721e-05/0.5868, allocations: 35.97 kB / 1.54 GB, free: 4.168 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.5887, allocations: 1.563 MB / 1.542 GB, free: 2.488 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5887, allocations: 4.047 kB / 1.542 GB, free: 2.484 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.5927, allocations: 2.195 MB / 1.544 GB, free: 272 kB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007055/0.5934, allocations: 330.5 kB / 1.544 GB, free: 15.94 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.5936, allocations: 28.06 kB / 1.544 GB, free: 15.91 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.5947, allocations: 88.06 kB / 1.544 GB, free: 15.83 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.5949, allocations: 97.12 kB / 1.544 GB, free: 15.74 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.595, allocations: 59.95 kB / 1.545 GB, free: 15.68 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.0008951/0.5959, allocations: 0.7081 MB / 1.545 GB, free: 14.96 MB / 1.248 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5959, allocations: 4 kB / 1.545 GB, free: 14.96 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.001213/0.5971, allocations: 0.5494 MB / 1.546 GB, free: 14.41 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.006339/0.6035, allocations: 3.373 MB / 1.549 GB, free: 11.22 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.002379/0.6058, allocations: 1.201 MB / 1.55 GB, free: 10 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.6058, allocations: 8.375 kB / 1.55 GB, free: 9.996 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.6071, allocations: 0.7088 MB / 1.551 GB, free: 9.277 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.6092, allocations: 0.5715 MB / 1.551 GB, free: 8.727 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.6253, allocations: 10.16 MB / 1.561 GB, free: 14.38 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000757/0.626, allocations: 0.7322 MB / 1.562 GB, free: 13.61 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.00136/0.6274, allocations: 442.9 kB / 1.563 GB, free: 13.17 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009476/0.6284, allocations: 0.675 MB / 1.563 GB, free: 12.5 MB / 1.264 GB Notification: Performance of SimCode: time 6.21e-07/0.6284, allocations: 7.938 kB / 1.563 GB, free: 12.49 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08553/0.7139, allocations: 41.04 MB / 1.603 GB, free: 4.02 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.83, allocations: 6.641 kB / 1.603 GB, free: 4.016 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.42571111599682]