Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001497/0.001497, allocations: 108.1 kB / 16.27 MB, free: 6.406 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.001472/0.001472, allocations: 190.8 kB / 17.2 MB, free: 5.973 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.383/1.383, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.717/2.717, allocations: 482.4 MB / 0.7553 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 71.03 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7355/0.7375, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002235/0.7398, allocations: 1.334 MB / 1.084 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1788/0.9186, allocations: 148.1 MB / 1.229 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.333e-05/0.9187, allocations: 0 / 1.229 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.564e-05/0.9188, allocations: 7.922 kB / 1.229 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.9191, allocations: 11.92 kB / 1.229 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.9204, allocations: 330.6 kB / 1.229 GB, free: 8.66 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.9206, allocations: 67.7 kB / 1.229 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.063e-05/0.9207, allocations: 4 kB / 1.229 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.098e-05/0.9207, allocations: 35.84 kB / 1.229 GB, free: 8.555 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.9209, allocations: 31.89 kB / 1.229 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.9209, allocations: 4 kB / 1.229 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009729/0.9219, allocations: 414.8 kB / 1.23 GB, free: 8.113 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.646e-05/0.9219, allocations: 11.98 kB / 1.23 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.797e-05/0.922, allocations: 31.84 kB / 1.23 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.9224, allocations: 161.5 kB / 1.23 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.9224, allocations: 0 / 1.23 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9224, allocations: 0 / 1.23 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.9224, allocations: 0 / 1.23 GB, free: 7.914 MB / 0.9512 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.0005385/0.9229, allocations: 395.3 kB / 1.23 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.923, allocations: 12.03 kB / 1.23 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004202/0.9234, allocations: 32.91 kB / 1.23 GB, free: 7.438 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.9236, allocations: 160.4 kB / 1.23 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.9236, allocations: 7.938 kB / 1.23 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.9236, allocations: 15.89 kB / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.9238, allocations: 77.66 kB / 1.231 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.9238, allocations: 0 / 1.231 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.9238, allocations: 0 / 1.231 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.9239, allocations: 11.88 kB / 1.231 GB, free: 7.125 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.532e-05/0.924, allocations: 47.95 kB / 1.231 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.9242, allocations: 189.5 kB / 1.231 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.9244, allocations: 82.61 kB / 1.231 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.798e-05/0.9244, allocations: 32.94 kB / 1.231 GB, free: 6.719 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002479/0.9247, allocations: 182.1 kB / 1.231 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.9247, allocations: 38.56 kB / 1.231 GB, free: 6.457 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.9247, allocations: 0 / 1.231 GB, free: 6.457 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001346/0.9261, allocations: 0.538 MB / 1.232 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.9261, allocations: 51.41 kB / 1.232 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.062e-05/0.9262, allocations: 105.8 kB / 1.232 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.9263, allocations: 29.7 kB / 1.232 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.692e-05/0.9263, allocations: 84.52 kB / 1.232 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.149e-05/0.9264, allocations: 59.02 kB / 1.232 GB, free: 5.512 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-05/0.9264, allocations: 49.61 kB / 1.232 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.9266, allocations: 327 kB / 1.232 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.496e-05/0.9267, allocations: 35.92 kB / 1.232 GB, free: 5.094 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.557e-05/0.9268, allocations: 65.23 kB / 1.232 GB, free: 5.02 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.9269, allocations: 123.3 kB / 1.233 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.9269, allocations: 0 / 1.233 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002311/0.9272, allocations: 157.5 kB / 1.233 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.9272, allocations: 12 kB / 1.233 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.9272, allocations: 0 / 1.233 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.9272, allocations: 3.938 kB / 1.233 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.9274, allocations: 43.86 kB / 1.233 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.9274, allocations: 4 kB / 1.233 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.825e-05/0.9275, allocations: 7.938 kB / 1.233 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.9275, allocations: 8 kB / 1.233 GB, free: 4.648 MB / 0.9512 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 0.0001019/0.9276, allocations: 121.8 kB / 1.233 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.9276, allocations: 7.984 kB / 1.233 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.752e-05/0.9277, allocations: 20.44 kB / 1.233 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.9277, allocations: 4 kB / 1.233 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.9277, allocations: 3.984 kB / 1.233 GB, free: 4.488 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9277, allocations: 3.938 kB / 1.233 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.9279, allocations: 197.6 kB / 1.233 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.9279, allocations: 0 / 1.233 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/0.9281, allocations: 31.98 kB / 1.233 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.9281, allocations: 4 kB / 1.233 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.9281, allocations: 4 kB / 1.233 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9281, allocations: 0 / 1.233 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9282, allocations: 4 kB / 1.233 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.9285, allocations: 218.6 kB / 1.233 GB, free: 3.969 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.762e-05/0.9286, allocations: 89.16 kB / 1.233 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.9286, allocations: 0 / 1.233 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.9287, allocations: 8 kB / 1.233 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.912e-05/0.9288, allocations: 15.92 kB / 1.233 GB, free: 3.84 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.9288, allocations: 11.98 kB / 1.233 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.913e-05/0.9288, allocations: 79.28 kB / 1.234 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9288, allocations: 0 / 1.234 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002239/0.9291, allocations: 32 kB / 1.234 GB, free: 3.719 MB / 0.9512 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.0001451/0.9292, allocations: 103.9 kB / 1.234 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002326/0.9294, allocations: 115.9 kB / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.9295, allocations: 0 / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.784e-05/0.9295, allocations: 62.23 kB / 1.234 GB, free: 3.434 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.9298, allocations: 12 kB / 1.234 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008856/0.9307, allocations: 0.5455 MB / 1.234 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.931, allocations: 0.7086 MB / 1.235 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.9311, allocations: 15.44 kB / 1.235 GB, free: 2.094 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.9311, allocations: 4 kB / 1.235 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of Templates: time 0.003033/0.9341, allocations: 1.288 MB / 1.236 GB, free: 0.7969 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches