Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.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.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter",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.005557/0.005557, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001226/0.001226, allocations: 187.2 kB / 16.67 MB, free: 5.957 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.293/2.293, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.16 kB / 0.9504 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.278, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02464/0.3027, allocations: 23.24 MB / 1.11 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007332/0.31, allocations: 5.085 MB / 1.115 GB, free: 5.523 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000986/0.3111, allocations: 27.81 kB / 1.115 GB, free: 5.496 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.3121, allocations: 274.1 kB / 1.115 GB, free: 5.227 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002346/0.3145, allocations: 0.7967 MB / 1.116 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.317, allocations: 0.7618 MB / 1.117 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002955/0.3199, allocations: 1.621 MB / 1.119 GB, free: 2.043 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.321, allocations: 485.3 kB / 1.119 GB, free: 1.57 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.3231, allocations: 0.624 MB / 1.12 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.3242, allocations: 457.9 kB / 1.12 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.3243, allocations: 48 kB / 1.12 GB, free: 464 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.3257, allocations: 491.2 kB / 1.121 GB, free: 15.97 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.3259, allocations: 139.4 kB / 1.121 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0005083/0.3264, allocations: 318.5 kB / 1.121 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001745/0.3282, allocations: 0.9123 MB / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3282, allocations: 0 / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3282, allocations: 4 kB / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.97e-05/0.3282, allocations: 0 / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001642/0.3299, allocations: 0.8842 MB / 1.123 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3299, allocations: 12.02 kB / 1.123 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.606e-05/0.33, allocations: 78.72 kB / 1.123 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.3303, allocations: 68.19 kB / 1.123 GB, free: 13.51 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.3319, allocations: 0.5802 MB / 1.123 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.332, allocations: 37 kB / 1.124 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.3321, allocations: 40 kB / 1.124 GB, free: 12.81 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.3329, allocations: 436.7 kB / 1.124 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.3329, allocations: 7.938 kB / 1.124 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.826e-05/0.333, allocations: 16 kB / 1.124 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.333, allocations: 8 kB / 1.124 GB, free: 12.33 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000627/0.3337, allocations: 303.8 kB / 1.124 GB, free: 12.04 MB / 0.8887 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.003156/0.3368, allocations: 1.915 MB / 1.126 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.3373, allocations: 258.8 kB / 1.126 GB, free: 9.723 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.3375, allocations: 124.8 kB / 1.127 GB, free: 9.598 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008742/0.3384, allocations: 0.8428 MB / 1.127 GB, free: 8.57 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.3385, allocations: 38.56 kB / 1.127 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 2.455e-06/0.3385, allocations: 0 / 1.127 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0007227/0.3392, allocations: 369.5 kB / 1.128 GB, free: 8.156 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3393, allocations: 59.39 kB / 1.128 GB, free: 8.086 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.3398, allocations: 482 kB / 1.128 GB, free: 7.602 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.3399, allocations: 29.7 kB / 1.128 GB, free: 7.566 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.3401, allocations: 264.1 kB / 1.129 GB, free: 7.305 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.3401, allocations: 90.66 kB / 1.129 GB, free: 7.215 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.3403, allocations: 73.92 kB / 1.129 GB, free: 7.137 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3404, allocations: 358.8 kB / 1.129 GB, free: 6.777 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3406, allocations: 100.6 kB / 1.129 GB, free: 6.68 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.3408, allocations: 168 kB / 1.129 GB, free: 6.492 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003935/0.3412, allocations: 291.1 kB / 1.13 GB, free: 6.184 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3412, allocations: 4 kB / 1.13 GB, free: 6.18 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005826/0.3418, allocations: 365 kB / 1.13 GB, free: 5.816 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3418, allocations: 8 kB / 1.13 GB, free: 5.809 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.3418, allocations: 0 / 1.13 GB, free: 5.809 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3419, allocations: 7.938 kB / 1.13 GB, free: 5.801 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.3421, allocations: 67.91 kB / 1.13 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3422, allocations: 7.938 kB / 1.13 GB, free: 5.727 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.3424, allocations: 39.52 kB / 1.13 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.3425, allocations: 16 kB / 1.13 GB, free: 5.672 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * 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.0001972/0.3427, allocations: 182.9 kB / 1.13 GB, free: 5.484 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.3428, allocations: 55.44 kB / 1.13 GB, free: 5.43 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007748/0.3436, allocations: 472.7 kB / 1.131 GB, free: 4.961 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.3436, allocations: 11.94 kB / 1.131 GB, free: 4.949 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3436, allocations: 4 kB / 1.131 GB, free: 4.945 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005449/0.3442, allocations: 0.5572 MB / 1.131 GB, free: 4.32 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.3459, allocations: 1.16 MB / 1.132 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.346, allocations: 0 / 1.132 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.3462, allocations: 51.91 kB / 1.132 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.3462, allocations: 7.938 kB / 1.132 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.3462, allocations: 11.98 kB / 1.132 GB, free: 2.996 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3463, allocations: 4 kB / 1.132 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3463, allocations: 0 / 1.132 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.3471, allocations: 0.6642 MB / 1.133 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.3474, allocations: 176.3 kB / 1.133 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.298e-05/0.3474, allocations: 8 kB / 1.133 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.3477, allocations: 15.98 kB / 1.133 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.3478, allocations: 27.91 kB / 1.133 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.3478, allocations: 12 kB / 1.133 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003897/0.3482, allocations: 350.8 kB / 1.134 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3482, allocations: 0 / 1.134 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000636/0.3488, allocations: 199.8 kB / 1.134 GB, free: 1.504 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001631/0.3505, allocations: 1.381 MB / 1.135 GB, free: 88 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005222/0.351, allocations: 295.7 kB / 1.136 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.351, allocations: 4.438 kB / 1.136 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.3513, allocations: 167 kB / 1.136 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.3528, allocations: 336.5 kB / 1.136 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/0.3581, allocations: 4.2 MB / 1.14 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.3586, allocations: 0.8705 MB / 1.141 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000384/0.359, allocations: 120.6 kB / 1.141 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.3593, allocations: 191.3 kB / 1.141 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of SimCode: time 4.21e-07/0.3593, allocations: 0 / 1.141 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04218/0.4015, allocations: 17.24 MB / 1.158 GB, free: 8.777 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.548/8.95, allocations: 9.906 kB / 1.158 GB, free: 8.77 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches