Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",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.004134/0.004134, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001059/0.00106, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 278.9 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9446/0.9446, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 99.83 kB / 0.6809 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3758, allocations: 86.97 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002063/0.3779, allocations: 1.264 MB / 0.7671 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002764/0.3806, allocations: 2.493 MB / 0.7695 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.215e-05/0.3807, allocations: 0 / 0.7695 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.518e-05/0.3807, allocations: 3.938 kB / 0.7696 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.817e-05/0.3808, allocations: 0 / 0.7696 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.3813, allocations: 147.3 kB / 0.7697 GB, free: 15.93 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.499e-05/0.3814, allocations: 27.92 kB / 0.7697 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.203e-05/0.3814, allocations: 4 kB / 0.7697 GB, free: 15.9 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.557e-05/0.3815, allocations: 23.91 kB / 0.7697 GB, free: 15.88 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.665e-05/0.3815, allocations: 11.98 kB / 0.7698 GB, free: 15.87 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.967e-06/0.3815, allocations: 4 kB / 0.7698 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002882/0.3818, allocations: 119.7 kB / 0.7699 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.334e-05/0.3819, allocations: 7.938 kB / 0.7699 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.082e-05/0.3819, allocations: 19.92 kB / 0.7699 GB, free: 15.72 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.3821, allocations: 87.14 kB / 0.77 GB, free: 15.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3821, allocations: 3.938 kB / 0.77 GB, free: 15.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3821, allocations: 0 / 0.77 GB, free: 15.64 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.3821, allocations: 0 / 0.77 GB, free: 15.64 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.0003537/0.3825, allocations: 353 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3825, allocations: 8.031 kB / 0.7703 GB, free: 15.24 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.421e-05/0.3826, allocations: 42.73 kB / 0.7704 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.3828, allocations: 8.938 kB / 0.7704 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.815e-05/0.3829, allocations: 160.4 kB / 0.7705 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.3829, allocations: 16.3 kB / 0.7706 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.3829, allocations: 8.375 kB / 0.7706 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.383, allocations: 72.14 kB / 0.7706 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.3831, allocations: 0 / 0.7706 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.3831, allocations: 0 / 0.7706 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3831, allocations: 0 / 0.7706 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.086e-05/0.3831, allocations: 19.92 kB / 0.7706 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005323/0.3837, allocations: 474.8 kB / 0.7711 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/0.3838, allocations: 71.78 kB / 0.7712 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.178e-05/0.3839, allocations: 26.58 kB / 0.7712 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.3839, allocations: 3.938 kB / 0.7712 GB, free: 14.19 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.3839, allocations: 30.56 kB / 0.7712 GB, free: 14.15 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.3839, allocations: 4 kB / 0.7712 GB, free: 14.15 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.000583/0.3845, allocations: 306.5 kB / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.3846, allocations: 102.8 kB / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.919e-05/0.3846, allocations: 101.8 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3846, allocations: 25.7 kB / 0.7717 GB, free: 13.53 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.204e-05/0.3847, allocations: 96.08 kB / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.3847, allocations: 27.73 kB / 0.7719 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.3848, allocations: 21.72 kB / 0.7719 GB, free: 13.38 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.934e-05/0.3849, allocations: 330.8 kB / 0.7722 GB, free: 13.05 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.049e-05/0.3849, allocations: 15.94 kB / 0.7722 GB, free: 13.03 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.574e-05/0.3849, allocations: 53.08 kB / 0.7723 GB, free: 12.96 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.378e-05/0.385, allocations: 77.58 kB / 0.7723 GB, free: 12.87 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.385, allocations: 0 / 0.7723 GB, free: 12.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001335/0.3852, allocations: 93.56 kB / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.3852, allocations: 7.984 kB / 0.7724 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.3852, allocations: 0 / 0.7724 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3852, allocations: 4 kB / 0.7724 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.811e-05/0.3853, allocations: 16.12 kB / 0.7725 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.3853, allocations: 11.94 kB / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.038e-05/0.3854, allocations: 3.953 kB / 0.7725 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.3854, allocations: 7.938 kB / 0.7725 GB, free: 12.72 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.781e-05/0.3855, allocations: 121.8 kB / 0.7726 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.3855, allocations: 8 kB / 0.7726 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.3856, allocations: 7.562 kB / 0.7726 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.3856, allocations: 0 / 0.7726 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3856, allocations: 4 kB / 0.7726 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3856, allocations: 4 kB / 0.7726 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003249/0.3859, allocations: 173.6 kB / 0.7728 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3859, allocations: 0 / 0.7728 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.664e-05/0.386, allocations: 23.92 kB / 0.7728 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.386, allocations: 0 / 0.7728 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.386, allocations: 0 / 0.7728 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3861, allocations: 7.938 kB / 0.7728 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3861, allocations: 0 / 0.7728 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.3863, allocations: 342 kB / 0.7731 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.3863, allocations: 77.11 kB / 0.7732 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.3863, allocations: 4 kB / 0.7732 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.3865, allocations: 8.031 kB / 0.7732 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.692e-05/0.3866, allocations: 11.88 kB / 0.7732 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.3866, allocations: 7.938 kB / 0.7732 GB, free: 11.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.033e-05/0.3866, allocations: 79.28 kB / 0.7733 GB, free: 11.76 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3866, allocations: 4 kB / 0.7733 GB, free: 11.76 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003276/0.387, allocations: 12 kB / 0.7733 GB, free: 11.75 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0004231/0.3874, allocations: 0.8665 MB / 0.7742 GB, free: 10.85 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00011/0.3875, allocations: 48.44 kB / 0.7742 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3875, allocations: 0 / 0.7742 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.808e-05/0.3875, allocations: 19.94 kB / 0.7742 GB, free: 10.79 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.388, allocations: 17.5 kB / 0.7743 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.3894, allocations: 1.696 MB / 0.7759 GB, free: 8.953 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3896, allocations: 0.6807 MB / 0.7766 GB, free: 8.246 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.395e-05/0.3897, allocations: 11.94 kB / 0.7766 GB, free: 8.234 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.65e-05/0.3897, allocations: 19.42 kB / 0.7766 GB, free: 8.219 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.3897, allocations: 0 / 0.7766 GB, free: 8.219 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.4064, allocations: 1.723 MB / 0.7783 GB, free: 6.684 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.241/7.648, allocations: 3.156 kB / 0.7783 GB, free: 6.684 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1)