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: translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001376, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00126/0.00126, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.242/2.242, allocations: 390.3 MB / 0.6653 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.06 kB / 0.8132 GB, free: 33 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2652, allocations: 140.4 MB / 0.9503 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.0262/0.2914, allocations: 23.23 MB / 0.973 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.008255/0.2997, allocations: 5.094 MB / 0.9779 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009898/0.3008, allocations: 23.88 kB / 0.978 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0008481/0.3016, allocations: 278 kB / 0.9782 GB, free: 12.15 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.002326/0.304, allocations: 0.785 MB / 0.979 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00214/0.3062, allocations: 0.7579 MB / 0.9797 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.002265/0.3085, allocations: 1.606 MB / 0.9813 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007764/0.3093, allocations: 485.8 kB / 0.9818 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.3108, allocations: 0.6172 MB / 0.9824 GB, free: 7.898 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007041/0.3115, allocations: 454 kB / 0.9828 GB, free: 7.453 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.31e-05/0.3116, allocations: 44 kB / 0.9828 GB, free: 7.41 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.3128, allocations: 491.1 kB / 0.9833 GB, free: 6.93 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.313, allocations: 147.5 kB / 0.9834 GB, free: 6.785 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0003382/0.3133, allocations: 306.5 kB / 0.9837 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.3146, allocations: 0.9075 MB / 0.9846 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3146, allocations: 0 / 0.9846 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3147, allocations: 0 / 0.9846 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.3147, allocations: 3.984 kB / 0.9846 GB, free: 5.57 MB / 0.7637 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.001325/0.316, allocations: 0.8804 MB / 0.9855 GB, free: 4.641 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.316, allocations: 12.03 kB / 0.9855 GB, free: 4.629 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.3163, allocations: 64.27 kB / 0.9856 GB, free: 4.566 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008677/0.3172, allocations: 0.5415 MB / 0.9861 GB, free: 3.984 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.3172, allocations: 36.94 kB / 0.9861 GB, free: 3.949 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.3173, allocations: 47.83 kB / 0.9862 GB, free: 3.902 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.318, allocations: 440.7 kB / 0.9866 GB, free: 3.445 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.318, allocations: 0 / 0.9866 GB, free: 3.445 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.318, allocations: 16 kB / 0.9866 GB, free: 3.43 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.3181, allocations: 12 kB / 0.9866 GB, free: 3.418 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005295/0.3186, allocations: 303.8 kB / 0.9869 GB, free: 3.125 MB / 0.7637 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.002727/0.3213, allocations: 1.927 MB / 0.9888 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005238/0.3219, allocations: 271.3 kB / 0.989 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.3221, allocations: 128.7 kB / 0.9892 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008469/0.3229, allocations: 0.8427 MB / 0.99 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.323, allocations: 42.56 kB / 0.99 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.874e-06/0.323, allocations: 0 / 0.99 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26): time 0.0007417/0.3237, allocations: 367.3 kB / 0.9904 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.3238, allocations: 55.34 kB / 0.9904 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005512/0.3243, allocations: 478 kB / 0.9909 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.3244, allocations: 29.7 kB / 0.9909 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.3246, allocations: 264.1 kB / 0.9912 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/0.3247, allocations: 94.59 kB / 0.9913 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3248, allocations: 73.94 kB / 0.9913 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3249, allocations: 358.8 kB / 0.9917 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3251, allocations: 104.5 kB / 0.9918 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.3253, allocations: 168 kB / 0.9919 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/0.3257, allocations: 279.2 kB / 0.9922 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3258, allocations: 7.938 kB / 0.9922 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005758/0.3263, allocations: 360.9 kB / 0.9925 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.3264, allocations: 8 kB / 0.9926 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3264, allocations: 0 / 0.9926 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3264, allocations: 4 kB / 0.9926 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.3267, allocations: 79.83 kB / 0.9926 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.3267, allocations: 7.938 kB / 0.9926 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.327, allocations: 35.59 kB / 0.9927 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.327, allocations: 16.2 kB / 0.9927 GB, free: 12.75 MB / 0.7794 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.0002088/0.3273, allocations: 181.7 kB / 0.9929 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.597e-05/0.3274, allocations: 55.38 kB / 0.9929 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008132/0.3282, allocations: 465.3 kB / 0.9934 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.3282, allocations: 11.92 kB / 0.9934 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3282, allocations: 0 / 0.9934 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005791/0.3288, allocations: 0.5647 MB / 0.9939 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.3306, allocations: 1.164 MB / 0.9951 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3306, allocations: 4 kB / 0.9951 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.3309, allocations: 47.97 kB / 0.9951 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.3309, allocations: 4.188 kB / 0.9951 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.3309, allocations: 16 kB / 0.9951 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.3309, allocations: 7.938 kB / 0.9951 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3309, allocations: 0 / 0.9951 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008808/0.3318, allocations: 0.664 MB / 0.9958 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.332, allocations: 172.4 kB / 0.996 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.929e-05/0.3321, allocations: 8 kB / 0.996 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.3324, allocations: 15.88 kB / 0.996 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.3324, allocations: 23.97 kB / 0.996 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/0.3325, allocations: 23.92 kB / 0.996 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003985/0.3329, allocations: 346.9 kB / 0.9964 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3329, allocations: 0 / 0.9964 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006547/0.3336, allocations: 199.8 kB / 0.9965 GB, free: 8.578 MB / 0.7794 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.0006168/0.3342, allocations: 285.9 kB / 0.9968 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00059/0.3348, allocations: 307.7 kB / 0.9971 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3348, allocations: 3.938 kB / 0.9971 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.335, allocations: 171.7 kB / 0.9973 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.3367, allocations: 332.3 kB / 0.9976 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3384, allocations: 1.1 MB / 0.9987 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.3389, allocations: 0.8588 MB / 0.9995 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.339, allocations: 63.34 kB / 0.9996 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of SimCode: time 8.12e-07/0.339, allocations: 0 / 0.9996 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.01456/0.3536, allocations: 9.852 MB / 1.009 GB, free: 11.64 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (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 & ./Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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