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.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004047/0.004047, allocations: 98.98 kB / 15.73 MB, free: 6.008 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.001028/0.001028, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.531/2.531, allocations: 469.4 MB / 0.7422 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.89 kB / 1.064 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6408/0.6421, allocations: 159.1 MB / 1.22 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1656/0.8078, allocations: 176.2 MB / 1.392 GB, free: 1.441 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01796/0.8258, allocations: 15.67 MB / 1.407 GB, free: 1.723 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.8269, allocations: 31.81 kB / 1.407 GB, free: 1.691 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.8285, allocations: 0.6284 MB / 1.408 GB, free: 1.059 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.003766/0.8323, allocations: 1.609 MB / 1.409 GB, free: 15.45 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.00361/0.8359, allocations: 1.688 MB / 1.411 GB, free: 13.77 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.003013/0.8389, allocations: 2.906 MB / 1.414 GB, free: 10.85 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002269/0.8412, allocations: 1.855 MB / 1.416 GB, free: 8.938 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003185/0.8444, allocations: 1.427 MB / 1.417 GB, free: 7.539 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.8457, allocations: 1.039 MB / 1.418 GB, free: 6.496 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0003392/0.846, allocations: 196 kB / 1.418 GB, free: 6.305 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002209/0.8482, allocations: 1.341 MB / 1.419 GB, free: 4.961 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0005199/0.8488, allocations: 0.5686 MB / 1.42 GB, free: 4.391 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.8498, allocations: 1.038 MB / 1.421 GB, free: 3.348 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003313/0.8532, allocations: 3.029 MB / 1.424 GB, free: 316 kB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.8532, allocations: 0 / 1.424 GB, free: 316 kB / 1.139 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8532, allocations: 0 / 1.424 GB, free: 316 kB / 1.139 GB Notification: Performance of Transformations before backend: time 5.322e-05/0.8533, allocations: 0 / 1.424 GB, free: 316 kB / 1.139 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.004085/0.8573, allocations: 2.365 MB / 1.426 GB, free: 13.87 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.8574, allocations: 8.625 kB / 1.426 GB, free: 13.86 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.8577, allocations: 240.3 kB / 1.427 GB, free: 13.62 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003152/0.8608, allocations: 490.1 kB / 1.427 GB, free: 13.14 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.8625, allocations: 1.141 MB / 1.428 GB, free: 11.95 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.08e-05/0.8626, allocations: 127.2 kB / 1.428 GB, free: 11.82 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.8629, allocations: 152 kB / 1.428 GB, free: 11.68 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00292/0.8658, allocations: 1.792 MB / 1.43 GB, free: 9.805 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.8658, allocations: 0 / 1.43 GB, free: 9.805 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/0.866, allocations: 75.98 kB / 1.43 GB, free: 9.73 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.422e-05/0.866, allocations: 48 kB / 1.43 GB, free: 9.684 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003011/0.8691, allocations: 1.768 MB / 1.432 GB, free: 7.91 MB / 1.154 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007611/0.8767, allocations: 6.15 MB / 1.438 GB, free: 1.398 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002677/0.8794, allocations: 1.557 MB / 1.44 GB, free: 15.79 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.8804, allocations: 0.566 MB / 1.44 GB, free: 15.21 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008311/0.8812, allocations: 0.8866 MB / 1.441 GB, free: 14.14 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/0.8827, allocations: 0.8127 MB / 1.442 GB, free: 13.31 MB / 1.17 GB Notification: Performance of pre-optimization done (n=126): time 2.725e-06/0.8827, allocations: 0 / 1.442 GB, free: 13.31 MB / 1.17 GB Notification: Performance of matching and sorting (n=126): time 0.004695/0.8874, allocations: 1.891 MB / 1.444 GB, free: 11.39 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.933e-05/0.8875, allocations: 192.9 kB / 1.444 GB, free: 11.16 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.8887, allocations: 0.9876 MB / 1.445 GB, free: 10.16 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.8888, allocations: 53.7 kB / 1.445 GB, free: 10.1 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.8892, allocations: 0.6697 MB / 1.445 GB, free: 9.418 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003167/0.8896, allocations: 440.2 kB / 1.446 GB, free: 8.984 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003385/0.8899, allocations: 210.9 kB / 1.446 GB, free: 8.773 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.89, allocations: 357.9 kB / 1.446 GB, free: 8.418 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009112/0.891, allocations: 422.4 kB / 1.447 GB, free: 8.004 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.892, allocations: 0.5897 MB / 1.447 GB, free: 7.367 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001945/0.894, allocations: 1.019 MB / 1.448 GB, free: 6.328 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.894, allocations: 0 / 1.448 GB, free: 6.328 MB / 1.17 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002915/0.8969, allocations: 1.313 MB / 1.45 GB, free: 5.004 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.8969, allocations: 4 kB / 1.45 GB, free: 5 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.8969, allocations: 4 kB / 1.45 GB, free: 4.996 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006011/0.8976, allocations: 84.92 kB / 1.45 GB, free: 4.91 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.8989, allocations: 283.6 kB / 1.45 GB, free: 4.633 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.901, allocations: 1.645 MB / 1.452 GB, free: 2.844 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.9021, allocations: 143.2 kB / 1.452 GB, free: 2.703 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/0.9022, allocations: 47.97 kB / 1.452 GB, free: 2.656 MB / 1.17 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.0005393/0.9027, allocations: 381.4 kB / 1.452 GB, free: 2.273 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.903, allocations: 147 kB / 1.452 GB, free: 2.129 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/0.9065, allocations: 1.602 MB / 1.454 GB, free: 0.5117 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.9065, allocations: 12 kB / 1.454 GB, free: 0.5 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.9065, allocations: 8 kB / 1.454 GB, free: 0.4922 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.9065, allocations: 7.969 kB / 1.454 GB, free: 496 kB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005188/0.9117, allocations: 3.171 MB / 1.457 GB, free: 13.25 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.9118, allocations: 7.938 kB / 1.457 GB, free: 13.24 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.9131, allocations: 267.7 kB / 1.457 GB, free: 12.98 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.9135, allocations: 76.77 kB / 1.457 GB, free: 12.9 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-05/0.9136, allocations: 39.97 kB / 1.457 GB, free: 12.86 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.9155, allocations: 1.666 MB / 1.459 GB, free: 11.05 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.9155, allocations: 3.984 kB / 1.459 GB, free: 11.05 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.9197, allocations: 2.19 MB / 1.461 GB, free: 8.836 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006191/0.9203, allocations: 411.6 kB / 1.462 GB, free: 8.414 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002027/0.9205, allocations: 31.92 kB / 1.462 GB, free: 8.383 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.9217, allocations: 79.92 kB / 1.462 GB, free: 8.305 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.9219, allocations: 97.23 kB / 1.462 GB, free: 8.211 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.922, allocations: 63.95 kB / 1.462 GB, free: 8.148 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0008591/0.9229, allocations: 0.6841 MB / 1.462 GB, free: 7.457 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9229, allocations: 0 / 1.462 GB, free: 7.457 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.001152/0.924, allocations: 0.5493 MB / 1.463 GB, free: 6.906 MB / 1.186 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.006214/0.9302, allocations: 3.356 MB / 1.466 GB, free: 3.711 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.002463/0.9327, allocations: 1.252 MB / 1.468 GB, free: 2.445 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.9327, allocations: 448 / 1.468 GB, free: 2.445 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.9341, allocations: 0.7518 MB / 1.468 GB, free: 1.68 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.9365, allocations: 0.5829 MB / 1.469 GB, free: 1.113 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.9525, allocations: 10.08 MB / 1.479 GB, free: 6.867 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008524/0.9533, allocations: 1.311 MB / 1.48 GB, free: 5.523 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.001364/0.9547, allocations: 434.8 kB / 1.48 GB, free: 5.094 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009264/0.9556, allocations: 0.6671 MB / 1.481 GB, free: 4.426 MB / 1.201 GB Notification: Performance of SimCode: time 3.11e-07/0.9557, allocations: 0 / 1.481 GB, free: 4.426 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06449/1.02, allocations: 37.39 MB / 1.518 GB, free: 15.48 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.93, allocations: 13.06 kB / 1.518 GB, free: 15.48 MB / 1.248 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.csv","/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) Reference file matches