Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.001268/0.001268, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 197 kB / 16.53 MB, free: 6.664 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.172/1.172, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.313/2.313, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.94 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2504, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.00471/0.2551, allocations: 4.05 MB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002364/0.2575, allocations: 2.426 MB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.537e-05/0.2576, allocations: 4 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.2578, allocations: 55.66 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.258, allocations: 99.41 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009368/0.2589, allocations: 0.5125 MB / 1.06 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2592, allocations: 263.8 kB / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.2593, allocations: 21.48 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.2594, allocations: 111.6 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.2596, allocations: 95.59 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.2596, allocations: 8 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007265/0.2603, allocations: 451.3 kB / 1.061 GB, free: 188 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.285e-05/0.2604, allocations: 39.89 kB / 1.061 GB, free: 148 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.294e-05/0.2605, allocations: 83.64 kB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.261, allocations: 411.2 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.261, allocations: 0 / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.261, allocations: 4 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2611, allocations: 0 / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006283/0.2617, allocations: 0.507 MB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2617, allocations: 8.625 kB / 1.062 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.393e-05/0.2618, allocations: 54.73 kB / 1.062 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.2636, allocations: 176.6 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.2638, allocations: 208.1 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.2638, allocations: 16.7 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.2639, allocations: 12.38 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006033/0.2645, allocations: 308.2 kB / 1.063 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.2645, allocations: 3.938 kB / 1.063 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.2646, allocations: 8 kB / 1.063 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.2646, allocations: 8 kB / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006442/0.2652, allocations: 259.6 kB / 1.063 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.2666, allocations: 1.389 MB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/0.2673, allocations: 194.7 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.2675, allocations: 78.53 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.2675, allocations: 11.89 kB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.2676, allocations: 38.56 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.263e-06/0.2676, allocations: 4 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.0007367/0.2683, allocations: 241.3 kB / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/0.2683, allocations: 55.41 kB / 1.065 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.2685, allocations: 158.2 kB / 1.065 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.2685, allocations: 33.7 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.2686, allocations: 135.9 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.2686, allocations: 55.2 kB / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-05/0.2687, allocations: 57.83 kB / 1.065 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2688, allocations: 322.8 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.2691, allocations: 64.42 kB / 1.066 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.2693, allocations: 150.9 kB / 1.066 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004416/0.2698, allocations: 215.5 kB / 1.066 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2698, allocations: 4 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005425/0.2703, allocations: 258.4 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.2704, allocations: 12 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2704, allocations: 4 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.2704, allocations: 4 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.2707, allocations: 63.89 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2707, allocations: 4 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.2709, allocations: 23.83 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.271, allocations: 15.98 kB / 1.066 GB, free: 10.17 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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 0.0001131/0.2711, allocations: 137.7 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.2711, allocations: 15.81 kB / 1.066 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006113/0.2718, allocations: 227.7 kB / 1.067 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2718, allocations: 7.938 kB / 1.067 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2718, allocations: 0 / 1.067 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2718, allocations: 0 / 1.067 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.2721, allocations: 249.3 kB / 1.067 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2721, allocations: 0 / 1.067 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.2724, allocations: 43.97 kB / 1.067 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2724, allocations: 4 kB / 1.067 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.2724, allocations: 7.984 kB / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2724, allocations: 0 / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2724, allocations: 0 / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/0.2729, allocations: 304.8 kB / 1.067 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.963e-05/0.273, allocations: 100.9 kB / 1.067 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.2731, allocations: 8 kB / 1.067 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.2733, allocations: 15.98 kB / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-05/0.2734, allocations: 7.984 kB / 1.067 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.2734, allocations: 11.98 kB / 1.067 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.004e-05/0.2735, allocations: 118.1 kB / 1.067 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2735, allocations: 0 / 1.067 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003063/0.2738, allocations: 72.06 kB / 1.068 GB, free: 8.77 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (20): * Single equations (assignments): 20 * 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.0008562/0.2747, allocations: 0.8656 MB / 1.068 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005073/0.2752, allocations: 192.3 kB / 1.069 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2752, allocations: 4 kB / 1.069 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.2754, allocations: 83.89 kB / 1.069 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.2759, allocations: 69.75 kB / 1.069 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.2788, allocations: 2.135 MB / 1.071 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.2791, allocations: 0.7173 MB / 1.071 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003242/0.2794, allocations: 53.86 kB / 1.072 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.2795, allocations: 47.42 kB / 1.072 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2795, allocations: 0 / 1.072 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.505/1.785, allocations: 5.147 MB / 1.077 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/13.05, allocations: 20.2 kB / 1.077 GB, free: 15.45 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches