Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.006772/0.006772, allocations: 100.4 kB / 15.73 MB, free: 6.016 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.00176/0.00176, allocations: 186 kB / 16.67 MB, free: 5.934 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002481/0.002481, allocations: 291.9 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9672/0.9672, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002624/0.002624, allocations: 87.86 kB / 0.6809 GB, free: 7.543 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3906, allocations: 86.98 MB / 0.7659 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002173/0.3928, allocations: 1.268 MB / 0.7671 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003596/0.3964, allocations: 3.258 MB / 0.7703 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.3965, allocations: 0 / 0.7703 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.493e-05/0.3965, allocations: 3.938 kB / 0.7703 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.608e-05/0.3966, allocations: 0 / 0.7703 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.397, allocations: 111.5 kB / 0.7704 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.492e-05/0.3971, allocations: 39.84 kB / 0.7704 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.268e-05/0.3971, allocations: 7.984 kB / 0.7704 GB, free: 15.2 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.038e-05/0.3972, allocations: 15.94 kB / 0.7705 GB, free: 15.19 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.595e-05/0.3972, allocations: 15.91 kB / 0.7705 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.446e-06/0.3972, allocations: 4 kB / 0.7705 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002037/0.3974, allocations: 79.81 kB / 0.7706 GB, free: 15.09 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.513e-05/0.3975, allocations: 11.97 kB / 0.7706 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.3975, allocations: 15.94 kB / 0.7706 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.3977, allocations: 67.64 kB / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.624e-06/0.3977, allocations: 0 / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3977, allocations: 0 / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.3977, allocations: 8 kB / 0.7707 GB, free: 14.99 MB / 0.545 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.000383/0.3981, allocations: 348.6 kB / 0.771 GB, free: 14.61 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3981, allocations: 8.031 kB / 0.771 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.3982, allocations: 34.75 kB / 0.771 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.053e-05/0.3983, allocations: 8.922 kB / 0.771 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.3984, allocations: 164.3 kB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.3984, allocations: 4.375 kB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.3984, allocations: 4.375 kB / 0.7712 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.3986, allocations: 61.61 kB / 0.7713 GB, free: 14.28 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.3986, allocations: 3.984 kB / 0.7713 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.3986, allocations: 0 / 0.7713 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3986, allocations: 4 kB / 0.7713 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.713e-05/0.3987, allocations: 15.98 kB / 0.7713 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.3988, allocations: 169.5 kB / 0.7714 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 9.351e-05/0.3989, allocations: 58.56 kB / 0.7715 GB, free: 13.97 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.416e-05/0.399, allocations: 24.78 kB / 0.7715 GB, free: 13.95 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006716/0.3997, allocations: 0.5869 MB / 0.7721 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3997, allocations: 34.56 kB / 0.7721 GB, free: 13.21 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.3997, allocations: 0 / 0.7721 GB, free: 13.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0005467/0.4003, allocations: 306.7 kB / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.4003, allocations: 51.41 kB / 0.7725 GB, free: 12.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.576e-05/0.4004, allocations: 109.7 kB / 0.7726 GB, free: 12.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.4004, allocations: 33.64 kB / 0.7726 GB, free: 12.64 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.796e-05/0.4005, allocations: 88.08 kB / 0.7727 GB, free: 12.55 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.4005, allocations: 31.73 kB / 0.7727 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.4006, allocations: 25.72 kB / 0.7727 GB, free: 12.48 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4007, allocations: 318.8 kB / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.478e-05/0.4007, allocations: 12 kB / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.094e-05/0.4008, allocations: 53.14 kB / 0.7731 GB, free: 12.08 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.086e-05/0.4009, allocations: 77.08 kB / 0.7732 GB, free: 11.99 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.4009, allocations: 0 / 0.7732 GB, free: 11.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001354/0.401, allocations: 93.56 kB / 0.7733 GB, free: 11.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.401, allocations: 7.984 kB / 0.7733 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4011, allocations: 4 kB / 0.7733 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.4011, allocations: 0 / 0.7733 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.37e-05/0.4012, allocations: 19.94 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.4012, allocations: 4 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.725e-05/0.4012, allocations: 8.062 kB / 0.7733 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.4012, allocations: 7.938 kB / 0.7733 GB, free: 11.84 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.4013, allocations: 117.8 kB / 0.7734 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.4014, allocations: 7.953 kB / 0.7734 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.4014, allocations: 12.19 kB / 0.7735 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4014, allocations: 0 / 0.7735 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4014, allocations: 0 / 0.7735 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.4014, allocations: 7.922 kB / 0.7735 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.4017, allocations: 173.7 kB / 0.7736 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4017, allocations: 4 kB / 0.7736 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.913e-05/0.4018, allocations: 19.98 kB / 0.7737 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4018, allocations: 0 / 0.7737 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.4018, allocations: 0 / 0.7737 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.4018, allocations: 0 / 0.7737 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4018, allocations: 0 / 0.7737 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.402, allocations: 175.5 kB / 0.7738 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.4021, allocations: 85.03 kB / 0.7739 GB, free: 11.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.4021, allocations: 8 kB / 0.7739 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.4022, allocations: 4.25 kB / 0.7739 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.4022, allocations: 11.92 kB / 0.7739 GB, free: 11.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.4022, allocations: 4 kB / 0.7739 GB, free: 11.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.4023, allocations: 83.28 kB / 0.774 GB, free: 11.04 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4023, allocations: 0 / 0.774 GB, free: 11.04 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003185/0.4026, allocations: 12 kB / 0.774 GB, free: 11.03 MB / 0.545 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 (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.0004686/0.4031, allocations: 0.7047 MB / 0.7747 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001103/0.4032, allocations: 51.97 kB / 0.7748 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4032, allocations: 0 / 0.7748 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.496e-05/0.4033, allocations: 19.97 kB / 0.7748 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.4036, allocations: 11.94 kB / 0.7748 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.4051, allocations: 1.532 MB / 0.7763 GB, free: 8.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.4054, allocations: 0.6885 MB / 0.777 GB, free: 7.855 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.062e-05/0.4055, allocations: 4 kB / 0.777 GB, free: 7.852 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.4055, allocations: 15.44 kB / 0.777 GB, free: 7.84 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4055, allocations: 0 / 0.777 GB, free: 7.84 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4448/0.8504, allocations: 1.67 MB / 0.7786 GB, free: 6.273 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.76, allocations: 13.98 kB / 0.7786 GB, free: 6.262 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)