Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Controls.OBC.UnitConversions.Validation.From_cfm,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_cfm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_cfm,fileNamePrefix="Buildings_9_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.007182/0.007182, allocations: 102.3 kB / 15.73 MB, free: 6.066 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.001309/0.001309, allocations: 191.2 kB / 16.67 MB, free: 5.973 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.338/2.338, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 67.91 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7188/0.7202, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_cfm): time 0.001738/0.722, allocations: 0.8306 MB / 1.088 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001083/0.7221, allocations: 40.5 kB / 1.088 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.821e-05/0.7222, allocations: 1.062 kB / 1.088 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.7222, allocations: 6.484 kB / 1.088 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.783e-05/0.7223, allocations: 17.38 kB / 1.088 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.586e-05/0.7224, allocations: 15.62 kB / 1.088 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.895e-05/0.7225, allocations: 64.34 kB / 1.088 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.7226, allocations: 37.25 kB / 1.088 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.592e-05/0.7227, allocations: 34.55 kB / 1.088 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.473e-05/0.7227, allocations: 30.12 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.7227, allocations: 6.156 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.047e-05/0.7228, allocations: 6.406 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.7228, allocations: 15.97 kB / 1.089 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.208e-05/0.7228, allocations: 28.66 kB / 1.089 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.7229, allocations: 79.58 kB / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.7229, allocations: 0 / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.723, allocations: 0 / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.723, allocations: 0 / 1.089 GB, free: 4.508 MB / 0.8575 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.0003306/0.7233, allocations: 384.4 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.7233, allocations: 10.16 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.7234, allocations: 39.28 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.7234, allocations: 10.23 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.7236, allocations: 200.3 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.7236, allocations: 2.688 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.7236, allocations: 13.16 kB / 1.089 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.7238, allocations: 90.59 kB / 1.089 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.7238, allocations: 5.578 kB / 1.089 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.7238, allocations: 5.125 kB / 1.089 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.7238, allocations: 6.062 kB / 1.089 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.604e-05/0.7239, allocations: 39.61 kB / 1.089 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.7243, allocations: 429.6 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.115e-05/0.7243, allocations: 50.19 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.245e-05/0.7244, allocations: 21.2 kB / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-06/0.7244, allocations: 0 / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.7244, allocations: 32.23 kB / 1.09 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.7244, allocations: 1.219 kB / 1.09 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000155/0.7246, allocations: 60.83 kB / 1.09 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.7246, allocations: 81.11 kB / 1.09 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.7247, allocations: 156.8 kB / 1.09 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.68e-06/0.7248, allocations: 26.64 kB / 1.09 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.7248, allocations: 111.7 kB / 1.09 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.785e-06/0.7248, allocations: 5.375 kB / 1.09 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/0.7249, allocations: 18.42 kB / 1.09 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.7249, allocations: 324.4 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.84e-05/0.7249, allocations: 3.922 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.995e-05/0.725, allocations: 24.14 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.556e-05/0.725, allocations: 22.36 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.725, allocations: 1.125 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.58e-05/0.7251, allocations: 65.52 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.7251, allocations: 9.812 kB / 1.091 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.7251, allocations: 1.156 kB / 1.091 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.7251, allocations: 5.109 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.815e-05/0.7252, allocations: 5.766 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.7252, allocations: 1.391 kB / 1.091 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.057e-05/0.7252, allocations: 9.922 kB / 1.091 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.7252, allocations: 1.062 kB / 1.091 GB, free: 2.375 MB / 0.8575 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 5.037e-05/0.7253, allocations: 114.8 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.7253, allocations: 16.45 kB / 1.091 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.7254, allocations: 12.05 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.7254, allocations: 0.8125 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.7254, allocations: 1.125 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.7254, allocations: 1.891 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.7257, allocations: 465.4 kB / 1.091 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.7257, allocations: 1.453 kB / 1.091 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.967e-05/0.7257, allocations: 11.8 kB / 1.091 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.7257, allocations: 1.156 kB / 1.091 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.7257, allocations: 4.547 kB / 1.091 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.7257, allocations: 1.031 kB / 1.091 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7257, allocations: 4.938 kB / 1.091 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.386e-05/0.7258, allocations: 81.73 kB / 1.092 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.09e-05/0.7258, allocations: 85.22 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.7259, allocations: 9.688 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.05e-05/0.7259, allocations: 1.828 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.7259, allocations: 1.656 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.7259, allocations: 1.188 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.664e-05/0.726, allocations: 122.9 kB / 1.092 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.726, allocations: 0 / 1.092 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001908/0.7262, allocations: 10.73 kB / 1.092 GB, free: 1.453 MB / 0.8575 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.0003285/0.7265, allocations: 0.6193 MB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.959e-05/0.7266, allocations: 19.91 kB / 1.092 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.7266, allocations: 1.031 kB / 1.092 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.143e-05/0.7266, allocations: 4.766 kB / 1.092 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001494/0.7268, allocations: 14.11 kB / 1.092 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.7279, allocations: 1.325 MB / 1.094 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.7282, allocations: 0.6954 MB / 1.094 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.275e-05/0.7283, allocations: 11.77 kB / 1.094 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/0.7283, allocations: 25.45 kB / 1.094 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.7283, allocations: 0 / 1.094 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.7443, allocations: 1.58 MB / 1.096 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.075/7.819, allocations: 4.812 kB / 1.096 GB, free: 14.48 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_UnitConversions_Validation_From_cfm.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_cfm.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_cfm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches