Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Sensors.Examples.Density.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_Density",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.001097/0.001098, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.007968/0.007968, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.419/1.419, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 437.8 MB / 0.7121 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003699, allocations: 8 kB / 0.8729 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6939/0.6943, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.1903/0.8846, allocations: 180.4 MB / 1.199 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009793/0.8945, allocations: 6.974 MB / 1.206 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009805/0.8955, allocations: 23.88 kB / 1.206 GB, free: 3.809 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.8966, allocations: 342.1 kB / 1.206 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003273/0.8999, allocations: 1.366 MB / 1.208 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.9026, allocations: 1.048 MB / 1.209 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003638/0.9062, allocations: 2.71 MB / 1.211 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008425/0.9071, allocations: 0.5395 MB / 1.212 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.9086, allocations: 0.7041 MB / 1.213 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.9098, allocations: 0.6088 MB / 1.213 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.029e-05/0.9099, allocations: 28 kB / 1.213 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.9134, allocations: 2.186 MB / 1.215 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.9138, allocations: 247.2 kB / 1.216 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.9142, allocations: 407.8 kB / 1.216 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.9163, allocations: 1.815 MB / 1.218 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.9163, allocations: 4 kB / 1.218 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9163, allocations: 0 / 1.218 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.9164, allocations: 0 / 1.218 GB, free: 7.781 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001748/0.9181, allocations: 1.02 MB / 1.219 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.9182, allocations: 12.03 kB / 1.219 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.9183, allocations: 90.52 kB / 1.219 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001838/0.9201, allocations: 270.8 kB / 1.219 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008599/0.921, allocations: 0.583 MB / 1.22 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.921, allocations: 45.3 kB / 1.22 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.9212, allocations: 52 kB / 1.22 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.9222, allocations: 0.644 MB / 1.22 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.9223, allocations: 0 / 1.22 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.447e-05/0.9223, allocations: 23.94 kB / 1.221 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.9224, allocations: 21.3 kB / 1.221 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.9234, allocations: 0.5282 MB / 1.221 GB, free: 4.379 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.9265, allocations: 2.461 MB / 1.223 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.9272, allocations: 361.4 kB / 1.224 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003999/0.9276, allocations: 249.3 kB / 1.224 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005868/0.9282, allocations: 323.5 kB / 1.224 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.9282, allocations: 34.89 kB / 1.224 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=39): time 1.664e-06/0.9282, allocations: 0 / 1.224 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39): time 0.001352/0.9296, allocations: 0.6311 MB / 1.225 GB, free: 52 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.9297, allocations: 55.41 kB / 1.225 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/0.9303, allocations: 0.4989 MB / 1.226 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.9303, allocations: 41.64 kB / 1.226 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.9307, allocations: 324.4 kB / 1.226 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.9308, allocations: 138.1 kB / 1.226 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.308e-05/0.9308, allocations: 45.69 kB / 1.226 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.931, allocations: 362.8 kB / 1.226 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.9314, allocations: 176.8 kB / 1.227 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.9319, allocations: 283.4 kB / 1.227 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/0.9326, allocations: 476.2 kB / 1.227 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.9326, allocations: 0 / 1.227 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009213/0.9335, allocations: 0.5395 MB / 1.228 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.301e-05/0.9337, allocations: 149 kB / 1.228 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.9337, allocations: 11.92 kB / 1.228 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.9337, allocations: 4.062 kB / 1.228 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007668/0.9345, allocations: 147.8 kB / 1.228 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004909/0.935, allocations: 0.5938 MB / 1.229 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.9356, allocations: 87.58 kB / 1.229 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.9356, allocations: 16 kB / 1.229 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.933e-06/0.9357, allocations: 4 kB / 1.229 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008151/0.9365, allocations: 464.1 kB / 1.229 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.9365, allocations: 4 kB / 1.229 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/0.9365, allocations: 11.92 kB / 1.229 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.937, allocations: 131.9 kB / 1.229 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.937, allocations: 4 kB / 1.229 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/0.9376, allocations: 79.55 kB / 1.229 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.9377, allocations: 20 kB / 1.229 GB, free: 11.27 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003155/0.938, allocations: 317.8 kB / 1.23 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.47e-05/0.9381, allocations: 55.34 kB / 1.23 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009488/0.9391, allocations: 0.4944 MB / 1.23 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.9391, allocations: 4 kB / 1.23 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.9391, allocations: 0 / 1.23 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009204/0.94, allocations: 0.7183 MB / 1.231 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.9421, allocations: 1.288 MB / 1.232 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.9421, allocations: 0 / 1.232 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/0.9428, allocations: 136.1 kB / 1.232 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.9428, allocations: 4 kB / 1.232 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.416e-05/0.9428, allocations: 11.98 kB / 1.232 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000325/0.9431, allocations: 0.6015 MB / 1.233 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.9432, allocations: 4.062 kB / 1.233 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.9444, allocations: 0.8137 MB / 1.234 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.9446, allocations: 180.4 kB / 1.234 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/0.9447, allocations: 19.94 kB / 1.234 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.9452, allocations: 59.8 kB / 1.234 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.887e-05/0.9453, allocations: 23.97 kB / 1.234 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.9453, allocations: 15.98 kB / 1.234 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004504/0.9458, allocations: 350.8 kB / 1.234 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.793e-06/0.9458, allocations: 0 / 1.234 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009246/0.9467, allocations: 367.1 kB / 1.235 GB, free: 5.57 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senDenFlo.d) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001849/0.9486, allocations: 1.468 MB / 1.236 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001431/0.95, allocations: 0.6721 MB / 1.237 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.95, allocations: 0 / 1.237 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.9505, allocations: 233.2 kB / 1.237 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.9525, allocations: 351.5 kB / 1.237 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007311/0.9598, allocations: 5.481 MB / 1.243 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.9604, allocations: 0.9533 MB / 1.244 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007345/0.9612, allocations: 201 kB / 1.244 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.9615, allocations: 227.3 kB / 1.244 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.9615, allocations: 0 / 1.244 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5446/1.506, allocations: 16.93 MB / 1.261 GB, free: 229.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/1.506, allocations: 264 kB / 1.261 GB, free: 229.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/3.774, allocations: 0 / 1.261 GB, free: 229.5 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.Density_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_Density_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_Density.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches