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.004529/0.004529, allocations: 100.8 kB / 15.73 MB, free: 5.98 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.001294/0.001294, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002225/0.002225, allocations: 282.3 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.9098/0.9098, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 87.86 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.457/0.4588, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002298/0.4612, allocations: 1.271 MB / 0.7671 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003573/0.4648, allocations: 3.246 MB / 0.7703 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.4648, allocations: 0 / 0.7703 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.298e-05/0.4649, allocations: 3.984 kB / 0.7703 GB, free: 15.31 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.034e-05/0.4649, allocations: 7.922 kB / 0.7703 GB, free: 15.3 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.4655, allocations: 111.5 kB / 0.7704 GB, free: 15.2 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.944e-05/0.4656, allocations: 35.86 kB / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.187e-05/0.4656, allocations: 8 kB / 0.7704 GB, free: 15.15 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.752e-05/0.4657, allocations: 19.97 kB / 0.7705 GB, free: 15.13 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.246e-05/0.4658, allocations: 15.92 kB / 0.7705 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.4658, allocations: 0 / 0.7705 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002627/0.466, allocations: 79.8 kB / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.4661, allocations: 4 kB / 0.7706 GB, free: 15.04 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.69e-05/0.4661, allocations: 23.91 kB / 0.7706 GB, free: 15.01 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.4663, allocations: 66.69 kB / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4663, allocations: 0 / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4663, allocations: 3.938 kB / 0.7706 GB, free: 14.95 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.4663, allocations: 4 kB / 0.7706 GB, free: 14.94 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.0004037/0.4667, allocations: 347.4 kB / 0.771 GB, free: 14.55 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4668, allocations: 12.03 kB / 0.771 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.4668, allocations: 34.75 kB / 0.771 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.591e-05/0.4669, allocations: 4.938 kB / 0.771 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.4671, allocations: 160.4 kB / 0.7712 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.4671, allocations: 16.28 kB / 0.7712 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.4671, allocations: 8.375 kB / 0.7712 GB, free: 14.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.4673, allocations: 61.55 kB / 0.7713 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.4673, allocations: 0 / 0.7713 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.4673, allocations: 7.984 kB / 0.7713 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.4673, allocations: 0 / 0.7713 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.681e-05/0.4674, allocations: 19.92 kB / 0.7713 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001807/0.4676, allocations: 173.5 kB / 0.7715 GB, free: 13.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.989e-05/0.4676, allocations: 50.55 kB / 0.7715 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.902e-05/0.4677, allocations: 16.86 kB / 0.7715 GB, free: 13.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000678/0.4684, allocations: 0.591 MB / 0.7721 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.4684, allocations: 42.48 kB / 0.7721 GB, free: 13.14 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.4684, allocations: 0 / 0.7721 GB, free: 13.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0005156/0.4689, allocations: 290.3 kB / 0.7724 GB, free: 12.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.469, allocations: 59.41 kB / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.46e-05/0.4691, allocations: 105.7 kB / 0.7726 GB, free: 12.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.4691, allocations: 25.7 kB / 0.7726 GB, free: 12.59 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.53e-05/0.4691, allocations: 88.06 kB / 0.7727 GB, free: 12.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.4692, allocations: 23.62 kB / 0.7727 GB, free: 12.47 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.4692, allocations: 29.7 kB / 0.7727 GB, free: 12.44 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.17e-05/0.4693, allocations: 310.8 kB / 0.773 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.602e-05/0.4693, allocations: 15.98 kB / 0.773 GB, free: 12.11 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-05/0.4694, allocations: 57.14 kB / 0.7731 GB, free: 12.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.445e-05/0.4695, allocations: 84.97 kB / 0.7732 GB, free: 11.93 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.4695, allocations: 0 / 0.7732 GB, free: 11.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000125/0.4696, allocations: 93.45 kB / 0.7733 GB, free: 11.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.4696, allocations: 8 kB / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.4696, allocations: 0 / 0.7733 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.4697, allocations: 4 kB / 0.7733 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.4698, allocations: 23.98 kB / 0.7733 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.4698, allocations: 0 / 0.7733 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.849e-05/0.4698, allocations: 8.062 kB / 0.7733 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.4698, allocations: 8 kB / 0.7733 GB, free: 11.79 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 6.909e-05/0.4699, allocations: 117.7 kB / 0.7734 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.4699, allocations: 4 kB / 0.7734 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.47, allocations: 7.969 kB / 0.7734 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.47, allocations: 4.281 kB / 0.7734 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.47, allocations: 0 / 0.7734 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.47, allocations: 7.922 kB / 0.7735 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.4702, allocations: 177.7 kB / 0.7736 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4703, allocations: 4.422 kB / 0.7736 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.301e-05/0.4704, allocations: 16 kB / 0.7736 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.4704, allocations: 0 / 0.7736 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.4704, allocations: 11.94 kB / 0.7737 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4704, allocations: 0 / 0.7737 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4704, allocations: 0 / 0.7737 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.4706, allocations: 175.3 kB / 0.7738 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.453e-05/0.4706, allocations: 85.14 kB / 0.7739 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.4706, allocations: 0 / 0.7739 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.4707, allocations: 12 kB / 0.7739 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.4708, allocations: 3.938 kB / 0.7739 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.4708, allocations: 4 kB / 0.7739 GB, free: 11.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.247e-05/0.4708, allocations: 79.27 kB / 0.774 GB, free: 10.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4708, allocations: 0 / 0.774 GB, free: 10.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002326/0.4711, allocations: 16 kB / 0.774 GB, free: 10.98 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.0004729/0.4715, allocations: 0.7123 MB / 0.7747 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001178/0.4717, allocations: 40.2 kB / 0.7747 GB, free: 10.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4717, allocations: 0 / 0.7747 GB, free: 10.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.699e-05/0.4717, allocations: 19.92 kB / 0.7748 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.472, allocations: 22.2 kB / 0.7748 GB, free: 10.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.4734, allocations: 1.516 MB / 0.7763 GB, free: 8.527 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.4737, allocations: 0.6846 MB / 0.7769 GB, free: 7.816 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.537e-05/0.4738, allocations: 11.97 kB / 0.7769 GB, free: 7.805 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.055e-05/0.4738, allocations: 19.44 kB / 0.777 GB, free: 7.789 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.4738, allocations: 3.938 kB / 0.777 GB, free: 7.785 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.4904, allocations: 1.662 MB / 0.7786 GB, free: 6.219 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.001/7.491, allocations: 25.86 kB / 0.7786 GB, free: 6.199 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)