Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_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.001457/0.001457, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00174/0.00174, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.32/1.32, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 390.2 MB / 0.6643 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5561/0.5574, allocations: 140.4 MB / 0.949 GB, free: 9.324 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002015/0.5595, allocations: 1.399 MB / 0.9504 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.145/0.7045, allocations: 145.8 MB / 1.093 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.397e-05/0.7046, allocations: 0 / 1.093 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.7e-05/0.7046, allocations: 0 / 1.093 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.325e-05/0.7048, allocations: 15.91 kB / 1.093 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008567/0.7056, allocations: 298.9 kB / 1.093 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.7057, allocations: 87.73 kB / 1.093 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.147e-05/0.7058, allocations: 4 kB / 1.093 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.794e-05/0.7058, allocations: 27.91 kB / 1.093 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.807e-05/0.7059, allocations: 43.83 kB / 1.093 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.131e-05/0.7059, allocations: 0 / 1.093 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008217/0.7068, allocations: 498.7 kB / 1.094 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.593e-05/0.7068, allocations: 11.98 kB / 1.094 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/0.7069, allocations: 31.84 kB / 1.094 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.7072, allocations: 189.8 kB / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7072, allocations: 0 / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.71e-07/0.7072, allocations: 0 / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.7072, allocations: 0 / 1.094 GB, free: 13.27 MB / 0.8575 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.000417/0.7076, allocations: 391.3 kB / 1.094 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.7077, allocations: 12.03 kB / 1.094 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.497e-05/0.7077, allocations: 38.73 kB / 1.094 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003818/0.7081, allocations: 32.81 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.807e-05/0.7082, allocations: 176.1 kB / 1.095 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.7082, allocations: 8 kB / 1.095 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.7083, allocations: 11.94 kB / 1.095 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.7084, allocations: 77.59 kB / 1.095 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.7084, allocations: 0 / 1.095 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.7085, allocations: 0 / 1.095 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.7085, allocations: 4 kB / 1.095 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.951e-05/0.7086, allocations: 43.95 kB / 1.095 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.7088, allocations: 201.4 kB / 1.095 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.7089, allocations: 94.61 kB / 1.095 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.61e-05/0.709, allocations: 32.84 kB / 1.095 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002136/0.7092, allocations: 174.2 kB / 1.095 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.7092, allocations: 38.56 kB / 1.095 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.7093, allocations: 0 / 1.095 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001258/0.7105, allocations: 0.5387 MB / 1.096 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.7106, allocations: 55.41 kB / 1.096 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.09e-05/0.7106, allocations: 101.8 kB / 1.096 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.7106, allocations: 33.7 kB / 1.096 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.686e-05/0.7107, allocations: 84.45 kB / 1.096 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.387e-05/0.7107, allocations: 70.98 kB / 1.096 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.7108, allocations: 33.72 kB / 1.096 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.011e-05/0.7109, allocations: 322.8 kB / 1.096 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.384e-05/0.711, allocations: 39.97 kB / 1.096 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-05/0.7111, allocations: 72.95 kB / 1.097 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.7112, allocations: 111.4 kB / 1.097 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.7112, allocations: 0 / 1.097 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000221/0.7114, allocations: 161.5 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.7115, allocations: 5.875 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.7115, allocations: 0 / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.7115, allocations: 4 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.7117, allocations: 43.92 kB / 1.097 GB, free: 9.973 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.7117, allocations: 3.938 kB / 1.097 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.534e-05/0.7117, allocations: 8 kB / 1.097 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.7117, allocations: 4 kB / 1.097 GB, free: 9.957 MB / 0.8575 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 8.374e-05/0.7118, allocations: 121.8 kB / 1.097 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.7119, allocations: 7.906 kB / 1.097 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.7119, allocations: 24.42 kB / 1.097 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.7119, allocations: 0 / 1.097 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.7119, allocations: 3.938 kB / 1.097 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7119, allocations: 4 kB / 1.097 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.7121, allocations: 197.6 kB / 1.097 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7121, allocations: 0 / 1.097 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.7123, allocations: 39.92 kB / 1.097 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7123, allocations: 0 / 1.097 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.7123, allocations: 8 kB / 1.097 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.7123, allocations: 160 / 1.097 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.7123, allocations: 3.938 kB / 1.097 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002829/0.7126, allocations: 211.2 kB / 1.097 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.7127, allocations: 97.06 kB / 1.098 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.7127, allocations: 0 / 1.098 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.7129, allocations: 11.98 kB / 1.098 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.68e-05/0.7129, allocations: 11.92 kB / 1.098 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.7129, allocations: 8 kB / 1.098 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.911e-05/0.713, allocations: 79.28 kB / 1.098 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.713, allocations: 0 / 1.098 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002223/0.7132, allocations: 24 kB / 1.098 GB, free: 9.023 MB / 0.8575 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.0005143/0.7137, allocations: 0.7484 MB / 1.098 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001807/0.7139, allocations: 122.4 kB / 1.099 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.7139, allocations: 0 / 1.099 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.022e-05/0.714, allocations: 55.92 kB / 1.099 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.7142, allocations: 21.75 kB / 1.099 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.716, allocations: 1.838 MB / 1.1 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.7162, allocations: 0.7011 MB / 1.101 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001343/0.7164, allocations: 32.61 kB / 1.101 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.7164, allocations: 23.44 kB / 1.101 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.7164, allocations: 0 / 1.101 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3206/1.037, allocations: 2.228 MB / 1.103 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/1.037, allocations: 192.9 kB / 1.103 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.677, allocations: 3.938 kB / 1.103 GB, free: 2.93 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(hSteSym),der(hSteCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,X[1],cpCod,cpSym,cvCod,cvSym,der(T),der(X[1]),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time