Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.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.Controls.OBC.UnitConversions.Validation.From_cfm,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_cfm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_cfm,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_cfm",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.007982/0.007982, allocations: 98.33 kB / 15.73 MB, free: 6.016 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.0019/0.0019, allocations: 193.2 kB / 16.67 MB, free: 5.934 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.602/2.602, allocations: 469.4 MB / 0.7422 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.89 kB / 1.064 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.731/0.7323, allocations: 159.1 MB / 1.22 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_cfm): time 0.002038/0.7344, allocations: 0.8274 MB / 1.221 GB, free: 1.414 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001239/0.7345, allocations: 43.8 kB / 1.221 GB, free: 1.371 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.878e-05/0.7346, allocations: 0 / 1.221 GB, free: 1.371 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.7347, allocations: 11.88 kB / 1.221 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.859e-05/0.7348, allocations: 11.86 kB / 1.221 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 4.683e-05/0.7348, allocations: 19.97 kB / 1.221 GB, free: 1.328 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.822e-05/0.7349, allocations: 63.84 kB / 1.221 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.735, allocations: 47.86 kB / 1.221 GB, free: 1.219 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.388e-05/0.7351, allocations: 31.8 kB / 1.221 GB, free: 1.188 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.727e-05/0.7352, allocations: 23.86 kB / 1.221 GB, free: 1.164 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.7352, allocations: 8 kB / 1.221 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.239e-05/0.7352, allocations: 4 kB / 1.221 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.348e-05/0.7352, allocations: 19.92 kB / 1.221 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.7353, allocations: 27.81 kB / 1.221 GB, free: 1.105 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.7354, allocations: 79.28 kB / 1.221 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.7354, allocations: 0 / 1.221 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7354, allocations: 3.938 kB / 1.221 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.7354, allocations: 0 / 1.221 GB, free: 1.027 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003909/0.7358, allocations: 379.2 kB / 1.221 GB, free: 0.6055 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.7359, allocations: 8.625 kB / 1.221 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.239e-05/0.7359, allocations: 42.73 kB / 1.221 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.736, allocations: 16.84 kB / 1.221 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.7362, allocations: 192.2 kB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.7362, allocations: 384 / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.7362, allocations: 12.38 kB / 1.222 GB, free: 300 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001568/0.7364, allocations: 105.8 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.7364, allocations: 3.938 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.7364, allocations: 4 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.7364, allocations: 4 kB / 1.222 GB, free: 172 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.532e-05/0.7365, allocations: 39.92 kB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.737, allocations: 432.7 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.35e-05/0.7371, allocations: 49.25 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.302e-05/0.7371, allocations: 17.77 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-06/0.7371, allocations: 0 / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.7372, allocations: 38.56 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.7372, allocations: 4 kB / 1.222 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001649/0.7373, allocations: 53.53 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.7374, allocations: 77.11 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.7375, allocations: 156.5 kB / 1.222 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.7375, allocations: 29.7 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.743e-05/0.7376, allocations: 104.1 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.364e-06/0.7376, allocations: 3.953 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.7377, allocations: 21.92 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.336e-05/0.7378, allocations: 322.8 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.749e-05/0.7378, allocations: 4 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.293e-05/0.7378, allocations: 21.7 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.081e-05/0.7379, allocations: 29.66 kB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.7379, allocations: 4 kB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.657e-05/0.738, allocations: 65.53 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.738, allocations: 11.92 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.738, allocations: 0 / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.738, allocations: 4 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.849e-05/0.7381, allocations: 4 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.7381, allocations: 0 / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.244e-05/0.7381, allocations: 7.938 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-06/0.7381, allocations: 0 / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.898e-05/0.7382, allocations: 114.4 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.7383, allocations: 15.95 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.7383, allocations: 15.86 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.7383, allocations: 0 / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.7383, allocations: 0 / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.7383, allocations: 0 / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003613/0.7387, allocations: 470.7 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7387, allocations: 0 / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.98e-05/0.7387, allocations: 8.156 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.7387, allocations: 7.922 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.7388, allocations: 4 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7388, allocations: 0 / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7388, allocations: 3.938 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.006e-05/0.7389, allocations: 81.88 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.7389, allocations: 89.05 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.7389, allocations: 4.031 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.083e-05/0.739, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.739, allocations: 8 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-06/0.739, allocations: 0 / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.837e-05/0.7391, allocations: 120.9 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7391, allocations: 0 / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001966/0.7393, allocations: 8 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003517/0.7396, allocations: 0.6171 MB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.507e-05/0.7397, allocations: 19.94 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7397, allocations: 0 / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.118e-05/0.7398, allocations: 4 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.7399, allocations: 14.69 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.7411, allocations: 1.335 MB / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.7413, allocations: 0.6924 MB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.419e-05/0.7413, allocations: 8.438 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.7414, allocations: 23.42 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.7414, allocations: 0 / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.7581, allocations: 1.584 MB / 1.228 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.156/7.914, allocations: 16.58 kB / 1.228 GB, free: 9.129 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_cfm.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_cfm.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches