Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.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.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.AirDerivativeCheck") translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 104.5 kB / 15.98 MB, free: 6.355 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.001107/0.001107, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.343/1.343, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.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.442/2.442, allocations: 437 MB / 0.7107 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001346, allocations: 72.36 kB / 0.8694 GB, free: 2.625 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2654, allocations: 151.6 MB / 1.017 GB, free: 11.08 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.00238/0.2678, allocations: 1.387 MB / 1.019 GB, free: 9.676 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.6534/0.9212, allocations: 145.9 MB / 1.161 GB, free: 6.812 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.9213, allocations: 0 / 1.161 GB, free: 6.812 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 5.008e-05/0.9214, allocations: 8.078 kB / 1.161 GB, free: 6.809 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.9215, allocations: 16.05 kB / 1.161 GB, free: 6.797 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.9226, allocations: 305.5 kB / 1.162 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 9.986e-05/0.9227, allocations: 59.03 kB / 1.162 GB, free: 6.633 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.9228, allocations: 5.547 kB / 1.162 GB, free: 6.633 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 4.72e-05/0.9228, allocations: 26.31 kB / 1.162 GB, free: 6.625 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 9.016e-05/0.9229, allocations: 31.33 kB / 1.162 GB, free: 6.613 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.9229, allocations: 7.531 kB / 1.162 GB, free: 6.609 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009482/0.9239, allocations: 447.8 kB / 1.162 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 5.71e-05/0.924, allocations: 20.67 kB / 1.162 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.924, allocations: 22.33 kB / 1.162 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.9243, allocations: 115.9 kB / 1.162 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.9243, allocations: 2.344 kB / 1.162 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9243, allocations: 0 / 1.162 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.9243, allocations: 0 / 1.162 GB, free: 6.375 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000476/0.9248, allocations: 389.2 kB / 1.163 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.9248, allocations: 9.844 kB / 1.163 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004231/0.9253, allocations: 40.55 kB / 1.163 GB, free: 5.98 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.9254, allocations: 165.8 kB / 1.163 GB, free: 5.781 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.9254, allocations: 6.844 kB / 1.163 GB, free: 5.777 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.9254, allocations: 13 kB / 1.163 GB, free: 5.773 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.9256, allocations: 82.03 kB / 1.163 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.9256, allocations: 0 / 1.163 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.9257, allocations: 9.688 kB / 1.163 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.9257, allocations: 1.625 kB / 1.163 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.932e-05/0.9258, allocations: 41.41 kB / 1.163 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002068/0.926, allocations: 190.4 kB / 1.163 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.9262, allocations: 96.64 kB / 1.163 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.451e-05/0.9262, allocations: 31.69 kB / 1.163 GB, free: 5.438 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002392/0.9265, allocations: 183.5 kB / 1.164 GB, free: 5.242 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.9265, allocations: 32.75 kB / 1.164 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.9265, allocations: 0 / 1.164 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001376/0.9279, allocations: 0.5473 MB / 1.164 GB, free: 4.848 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.928, allocations: 53.91 kB / 1.164 GB, free: 4.785 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.817e-05/0.928, allocations: 98.84 kB / 1.164 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.9281, allocations: 30.86 kB / 1.164 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/0.9281, allocations: 81.83 kB / 1.164 GB, free: 4.566 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.9282, allocations: 74.81 kB / 1.164 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/0.9282, allocations: 45.53 kB / 1.164 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.9283, allocations: 323.5 kB / 1.165 GB, free: 4.152 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.51e-05/0.9284, allocations: 32.55 kB / 1.165 GB, free: 4.145 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.288e-05/0.9285, allocations: 68.81 kB / 1.165 GB, free: 4.102 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.9287, allocations: 116.5 kB / 1.165 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.9287, allocations: 0 / 1.165 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002213/0.9289, allocations: 159.2 kB / 1.165 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.9289, allocations: 5.688 kB / 1.165 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.9289, allocations: 1.156 kB / 1.165 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.9289, allocations: 3.469 kB / 1.165 GB, free: 3.953 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.9291, allocations: 38.8 kB / 1.165 GB, free: 3.949 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.9291, allocations: 2.281 kB / 1.165 GB, free: 3.949 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.188e-05/0.9292, allocations: 13.03 kB / 1.165 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.9292, allocations: 8.469 kB / 1.165 GB, free: 3.938 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.913e-05/0.9293, allocations: 124.9 kB / 1.165 GB, free: 3.812 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.9294, allocations: 8.969 kB / 1.165 GB, free: 3.809 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.9294, allocations: 17.78 kB / 1.165 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.9294, allocations: 1.219 kB / 1.165 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.9294, allocations: 1.25 kB / 1.165 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.9294, allocations: 10.17 kB / 1.165 GB, free: 3.785 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.9296, allocations: 192.8 kB / 1.166 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.9296, allocations: 1.062 kB / 1.166 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.9298, allocations: 36.11 kB / 1.166 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.9298, allocations: 1.344 kB / 1.166 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.9298, allocations: 5.5 kB / 1.166 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.9298, allocations: 4 kB / 1.166 GB, free: 3.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.9299, allocations: 3.938 kB / 1.166 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.9302, allocations: 208.7 kB / 1.166 GB, free: 3.449 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.9302, allocations: 91.66 kB / 1.166 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.9303, allocations: 5.719 kB / 1.166 GB, free: 3.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.9304, allocations: 4.219 kB / 1.166 GB, free: 3.348 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.9304, allocations: 14.16 kB / 1.166 GB, free: 3.344 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.9305, allocations: 13.53 kB / 1.166 GB, free: 3.336 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.318e-05/0.9305, allocations: 78.77 kB / 1.166 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.603e-06/0.9305, allocations: 0 / 1.166 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002426/0.9308, allocations: 34.12 kB / 1.166 GB, free: 3.25 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,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 (19): * Single equations (assignments): 19 * 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.0001457/0.9309, allocations: 110.3 kB / 1.166 GB, free: 3.152 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002331/0.9312, allocations: 117.8 kB / 1.166 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9312, allocations: 4.094 kB / 1.166 GB, free: 3.117 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 7.525e-05/0.9313, allocations: 55.8 kB / 1.166 GB, free: 3.102 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.9315, allocations: 15.84 kB / 1.166 GB, free: 3.098 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000862/0.9324, allocations: 0.5756 MB / 1.167 GB, free: 2.633 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.9327, allocations: 0.7021 MB / 1.168 GB, free: 1.934 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.9327, allocations: 16.97 kB / 1.168 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.9327, allocations: 0 / 1.168 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of Templates: time 0.002801/0.9355, allocations: 1.295 MB / 1.169 GB, free: 1.824 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches