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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.0009941/0.0009941, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001103/0.001103, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.248/3.248, allocations: 409.2 MB / 0.6838 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003921, allocations: 11.98 kB / 0.8375 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8088/0.8092, allocations: 146.8 MB / 0.9809 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001452/0.8107, allocations: 1.023 MB / 0.9819 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1566/0.9673, allocations: 125.2 MB / 1.104 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.287e-05/0.9674, allocations: 0 / 1.104 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.554e-05/0.9675, allocations: 3.938 kB / 1.104 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-05/0.9675, allocations: 11.97 kB / 1.104 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008115/0.9684, allocations: 235.3 kB / 1.104 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.769e-05/0.9684, allocations: 43.92 kB / 1.104 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.252e-05/0.9685, allocations: 3.938 kB / 1.104 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.209e-05/0.9685, allocations: 31.86 kB / 1.104 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.492e-05/0.9687, allocations: 31.89 kB / 1.104 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.9687, allocations: 8 kB / 1.104 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000714/0.9694, allocations: 279.5 kB / 1.105 GB, free: 7.117 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.308e-05/0.9695, allocations: 11.98 kB / 1.105 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.018e-05/0.9695, allocations: 37.7 kB / 1.105 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.9697, allocations: 93.94 kB / 1.105 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.9697, allocations: 0 / 1.105 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.258e-06/0.9697, allocations: 4 kB / 1.105 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.9698, allocations: 7.875 kB / 1.105 GB, free: 6.965 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.0004653/0.9702, allocations: 375.2 kB / 1.105 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.9703, allocations: 12.03 kB / 1.105 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.06e-05/0.9703, allocations: 38.55 kB / 1.105 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004289/0.9708, allocations: 35.88 kB / 1.105 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.9709, allocations: 159.1 kB / 1.105 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.9709, allocations: 11.95 kB / 1.105 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.971, allocations: 11.98 kB / 1.105 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.9712, allocations: 73.66 kB / 1.106 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.9712, allocations: 4 kB / 1.106 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.9712, allocations: 0 / 1.106 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.9712, allocations: 7.938 kB / 1.106 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.36e-05/0.9713, allocations: 51.88 kB / 1.106 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002085/0.9715, allocations: 193.5 kB / 1.106 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.9717, allocations: 82.61 kB / 1.106 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.468e-05/0.9718, allocations: 16.03 kB / 1.106 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.9718, allocations: 42.5 kB / 1.106 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.9718, allocations: 0 / 1.106 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001342/0.9732, allocations: 0.5383 MB / 1.106 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.9732, allocations: 55.41 kB / 1.106 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.444e-05/0.9733, allocations: 97.84 kB / 1.107 GB, free: 4.941 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.9733, allocations: 29.7 kB / 1.107 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.245e-05/0.9734, allocations: 84.52 kB / 1.107 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.9734, allocations: 63.02 kB / 1.107 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.453e-06/0.9734, allocations: 4 kB / 1.107 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.9736, allocations: 326.8 kB / 1.107 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.345e-05/0.9736, allocations: 43.95 kB / 1.107 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.104e-05/0.9737, allocations: 67.95 kB / 1.107 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.757e-05/0.9738, allocations: 43.98 kB / 1.107 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.9738, allocations: 0 / 1.107 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002213/0.9741, allocations: 165.4 kB / 1.107 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.9741, allocations: 4 kB / 1.107 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.9741, allocations: 4 kB / 1.107 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.9741, allocations: 7.938 kB / 1.107 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.9743, allocations: 39.92 kB / 1.107 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.9743, allocations: 4 kB / 1.107 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.597e-05/0.9744, allocations: 4 kB / 1.107 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.9744, allocations: 4 kB / 1.107 GB, free: 4.027 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.775e-05/0.9745, allocations: 127 kB / 1.108 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.9745, allocations: 19.78 kB / 1.108 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.019e-05/0.9746, allocations: 16.44 kB / 1.108 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.9746, allocations: 0 / 1.108 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.9746, allocations: 8 kB / 1.108 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.9746, allocations: 0 / 1.108 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.9748, allocations: 193.6 kB / 1.108 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.9748, allocations: 0 / 1.108 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.975, allocations: 35.92 kB / 1.108 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.975, allocations: 7.953 kB / 1.108 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.975, allocations: 4 kB / 1.108 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.975, allocations: 0 / 1.108 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.975, allocations: 3.984 kB / 1.108 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.9753, allocations: 203.9 kB / 1.108 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.488e-05/0.9754, allocations: 93.06 kB / 1.108 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.9754, allocations: 7.953 kB / 1.108 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.9756, allocations: 11.98 kB / 1.108 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.9756, allocations: 7.984 kB / 1.108 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.9756, allocations: 8 kB / 1.108 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.212e-05/0.9757, allocations: 79.28 kB / 1.108 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9757, allocations: 0 / 1.108 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002179/0.9759, allocations: 32.09 kB / 1.108 GB, free: 3.098 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005559/0.9764, allocations: 0.7392 MB / 1.109 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001905/0.9766, allocations: 112 kB / 1.109 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/0.9767, allocations: 4 kB / 1.109 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.889e-05/0.9767, allocations: 51.92 kB / 1.109 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.977, allocations: 13.67 kB / 1.109 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.9791, allocations: 1.455 MB / 1.111 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.9795, allocations: 0.7089 MB / 1.111 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002246/0.9798, allocations: 20.64 kB / 1.111 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.544e-05/0.9798, allocations: 23.44 kB / 1.111 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/0.9799, allocations: 3.938 kB / 1.111 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.9983, allocations: 2.098 MB / 1.113 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002913/0.9987, allocations: 184.6 kB / 1.114 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.893, allocations: 3.938 kB / 1.114 GB, free: 13.63 MB / 0.8731 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat does not exist to compare? outputFormat=mat