Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001763/0.001763, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.674/2.674, allocations: 437 MB / 0.71 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.89 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7651/0.7663, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002635/0.769, allocations: 1.336 MB / 1.018 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003767/0.7728, allocations: 3.225 MB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.547e-05/0.7729, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.574e-05/0.7729, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.118e-05/0.773, allocations: 3.938 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006013/0.7736, allocations: 99.61 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.508e-05/0.7737, allocations: 35.91 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.109e-05/0.7737, allocations: 7.984 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.965e-05/0.7738, allocations: 19.88 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.484e-05/0.7739, allocations: 15.97 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.7739, allocations: 4 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.7741, allocations: 71.81 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.239e-05/0.7742, allocations: 19.91 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.187e-05/0.7742, allocations: 12 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.7744, allocations: 73.81 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7744, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.043e-06/0.7744, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.742e-06/0.7744, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005376/0.775, allocations: 351.5 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.7751, allocations: 11.97 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.7752, allocations: 8.922 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.7754, allocations: 168.3 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.7754, allocations: 4.375 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.677e-05/0.7755, allocations: 12.28 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.7757, allocations: 53.8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.7757, allocations: 3.984 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.7758, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.7758, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.073e-05/0.7758, allocations: 19.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000258/0.7761, allocations: 165.7 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.7762, allocations: 58.56 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.057e-05/0.7763, allocations: 12.86 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000799/0.7771, allocations: 0.5946 MB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.7771, allocations: 30.56 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.7771, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006225/0.7777, allocations: 302.1 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.7778, allocations: 55.64 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.566e-05/0.7779, allocations: 101.8 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.7779, allocations: 25.7 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/0.778, allocations: 92.03 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.778, allocations: 27.64 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.778, allocations: 25.72 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.7782, allocations: 318.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.013e-05/0.7782, allocations: 15.98 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.57e-05/0.7783, allocations: 53.08 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.661e-05/0.7784, allocations: 77.09 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.7784, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001358/0.7785, allocations: 97.45 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.7785, allocations: 4 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.7785, allocations: 7.938 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.7786, allocations: 4.547 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-05/0.7786, allocations: 24 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.7787, allocations: 0 / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.06e-05/0.7787, allocations: 11.94 kB / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.7787, allocations: 8 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 8.544e-05/0.7788, allocations: 114.3 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.7788, allocations: 7.984 kB / 1.024 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.7789, allocations: 8.25 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.7789, allocations: 0 / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7789, allocations: 8 kB / 1.024 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.7789, allocations: 11.86 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.7792, allocations: 169.7 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.7792, allocations: 0 / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.352e-05/0.7793, allocations: 12 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.7793, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.7793, allocations: 3.984 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.7793, allocations: 4 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.7793, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.7795, allocations: 183.3 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.7796, allocations: 85.14 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.7796, allocations: 0 / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.7797, allocations: 0 / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.7797, allocations: 7.984 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.7798, allocations: 11.94 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.637e-05/0.7798, allocations: 75.28 kB / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7798, allocations: 0 / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002408/0.78, allocations: 16 kB / 1.025 GB, free: 9.859 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * 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.0001557/0.7802, allocations: 107.1 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001398/0.7804, allocations: 47.91 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.7804, allocations: 0 / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.7804, allocations: 16.09 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.7807, allocations: 8.156 kB / 1.025 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007119/0.7815, allocations: 346.5 kB / 1.025 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.7818, allocations: 0.6846 MB / 1.026 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.9e-05/0.7818, allocations: 15.83 kB / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.7819, allocations: 11.44 kB / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7819, allocations: 0 / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of Templates: time 0.002976/0.7849, allocations: 0.602 MB / 1.027 GB, free: 7.973 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches