Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_Outside_Cp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_9_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.007357/0.007357, allocations: 95.02 kB / 15.73 MB, free: 6.484 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.001787/0.001787, allocations: 194.2 kB / 16.67 MB, free: 6.391 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.319/2.319, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.05 kB / 0.9504 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2232, allocations: 140.4 MB / 1.087 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1693/0.3925, allocations: 175.2 MB / 1.259 GB, free: 2.141 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.5114/0.904, allocations: 15.54 MB / 1.274 GB, free: 3.109 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.9054, allocations: 29.91 kB / 1.274 GB, free: 3.109 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.9071, allocations: 0.6001 MB / 1.274 GB, free: 3.098 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003698/0.9109, allocations: 1.519 MB / 1.276 GB, free: 3.047 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004098/0.915, allocations: 1.684 MB / 1.277 GB, free: 2.996 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003297/0.9183, allocations: 2.743 MB / 1.28 GB, free: 2.992 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002444/0.9207, allocations: 1.899 MB / 1.282 GB, free: 2.734 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.9239, allocations: 1.39 MB / 1.283 GB, free: 2.727 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.925, allocations: 1.026 MB / 1.284 GB, free: 2.719 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0003332/0.9253, allocations: 198.1 kB / 1.285 GB, free: 2.719 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00268/0.928, allocations: 1.341 MB / 1.286 GB, free: 2.695 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005017/0.9285, allocations: 0.567 MB / 1.286 GB, free: 2.695 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000908/0.9294, allocations: 0.999 MB / 1.287 GB, free: 2.645 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003503/0.9329, allocations: 2.984 MB / 1.29 GB, free: 2.207 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.9329, allocations: 0.6562 kB / 1.29 GB, free: 2.207 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.933, allocations: 1.062 kB / 1.29 GB, free: 2.207 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.577e-05/0.933, allocations: 1.188 kB / 1.29 GB, free: 2.207 MB / 1.014 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.003829/0.9368, allocations: 2.343 MB / 1.293 GB, free: 1.051 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.9369, allocations: 9.578 kB / 1.293 GB, free: 1.051 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002803/0.9372, allocations: 239.1 kB / 1.293 GB, free: 1.004 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003187/0.9403, allocations: 477.8 kB / 1.293 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.9421, allocations: 1.144 MB / 1.294 GB, free: 0.5 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.264e-05/0.9422, allocations: 125.5 kB / 1.295 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002176/0.9425, allocations: 154.5 kB / 1.295 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003006/0.9455, allocations: 1.791 MB / 1.296 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.9455, allocations: 0 / 1.296 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.9457, allocations: 73.62 kB / 1.296 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.132e-05/0.9457, allocations: 51.17 kB / 1.297 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003097/0.9488, allocations: 1.766 MB / 1.298 GB, free: 240 kB / 1.014 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.007671/0.9565, allocations: 5.851 MB / 1.304 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.9591, allocations: 1.561 MB / 1.305 GB, free: 13.37 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009836/0.9601, allocations: 0.5608 MB / 1.306 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008785/0.961, allocations: 0.8874 MB / 1.307 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001417/0.9624, allocations: 0.799 MB / 1.308 GB, free: 12.34 MB / 1.029 GB Notification: Performance of pre-optimization done (n=126): time 2.755e-06/0.9625, allocations: 0 / 1.308 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=126): time 0.00477/0.9672, allocations: 1.898 MB / 1.31 GB, free: 12.1 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.935e-05/0.9674, allocations: 195 kB / 1.31 GB, free: 11.88 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.9686, allocations: 0.9845 MB / 1.311 GB, free: 11.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.9687, allocations: 54.45 kB / 1.311 GB, free: 11.7 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005483/0.9693, allocations: 0.6734 MB / 1.311 GB, free: 11.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000371/0.9697, allocations: 439.7 kB / 1.312 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/0.9701, allocations: 216.6 kB / 1.312 GB, free: 11.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.9702, allocations: 349.3 kB / 1.312 GB, free: 10.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009046/0.9711, allocations: 428.3 kB / 1.313 GB, free: 10.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.9722, allocations: 0.5969 MB / 1.313 GB, free: 10.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.9741, allocations: 1.011 MB / 1.314 GB, free: 10.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.9741, allocations: 1.031 kB / 1.314 GB, free: 10.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002889/0.977, allocations: 1.311 MB / 1.316 GB, free: 10.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.977, allocations: 8.031 kB / 1.316 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.9771, allocations: 2.469 kB / 1.316 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000588/0.9777, allocations: 82.41 kB / 1.316 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.979, allocations: 290.7 kB / 1.316 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.9811, allocations: 1.645 MB / 1.318 GB, free: 9.039 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.9822, allocations: 141.5 kB / 1.318 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.816e-05/0.9823, allocations: 54.42 kB / 1.318 GB, free: 8.977 MB / 1.029 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.0006191/0.983, allocations: 370.6 kB / 1.318 GB, free: 8.859 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.9833, allocations: 146.7 kB / 1.318 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003518/0.9868, allocations: 1.605 MB / 1.32 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.9868, allocations: 13.34 kB / 1.32 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.9868, allocations: 3.781 kB / 1.32 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.9869, allocations: 5.719 kB / 1.32 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005315/0.9922, allocations: 3.162 MB / 1.323 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.9922, allocations: 0 / 1.323 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.9934, allocations: 279.1 kB / 1.323 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004447/0.9939, allocations: 69.53 kB / 1.323 GB, free: 8.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.994, allocations: 39.36 kB / 1.323 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.9959, allocations: 1.684 MB / 1.325 GB, free: 6.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.996, allocations: 0 / 1.325 GB, free: 6.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004162/1, allocations: 2.19 MB / 1.327 GB, free: 5.73 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006981/1.001, allocations: 401 kB / 1.327 GB, free: 5.461 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/1.001, allocations: 31.38 kB / 1.328 GB, free: 5.441 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/1.002, allocations: 87.06 kB / 1.328 GB, free: 5.422 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/1.003, allocations: 97.27 kB / 1.328 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.003, allocations: 64.16 kB / 1.328 GB, free: 5.395 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0009577/1.004, allocations: 0.6827 MB / 1.328 GB, free: 5.109 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/1.004, allocations: 0.9062 kB / 1.328 GB, free: 5.109 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001418/1.005, allocations: 0.5364 MB / 1.329 GB, free: 4.957 MB / 1.029 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.006158/1.011, allocations: 3.343 MB / 1.332 GB, free: 3.312 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00259/1.014, allocations: 1.241 MB / 1.333 GB, free: 2.855 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.014, allocations: 8.391 kB / 1.333 GB, free: 2.852 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001397/1.015, allocations: 0.7657 MB / 1.334 GB, free: 2.551 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/1.018, allocations: 0.5663 MB / 1.335 GB, free: 2.371 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01879/1.037, allocations: 10.22 MB / 1.345 GB, free: 13.76 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/1.038, allocations: 1.303 MB / 1.346 GB, free: 13 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001764/1.039, allocations: 443.8 kB / 1.346 GB, free: 12.86 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.04, allocations: 0.6647 MB / 1.347 GB, free: 12.37 MB / 1.045 GB Notification: Performance of SimCode: time 6.61e-07/1.041, allocations: 0 / 1.347 GB, free: 12.37 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07368/1.114, allocations: 36.68 MB / 1.383 GB, free: 4.812 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.42, allocations: 10.38 kB / 1.383 GB, free: 4.805 MB / 1.061 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Sources_Examples_Outside_Cp.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches