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: "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007656/0.007656, allocations: 96.62 kB / 15.73 MB, free: 6.055 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.002061/0.002061, allocations: 195.4 kB / 16.68 MB, free: 5.977 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.876/2.876, allocations: 482.4 MB / 0.7548 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001915, allocations: 64.08 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2762, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002258/0.2785, allocations: 1.332 MB / 1.243 GB, free: 8.863 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6577/0.9362, allocations: 148.1 MB / 1.387 GB, free: 7.02 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.854e-05/0.9362, allocations: 0 / 1.387 GB, free: 7.02 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 3.177e-05/0.9363, allocations: 1.875 kB / 1.387 GB, free: 7.02 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 8.985e-05/0.9364, allocations: 18.06 kB / 1.387 GB, free: 7.008 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008741/0.9373, allocations: 328 kB / 1.388 GB, free: 6.793 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.9374, allocations: 71.81 kB / 1.388 GB, free: 6.754 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 3.016e-05/0.9374, allocations: 4.406 kB / 1.388 GB, free: 6.754 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 4.976e-05/0.9375, allocations: 31.88 kB / 1.388 GB, free: 6.738 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.9376, allocations: 35.77 kB / 1.388 GB, free: 6.715 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.9376, allocations: 2.781 kB / 1.388 GB, free: 6.715 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000798/0.9384, allocations: 410.4 kB / 1.388 GB, free: 6.492 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.9385, allocations: 13.39 kB / 1.388 GB, free: 6.484 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 4.841e-05/0.9385, allocations: 31.03 kB / 1.388 GB, free: 6.465 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.9388, allocations: 153.6 kB / 1.388 GB, free: 6.395 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.9388, allocations: 0 / 1.388 GB, free: 6.395 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.002e-06/0.9389, allocations: 2.156 kB / 1.388 GB, free: 6.395 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.9389, allocations: 1.281 kB / 1.388 GB, free: 6.395 MB / 1.092 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.0004553/0.9393, allocations: 391.8 kB / 1.389 GB, free: 5.996 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.9394, allocations: 9 kB / 1.389 GB, free: 5.996 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.9394, allocations: 41.12 kB / 1.389 GB, free: 5.949 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003866/0.9398, allocations: 43.02 kB / 1.389 GB, free: 5.93 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.9399, allocations: 169.7 kB / 1.389 GB, free: 5.727 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.94, allocations: 6.312 kB / 1.389 GB, free: 5.723 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.94, allocations: 14.36 kB / 1.389 GB, free: 5.715 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.9402, allocations: 73.78 kB / 1.389 GB, free: 5.66 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-06/0.9402, allocations: 0 / 1.389 GB, free: 5.66 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.9402, allocations: 0.9688 kB / 1.389 GB, free: 5.66 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.9402, allocations: 1.469 kB / 1.389 GB, free: 5.66 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.582e-05/0.9403, allocations: 54.39 kB / 1.389 GB, free: 5.633 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.9405, allocations: 188.1 kB / 1.389 GB, free: 5.414 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.9407, allocations: 92.48 kB / 1.389 GB, free: 5.359 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.567e-05/0.9408, allocations: 32.59 kB / 1.389 GB, free: 5.34 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002315/0.941, allocations: 175.8 kB / 1.39 GB, free: 5.145 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.941, allocations: 37.12 kB / 1.39 GB, free: 5.102 MB / 1.092 GB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.9411, allocations: 3.938 kB / 1.39 GB, free: 5.098 MB / 1.092 GB Notification: Performance of matching and sorting (n=19): time 0.001284/0.9423, allocations: 0.5442 MB / 1.39 GB, free: 4.691 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.9424, allocations: 54.12 kB / 1.39 GB, free: 4.629 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.9425, allocations: 100.3 kB / 1.39 GB, free: 4.523 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.9425, allocations: 34.95 kB / 1.39 GB, free: 4.484 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.9425, allocations: 81.83 kB / 1.39 GB, free: 4.402 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 6.887e-05/0.9426, allocations: 75.52 kB / 1.391 GB, free: 4.336 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.9427, allocations: 43.27 kB / 1.391 GB, free: 4.301 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.9428, allocations: 322.1 kB / 1.391 GB, free: 3.98 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.58e-05/0.9429, allocations: 36.25 kB / 1.391 GB, free: 3.965 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.254e-05/0.943, allocations: 72.91 kB / 1.391 GB, free: 3.91 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.9432, allocations: 109.4 kB / 1.391 GB, free: 3.844 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.9432, allocations: 0 / 1.391 GB, free: 3.844 MB / 1.092 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000236/0.9434, allocations: 164.5 kB / 1.391 GB, free: 3.75 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.9434, allocations: 10.28 kB / 1.391 GB, free: 3.746 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.9434, allocations: 1.219 kB / 1.391 GB, free: 3.746 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.9435, allocations: 2.219 kB / 1.391 GB, free: 3.746 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.9436, allocations: 40.08 kB / 1.391 GB, free: 3.738 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.9436, allocations: 1.5 kB / 1.391 GB, free: 3.738 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.07e-05/0.9437, allocations: 9 kB / 1.391 GB, free: 3.73 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.9437, allocations: 5.25 kB / 1.391 GB, free: 3.73 MB / 1.092 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.0001018/0.9438, allocations: 119.6 kB / 1.391 GB, free: 3.609 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.9439, allocations: 16.09 kB / 1.391 GB, free: 3.598 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.9439, allocations: 21.94 kB / 1.391 GB, free: 3.582 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.9439, allocations: 1.469 kB / 1.391 GB, free: 3.582 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.9439, allocations: 5.375 kB / 1.391 GB, free: 3.578 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.9439, allocations: 3.938 kB / 1.391 GB, free: 3.574 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.9441, allocations: 192.7 kB / 1.392 GB, free: 3.355 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.9441, allocations: 1.156 kB / 1.392 GB, free: 3.355 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.9443, allocations: 34.36 kB / 1.392 GB, free: 3.352 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.9443, allocations: 1.219 kB / 1.392 GB, free: 3.352 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.9444, allocations: 5.188 kB / 1.392 GB, free: 3.348 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.9444, allocations: 2.25 kB / 1.392 GB, free: 3.348 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.9444, allocations: 7.984 kB / 1.392 GB, free: 3.34 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003064/0.9447, allocations: 210.8 kB / 1.392 GB, free: 3.203 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 8.142e-05/0.9448, allocations: 91.06 kB / 1.392 GB, free: 3.102 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.9448, allocations: 1.406 kB / 1.392 GB, free: 3.102 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.9449, allocations: 12.11 kB / 1.392 GB, free: 3.094 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.698e-05/0.945, allocations: 19.78 kB / 1.392 GB, free: 3.082 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.945, allocations: 9.719 kB / 1.392 GB, free: 3.078 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.751e-05/0.945, allocations: 80.66 kB / 1.392 GB, free: 3 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.3e-07/0.945, allocations: 0 / 1.392 GB, free: 3 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0002248/0.9453, allocations: 30 kB / 1.392 GB, free: 2.992 MB / 1.092 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.0006118/0.9459, allocations: 0.751 MB / 1.393 GB, free: 2.316 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.000189/0.9461, allocations: 107 kB / 1.393 GB, free: 2.277 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9461, allocations: 1.594 kB / 1.393 GB, free: 2.277 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 8.218e-05/0.9462, allocations: 61.73 kB / 1.393 GB, free: 2.25 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.9464, allocations: 15.39 kB / 1.393 GB, free: 2.242 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.9483, allocations: 1.814 MB / 1.395 GB, free: 0.6523 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.9487, allocations: 0.6975 MB / 1.396 GB, free: 15.95 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0001051/0.9488, allocations: 29.7 kB / 1.396 GB, free: 15.93 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.626e-05/0.9488, allocations: 23.84 kB / 1.396 GB, free: 15.91 MB / 1.107 GB Notification: Performance of SimCode: time 2.054e-06/0.9489, allocations: 0 / 1.396 GB, free: 15.91 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.9719, allocations: 2.428 MB / 1.398 GB, free: 14.64 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/8.684, allocations: 21.83 kB / 1.398 GB, free: 14.62 MB / 1.107 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.csv","/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