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.001451/0.001451, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.363/1.363, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.438/2.438, allocations: 390.2 MB / 0.6646 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 67.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7235/0.7248, allocations: 140.3 MB / 0.9496 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002195/0.7271, allocations: 1.278 MB / 0.9508 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00297/0.7301, allocations: 3.256 MB / 0.954 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.858e-05/0.7301, allocations: 3.938 kB / 0.954 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.7301, allocations: 3.938 kB / 0.954 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.611e-05/0.7302, allocations: 9.234 kB / 0.954 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.7307, allocations: 109.3 kB / 0.9541 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.355e-05/0.7307, allocations: 33.89 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.7308, allocations: 1.875 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.107e-05/0.7308, allocations: 25.88 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.866e-05/0.7309, allocations: 13.86 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.7309, allocations: 1.312 kB / 0.9542 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.7311, allocations: 81.42 kB / 0.9543 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.341e-05/0.7312, allocations: 2.438 kB / 0.9543 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.7312, allocations: 19.14 kB / 0.9543 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.7314, allocations: 68.2 kB / 0.9543 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.7314, allocations: 1.156 kB / 0.9543 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7314, allocations: 4 kB / 0.9543 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.7314, allocations: 3.938 kB / 0.9543 GB, free: 5.203 MB / 0.7169 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.0003442/0.7318, allocations: 352.2 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.7318, allocations: 10.25 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.7319, allocations: 4.25 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.063e-05/0.732, allocations: 165.8 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.732, allocations: 1.781 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.7321, allocations: 12.53 kB / 0.9549 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.7322, allocations: 56.92 kB / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.7322, allocations: 1.031 kB / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.7322, allocations: 3.938 kB / 0.9549 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.7322, allocations: 1.062 kB / 0.9549 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.261e-05/0.7323, allocations: 23.16 kB / 0.955 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.7324, allocations: 165.6 kB / 0.9551 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.239e-05/0.7325, allocations: 52.53 kB / 0.9552 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.955e-05/0.7326, allocations: 19.5 kB / 0.9552 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005727/0.7331, allocations: 0.5894 MB / 0.9558 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.7332, allocations: 32.19 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.7332, allocations: 0 / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005305/0.7337, allocations: 307.7 kB / 0.9561 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/0.7337, allocations: 60.66 kB / 0.9561 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.309e-05/0.7338, allocations: 93.55 kB / 0.9562 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.7338, allocations: 30.89 kB / 0.9563 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.7338, allocations: 85.33 kB / 0.9563 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.7339, allocations: 26.61 kB / 0.9564 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.7339, allocations: 29.48 kB / 0.9564 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6e-05/0.734, allocations: 316.1 kB / 0.9567 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.699e-05/0.734, allocations: 16.38 kB / 0.9567 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.486e-05/0.7341, allocations: 49.11 kB / 0.9568 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.753e-05/0.7341, allocations: 84.19 kB / 0.9568 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.7341, allocations: 0 / 0.9568 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001211/0.7343, allocations: 93.73 kB / 0.9569 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7343, allocations: 5.438 kB / 0.9569 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.7343, allocations: 9.719 kB / 0.9569 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.7343, allocations: 2.062 kB / 0.9569 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.692e-05/0.7344, allocations: 24.95 kB / 0.957 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.7344, allocations: 2.781 kB / 0.957 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.727e-05/0.7345, allocations: 13.56 kB / 0.957 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.7345, allocations: 4.031 kB / 0.957 GB, free: 2.414 MB / 0.7169 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 5.479e-05/0.7345, allocations: 117.6 kB / 0.9571 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.7346, allocations: 1.031 kB / 0.9571 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.577e-05/0.7346, allocations: 9.156 kB / 0.9571 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.7346, allocations: 5 kB / 0.9571 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.7346, allocations: 0 / 0.9571 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.7346, allocations: 5.344 kB / 0.9571 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.7348, allocations: 169.2 kB / 0.9573 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7348, allocations: 4 kB / 0.9573 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.233e-05/0.7349, allocations: 17.52 kB / 0.9573 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7349, allocations: 0 / 0.9573 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.7349, allocations: 4.812 kB / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.7349, allocations: 1.188 kB / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7349, allocations: 0 / 0.9573 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.7351, allocations: 184.6 kB / 0.9575 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.049e-05/0.7351, allocations: 80.14 kB / 0.9576 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.7352, allocations: 9.469 kB / 0.9576 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.7353, allocations: 2.781 kB / 0.9576 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.944e-05/0.7353, allocations: 1.406 kB / 0.9576 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.7353, allocations: 10.56 kB / 0.9576 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.111e-05/0.7354, allocations: 82.05 kB / 0.9577 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7354, allocations: 0 / 0.9577 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002334/0.7356, allocations: 13.31 kB / 0.9577 GB, free: 1.703 MB / 0.7169 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.0001099/0.7357, allocations: 105.4 kB / 0.9578 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001226/0.7358, allocations: 43.34 kB / 0.9578 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7359, allocations: 0 / 0.9578 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.573e-05/0.7359, allocations: 23.92 kB / 0.9578 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.7362, allocations: 5.156 kB / 0.9578 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005326/0.7367, allocations: 329.1 kB / 0.9582 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.7368, allocations: 0.6849 MB / 0.9588 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.345e-05/0.7369, allocations: 7.375 kB / 0.9588 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.7369, allocations: 15.22 kB / 0.9588 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7369, allocations: 4 kB / 0.9588 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of Templates: time 0.00267/0.7396, allocations: 0.6178 MB / 0.9594 GB, free: 268 kB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches