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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008134/0.008134, allocations: 104.8 kB / 15.74 MB, free: 5.988 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.001855/0.001856, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.667/2.667, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 59.91 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.897/0.8984, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1932/1.092, allocations: 176.2 MB / 1.379 GB, free: 12.76 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.02588/1.118, allocations: 15.65 MB / 1.395 GB, free: 13.05 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/1.12, allocations: 31.88 kB / 1.395 GB, free: 13.02 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.002369/1.122, allocations: 0.6167 MB / 1.395 GB, free: 12.4 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.005612/1.128, allocations: 1.574 MB / 1.397 GB, free: 10.82 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.005272/1.133, allocations: 1.677 MB / 1.398 GB, free: 9.152 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.004777/1.138, allocations: 2.918 MB / 1.401 GB, free: 6.223 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003131/1.141, allocations: 1.844 MB / 1.403 GB, free: 4.324 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00411/1.145, allocations: 1.411 MB / 1.404 GB, free: 2.945 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/1.147, allocations: 1.046 MB / 1.405 GB, free: 1.895 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0007341/1.148, allocations: 196 kB / 1.406 GB, free: 1.703 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003839/1.152, allocations: 1.337 MB / 1.407 GB, free: 372 kB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0009049/1.153, allocations: 0.5648 MB / 1.407 GB, free: 15.8 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.002044/1.155, allocations: 1.042 MB / 1.408 GB, free: 14.75 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.005587/1.161, allocations: 3.014 MB / 1.411 GB, free: 11.73 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/1.161, allocations: 3.938 kB / 1.411 GB, free: 11.72 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.814e-06/1.161, allocations: 0 / 1.411 GB, free: 11.72 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0001066/1.161, allocations: 0 / 1.411 GB, free: 11.72 MB / 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.005825/1.167, allocations: 2.302 MB / 1.414 GB, free: 9.355 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.167, allocations: 8.031 kB / 1.414 GB, free: 9.348 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003909/1.167, allocations: 244.3 kB / 1.414 GB, free: 9.098 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003365/1.17, allocations: 465.1 kB / 1.414 GB, free: 8.641 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/1.173, allocations: 1.136 MB / 1.415 GB, free: 7.461 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/1.173, allocations: 127.1 kB / 1.416 GB, free: 7.336 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/1.173, allocations: 156 kB / 1.416 GB, free: 7.184 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003013/1.176, allocations: 1.788 MB / 1.417 GB, free: 5.316 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/1.176, allocations: 0 / 1.417 GB, free: 5.316 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/1.176, allocations: 68 kB / 1.418 GB, free: 5.25 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.116e-05/1.176, allocations: 48 kB / 1.418 GB, free: 5.203 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/1.179, allocations: 1.776 MB / 1.419 GB, free: 3.422 MB / 1.139 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.008529/1.188, allocations: 6.144 MB / 1.425 GB, free: 12.91 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/1.191, allocations: 1.551 MB / 1.427 GB, free: 11.3 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009831/1.192, allocations: 0.5698 MB / 1.427 GB, free: 10.73 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000935/1.193, allocations: 0.8828 MB / 1.428 GB, free: 9.66 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001508/1.194, allocations: 0.7985 MB / 1.429 GB, free: 8.844 MB / 1.154 GB Notification: Performance of pre-optimization done (n=126): time 4.288e-06/1.194, allocations: 4 kB / 1.429 GB, free: 8.84 MB / 1.154 GB Notification: Performance of matching and sorting (n=126): time 0.004975/1.199, allocations: 1.887 MB / 1.431 GB, free: 6.926 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/1.199, allocations: 208.9 kB / 1.431 GB, free: 6.68 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/1.201, allocations: 0.9759 MB / 1.432 GB, free: 5.688 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001475/1.201, allocations: 49.7 kB / 1.432 GB, free: 5.633 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006661/1.202, allocations: 0.6607 MB / 1.433 GB, free: 4.961 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/1.202, allocations: 421.9 kB / 1.433 GB, free: 4.543 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003774/1.203, allocations: 218.8 kB / 1.433 GB, free: 4.324 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001503/1.203, allocations: 345.9 kB / 1.434 GB, free: 3.98 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008762/1.204, allocations: 430.4 kB / 1.434 GB, free: 3.559 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/1.205, allocations: 0.5897 MB / 1.435 GB, free: 2.922 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/1.207, allocations: 1.015 MB / 1.436 GB, free: 1.883 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/1.207, allocations: 0 / 1.436 GB, free: 1.883 MB / 1.154 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003258/1.21, allocations: 1.304 MB / 1.437 GB, free: 0.5664 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/1.21, allocations: 4 kB / 1.437 GB, free: 0.5625 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/1.21, allocations: 0 / 1.437 GB, free: 0.5625 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000618/1.211, allocations: 88.92 kB / 1.437 GB, free: 484 kB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/1.212, allocations: 279.6 kB / 1.437 GB, free: 204 kB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/1.214, allocations: 1.659 MB / 1.439 GB, free: 14.39 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/1.216, allocations: 138.9 kB / 1.439 GB, free: 14.26 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/1.216, allocations: 43.97 kB / 1.439 GB, free: 14.21 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.000936/1.217, allocations: 377.5 kB / 1.439 GB, free: 13.84 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004498/1.217, allocations: 142.2 kB / 1.44 GB, free: 13.7 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/1.221, allocations: 1.602 MB / 1.441 GB, free: 12.08 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/1.221, allocations: 12 kB / 1.441 GB, free: 12.07 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/1.221, allocations: 0 / 1.441 GB, free: 12.07 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/1.221, allocations: 7.969 kB / 1.441 GB, free: 12.06 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005966/1.227, allocations: 3.167 MB / 1.444 GB, free: 8.828 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/1.227, allocations: 0 / 1.444 GB, free: 8.828 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/1.228, allocations: 267.7 kB / 1.445 GB, free: 8.566 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004654/1.229, allocations: 76.78 kB / 1.445 GB, free: 8.488 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/1.229, allocations: 35.97 kB / 1.445 GB, free: 8.453 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/1.231, allocations: 1.678 MB / 1.446 GB, free: 6.633 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.231, allocations: 3.938 kB / 1.446 GB, free: 6.629 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00452/1.235, allocations: 2.17 MB / 1.448 GB, free: 4.434 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008225/1.236, allocations: 402.9 kB / 1.449 GB, free: 4.02 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003163/1.236, allocations: 27.94 kB / 1.449 GB, free: 3.992 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/1.238, allocations: 91.97 kB / 1.449 GB, free: 3.902 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/1.238, allocations: 89.19 kB / 1.449 GB, free: 3.816 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/1.238, allocations: 63.95 kB / 1.449 GB, free: 3.754 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001214/1.239, allocations: 0.6841 MB / 1.45 GB, free: 3.062 MB / 1.17 GB Notification: Performance of sort global known variables: time 2.1e-07/1.239, allocations: 0 / 1.45 GB, free: 3.062 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001649/1.241, allocations: 0.5493 MB / 1.45 GB, free: 2.512 MB / 1.17 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.006435/1.247, allocations: 3.349 MB / 1.453 GB, free: 15.32 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.002895/1.25, allocations: 1.24 MB / 1.455 GB, free: 14.07 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.25, allocations: 4.438 kB / 1.455 GB, free: 14.06 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.001424/1.252, allocations: 0.7677 MB / 1.455 GB, free: 13.29 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/1.255, allocations: 0.5641 MB / 1.456 GB, free: 12.74 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/1.274, allocations: 10.03 MB / 1.466 GB, free: 2.539 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/1.275, allocations: 1.307 MB / 1.467 GB, free: 1.195 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001745/1.277, allocations: 438.8 kB / 1.468 GB, free: 0.7617 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/1.278, allocations: 0.6672 MB / 1.468 GB, free: 100 kB / 1.186 GB Notification: Performance of SimCode: time 9.92e-07/1.278, allocations: 0 / 1.468 GB, free: 100 kB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08749/1.366, allocations: 38.03 MB / 1.505 GB, free: 10.52 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/15.44, allocations: 12.61 kB / 1.505 GB, free: 10.51 MB / 1.232 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 & /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 --timeout=50 --tolerance=1e-06 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.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) Reference file matches