Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001111/0.001112, allocations: 105.5 kB / 16.27 MB, free: 5.984 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.001151/0.001151, allocations: 192.4 kB / 17.2 MB, free: 5.609 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.351/1.351, allocations: 222.9 MB / 240.9 MB, free: 15.02 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.243/2.243, allocations: 390.3 MB / 0.6653 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 66.8 kB / 0.8132 GB, free: 32.96 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2845, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002929/0.2874, allocations: 1.262 MB / 0.9515 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004469/0.2919, allocations: 3.27 MB / 0.9547 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.977e-05/0.292, allocations: 4 kB / 0.9547 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.785e-05/0.292, allocations: 0 / 0.9547 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.823e-05/0.2921, allocations: 7.938 kB / 0.9547 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.2927, allocations: 103.5 kB / 0.9548 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.425e-05/0.2928, allocations: 47.78 kB / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.2928, allocations: 3.984 kB / 0.9548 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.293, allocations: 12 kB / 0.9548 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.907e-05/0.2931, allocations: 19.91 kB / 0.9549 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.2931, allocations: 8 kB / 0.9549 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.2934, allocations: 71.81 kB / 0.9549 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.2934, allocations: 11.97 kB / 0.955 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.519e-05/0.2934, allocations: 15.94 kB / 0.955 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002027/0.2937, allocations: 76.06 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2937, allocations: 0 / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.233e-06/0.2937, allocations: 0 / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.2937, allocations: 0 / 0.955 GB, free: 3.961 MB / 0.7325 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.0004911/0.2942, allocations: 343.5 kB / 0.9554 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2942, allocations: 16.03 kB / 0.9554 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.2943, allocations: 4.938 kB / 0.9554 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.2945, allocations: 168.3 kB / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.2945, allocations: 384 / 0.9556 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.2945, allocations: 8.281 kB / 0.9556 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.2947, allocations: 57.8 kB / 0.9556 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2947, allocations: 3.938 kB / 0.9556 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.2947, allocations: 4 kB / 0.9556 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2947, allocations: 0 / 0.9556 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.374e-05/0.2948, allocations: 23.92 kB / 0.9556 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002064/0.295, allocations: 165.7 kB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.2951, allocations: 54.62 kB / 0.9559 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.51e-05/0.2951, allocations: 16.84 kB / 0.9559 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008346/0.296, allocations: 0.5869 MB / 0.9564 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.296, allocations: 42.5 kB / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.213e-06/0.296, allocations: 0 / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006131/0.2967, allocations: 298.1 kB / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.2967, allocations: 51.41 kB / 0.9568 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.2968, allocations: 102.1 kB / 0.9569 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.2968, allocations: 29.7 kB / 0.9569 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.2969, allocations: 96.03 kB / 0.957 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.933e-05/0.2969, allocations: 23.66 kB / 0.9571 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.297, allocations: 25.7 kB / 0.9571 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2971, allocations: 318.8 kB / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.965e-05/0.2972, allocations: 15.98 kB / 0.9574 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.583e-05/0.2972, allocations: 53.08 kB / 0.9575 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.777e-05/0.2973, allocations: 73.03 kB / 0.9575 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2973, allocations: 4.438 kB / 0.9575 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001411/0.2975, allocations: 101.8 kB / 0.9576 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2975, allocations: 13.97 kB / 0.9576 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.2975, allocations: 7.984 kB / 0.9576 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2976, allocations: 0 / 0.9576 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.2976, allocations: 23.98 kB / 0.9577 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2977, allocations: 4 kB / 0.9577 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.948e-05/0.2977, allocations: 3.938 kB / 0.9577 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.2977, allocations: 8 kB / 0.9577 GB, free: 0.8477 MB / 0.7325 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 9.86e-05/0.2978, allocations: 117.8 kB / 0.9578 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.403e-05/0.2979, allocations: 8 kB / 0.9578 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.2979, allocations: 11.95 kB / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2979, allocations: 0 / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2979, allocations: 0 / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2979, allocations: 3.938 kB / 0.9578 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.2983, allocations: 169.7 kB / 0.958 GB, free: 488 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2983, allocations: 0 / 0.958 GB, free: 488 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.459e-05/0.2984, allocations: 16 kB / 0.958 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2984, allocations: 0 / 0.958 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.2984, allocations: 0 / 0.958 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.2984, allocations: 3.984 kB / 0.958 GB, free: 468 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2984, allocations: 4 kB / 0.958 GB, free: 464 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.2987, allocations: 183.3 kB / 0.9582 GB, free: 264 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.002e-05/0.2987, allocations: 81.14 kB / 0.9583 GB, free: 164 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.2988, allocations: 4 kB / 0.9583 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.2989, allocations: 0 / 0.9583 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.2989, allocations: 7.984 kB / 0.9583 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.625e-05/0.299, allocations: 7.938 kB / 0.9583 GB, free: 144 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.641e-05/0.2991, allocations: 83.28 kB / 0.9584 GB, free: 60 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2991, allocations: 0 / 0.9584 GB, free: 60 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002604/0.2993, allocations: 16 kB / 0.9584 GB, free: 44 kB / 0.7325 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.0001981/0.2995, allocations: 95.3 kB / 0.9585 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002085/0.2998, allocations: 51.8 kB / 0.9585 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2998, allocations: 0 / 0.9585 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.632e-05/0.2998, allocations: 12.25 kB / 0.9585 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.3001, allocations: 12 kB / 0.9585 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007769/0.3009, allocations: 348.2 kB / 0.9589 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.3014, allocations: 0.6846 MB / 0.9595 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.3015, allocations: 15.38 kB / 0.9595 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.3015, allocations: 3.938 kB / 0.9595 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of Templates: time 0.003019/0.3045, allocations: 0.7733 MB / 0.9603 GB, free: 13.99 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches