Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.CHPs.BaseClasses.Validation.EnergyConversionNormal,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal",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.004123/0.004124, allocations: 98.42 kB / 15.73 MB, free: 5.547 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.001765/0.001765, allocations: 192 kB / 16.67 MB, free: 5.48 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.479/2.479, allocations: 482.6 MB / 0.7551 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 73.83 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2623, allocations: 162.3 MB / 1.242 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal): time 0.003244/0.2656, allocations: 2.265 MB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2669, allocations: 0.9438 MB / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.267, allocations: 4 kB / 1.245 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.2676, allocations: 199.1 kB / 1.245 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.2677, allocations: 67.42 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.268, allocations: 111.7 kB / 1.245 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.2683, allocations: 223.1 kB / 1.246 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.2685, allocations: 89.69 kB / 1.246 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2686, allocations: 87.53 kB / 1.246 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.2687, allocations: 99.42 kB / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.2687, allocations: 16 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.269, allocations: 155.8 kB / 1.246 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.2692, allocations: 219.2 kB / 1.246 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.2694, allocations: 266 kB / 1.246 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007006/0.2701, allocations: 0.727 MB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2701, allocations: 0 / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2701, allocations: 4 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.2701, allocations: 0 / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001147/0.2713, allocations: 0.9979 MB / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2713, allocations: 8.031 kB / 1.248 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.329e-05/0.2714, allocations: 46.73 kB / 1.248 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004795/0.2719, allocations: 124.3 kB / 1.248 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007365/0.2726, allocations: 0.5981 MB / 1.249 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.2726, allocations: 8.375 kB / 1.249 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.2727, allocations: 12.38 kB / 1.249 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003641/0.273, allocations: 194.1 kB / 1.249 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.273, allocations: 7.938 kB / 1.249 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.2731, allocations: 8 kB / 1.249 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2731, allocations: 0 / 1.249 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004422/0.2735, allocations: 231.8 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.2746, allocations: 0.9217 MB / 1.25 GB, free: 108 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.2753, allocations: 314.6 kB / 1.251 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.2755, allocations: 108.7 kB / 1.251 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006223/0.2761, allocations: 237 kB / 1.251 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.2762, allocations: 38.56 kB / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.2762, allocations: 4 kB / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0007591/0.2769, allocations: 397 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.277, allocations: 55.41 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.2781, allocations: 0.9974 MB / 1.252 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.2781, allocations: 25.7 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002832/0.2784, allocations: 348.1 kB / 1.253 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.2785, allocations: 31.73 kB / 1.253 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.2785, allocations: 26.09 kB / 1.253 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.2787, allocations: 310 kB / 1.253 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.2789, allocations: 99.95 kB / 1.253 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.2791, allocations: 126.5 kB / 1.253 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.2795, allocations: 218.4 kB / 1.253 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2795, allocations: 0 / 1.253 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005362/0.28, allocations: 336.9 kB / 1.254 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.2801, allocations: 4 kB / 1.254 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2801, allocations: 0 / 1.254 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2801, allocations: 0 / 1.254 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.2802, allocations: 23.98 kB / 1.254 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2802, allocations: 0 / 1.254 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.2804, allocations: 15.92 kB / 1.254 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.2804, allocations: 7.938 kB / 1.254 GB, free: 12.32 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 11 * 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 0.0002476/0.2807, allocations: 257.7 kB / 1.254 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.976e-05/0.2808, allocations: 79.42 kB / 1.254 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005835/0.2814, allocations: 328.5 kB / 1.254 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2814, allocations: 0 / 1.254 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2814, allocations: 0 / 1.254 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2814, allocations: 3.984 kB / 1.254 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005317/0.2819, allocations: 0.5323 MB / 1.255 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2819, allocations: 0 / 1.255 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.2821, allocations: 23.98 kB / 1.255 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2821, allocations: 0 / 1.255 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2821, allocations: 8.172 kB / 1.255 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2821, allocations: 0 / 1.255 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2821, allocations: 3.938 kB / 1.255 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005636/0.2827, allocations: 410.8 kB / 1.255 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.2829, allocations: 184.5 kB / 1.256 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.2829, allocations: 7.984 kB / 1.256 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.2831, allocations: 8 kB / 1.256 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.2831, allocations: 3.984 kB / 1.256 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2832, allocations: 4 kB / 1.256 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008512/0.284, allocations: 0.7176 MB / 1.256 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.284, allocations: 0 / 1.256 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003154/0.2843, allocations: 75.88 kB / 1.256 GB, free: 9.602 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (9): * Single equations (assignments): 9 * 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.0009376/0.2853, allocations: 0.9506 MB / 1.257 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004512/0.2857, allocations: 219.8 kB / 1.258 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2858, allocations: 128 / 1.258 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.286, allocations: 104 kB / 1.258 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.2863, allocations: 52.08 kB / 1.258 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007854/0.2942, allocations: 6.392 MB / 1.264 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005634/0.2948, allocations: 0.9412 MB / 1.265 GB, free: 0.7969 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000186/0.295, allocations: 81.31 kB / 1.265 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.2952, allocations: 215.4 kB / 1.265 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of SimCode: time 4.81e-07/0.2953, allocations: 0 / 1.265 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8298/1.125, allocations: 11.81 MB / 1.277 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.57/22.69, allocations: 9.984 kB / 1.277 GB, free: 4.863 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal_fmu --startTime=0 --stopTime=1500 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_EnergyConversionNormal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.EnergyConversionNormal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches