Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",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.001041/0.001041, allocations: 87.84 kB / 15.06 MB, free: 1.082 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.001315/0.001315, allocations: 176.7 kB / 15.96 MB, free: 196 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.453/1.453, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.461/2.461, allocations: 390.4 MB / 0.6655 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003429, allocations: 8 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.845/0.8454, allocations: 142.3 MB / 0.9538 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001436/0.8469, allocations: 0.9768 MB / 0.9548 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003673/0.8506, allocations: 3.049 MB / 0.9578 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.8506, allocations: 0 / 0.9578 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.944e-05/0.8506, allocations: 3.984 kB / 0.9578 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.948e-05/0.8507, allocations: 9.266 kB / 0.9578 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.8511, allocations: 82.5 kB / 0.9579 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.123e-05/0.8512, allocations: 35.48 kB / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.673e-05/0.8513, allocations: 5.391 kB / 0.9579 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.6e-05/0.8513, allocations: 17.19 kB / 0.9579 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.454e-05/0.8514, allocations: 22.88 kB / 0.9579 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.8514, allocations: 2.188 kB / 0.9579 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.8516, allocations: 57.2 kB / 0.958 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.8516, allocations: 6.766 kB / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.8517, allocations: 29.83 kB / 0.958 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.8518, allocations: 36.33 kB / 0.9581 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.8518, allocations: 0 / 0.9581 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.404e-06/0.8518, allocations: 4 kB / 0.9581 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.8518, allocations: 1.406 kB / 0.9581 GB, free: 4.582 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000327/0.8522, allocations: 341.1 kB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.8522, allocations: 6.469 kB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.886e-05/0.8522, allocations: 31.5 kB / 0.9584 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.88e-05/0.8523, allocations: 8.156 kB / 0.9584 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.051e-05/0.8524, allocations: 168 kB / 0.9586 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.8525, allocations: 5.875 kB / 0.9586 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.8525, allocations: 7.25 kB / 0.9586 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.8526, allocations: 53.77 kB / 0.9587 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.8527, allocations: 0 / 0.9587 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.8527, allocations: 5.016 kB / 0.9587 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.8527, allocations: 0.8438 kB / 0.9587 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.725e-05/0.8527, allocations: 23.09 kB / 0.9587 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.8529, allocations: 161.7 kB / 0.9588 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.547e-05/0.853, allocations: 54.83 kB / 0.9589 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.019e-05/0.853, allocations: 19.33 kB / 0.9589 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006163/0.8537, allocations: 0.5996 MB / 0.9595 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.8537, allocations: 35.89 kB / 0.9595 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.8537, allocations: 0 / 0.9595 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005289/0.8542, allocations: 306.7 kB / 0.9598 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.873e-05/0.8543, allocations: 53.22 kB / 0.9599 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.229e-05/0.8543, allocations: 97.42 kB / 0.96 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.8543, allocations: 31.47 kB / 0.96 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.046e-05/0.8544, allocations: 88.05 kB / 0.9601 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.8544, allocations: 23.25 kB / 0.9601 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-06/0.8544, allocations: 1.781 kB / 0.9601 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.8545, allocations: 318.8 kB / 0.9604 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.641e-05/0.8545, allocations: 11.31 kB / 0.9604 GB, free: 2 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.264e-05/0.8546, allocations: 52.98 kB / 0.9605 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.078e-05/0.8546, allocations: 19.36 kB / 0.9605 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.8546, allocations: 4 kB / 0.9605 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000134/0.8548, allocations: 103 kB / 0.9606 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.8548, allocations: 6.656 kB / 0.9606 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8548, allocations: 0.8438 kB / 0.9606 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.8548, allocations: 3.031 kB / 0.9606 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.945e-05/0.8549, allocations: 20.39 kB / 0.9606 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.8549, allocations: 2.219 kB / 0.9606 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.652e-05/0.855, allocations: 1.656 kB / 0.9606 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.855, allocations: 7.75 kB / 0.9606 GB, free: 1.852 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 6.484e-05/0.855, allocations: 121.1 kB / 0.9607 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.8551, allocations: 11.7 kB / 0.9608 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.8551, allocations: 7.969 kB / 0.9608 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.8551, allocations: 1.562 kB / 0.9608 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.8551, allocations: 3.938 kB / 0.9608 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.8551, allocations: 1.375 kB / 0.9608 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.8553, allocations: 173.4 kB / 0.9609 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.8553, allocations: 7.891 kB / 0.9609 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-05/0.8554, allocations: 12.97 kB / 0.961 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.8554, allocations: 4.938 kB / 0.961 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.8555, allocations: 4.922 kB / 0.961 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.8555, allocations: 0 / 0.961 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8555, allocations: 1.281 kB / 0.961 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.8556, allocations: 171.5 kB / 0.9611 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.8557, allocations: 91.22 kB / 0.9612 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.8557, allocations: 1.031 kB / 0.9612 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.8558, allocations: 6.344 kB / 0.9612 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.8558, allocations: 7.047 kB / 0.9612 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.8558, allocations: 6.188 kB / 0.9612 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.569e-05/0.8559, allocations: 77.81 kB / 0.9613 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8559, allocations: 0 / 0.9613 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000238/0.8561, allocations: 10.94 kB / 0.9613 GB, free: 1.137 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.0003445/0.8565, allocations: 0.7266 MB / 0.962 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001277/0.8566, allocations: 42.28 kB / 0.9621 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8566, allocations: 0 / 0.9621 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.549e-05/0.8566, allocations: 14.89 kB / 0.9621 GB, free: 420 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.8569, allocations: 10.42 kB / 0.9621 GB, free: 416 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009406/0.8579, allocations: 0.6753 MB / 0.9628 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.8582, allocations: 0.6902 MB / 0.9634 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.474e-05/0.8583, allocations: 7.25 kB / 0.9634 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.96e-05/0.8583, allocations: 11.09 kB / 0.9634 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.8583, allocations: 4 kB / 0.9635 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.872, allocations: 1.408 MB / 0.9648 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.8723, allocations: 186 kB / 0.965 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.602, allocations: 0 / 0.965 GB, free: 14.15 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat does not exist to compare? outputFormat=mat