Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.MassFraction,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_MassFraction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.MassFraction,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_MassFraction",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.006114/0.006114, allocations: 97.64 kB / 15.73 MB, free: 5.988 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.001255/0.001255, allocations: 191.8 kB / 16.67 MB, free: 5.918 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.574/2.574, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.84 kB / 1.018 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2866, allocations: 151.6 MB / 1.166 GB, free: 7.406 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.7949/1.082, allocations: 186.8 MB / 1.349 GB, free: 5.566 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0102/1.092, allocations: 4.574 MB / 1.353 GB, free: 2.348 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/1.094, allocations: 31.34 kB / 1.353 GB, free: 2.336 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001771/1.095, allocations: 421 kB / 1.353 GB, free: 2.086 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.005101/1.101, allocations: 1.409 MB / 1.355 GB, free: 1.312 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002906/1.104, allocations: 0.7544 MB / 1.356 GB, free: 0.9258 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003481/1.107, allocations: 1.966 MB / 1.358 GB, free: 40 kB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/1.109, allocations: 0.6483 MB / 1.358 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004692/1.113, allocations: 1.116 MB / 1.359 GB, free: 15.25 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/1.115, allocations: 0.5845 MB / 1.36 GB, free: 15 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0002936/1.115, allocations: 69.31 kB / 1.36 GB, free: 15 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003624/1.119, allocations: 1.39 MB / 1.361 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0005515/1.119, allocations: 286.9 kB / 1.362 GB, free: 14.36 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001081/1.121, allocations: 418 kB / 1.362 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.003721/1.124, allocations: 1.477 MB / 1.363 GB, free: 13.61 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/1.124, allocations: 4 kB / 1.363 GB, free: 13.6 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.014e-06/1.124, allocations: 0 / 1.363 GB, free: 13.6 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.723e-05/1.124, allocations: 0 / 1.363 GB, free: 13.6 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.003185/1.128, allocations: 1.126 MB / 1.364 GB, free: 12.78 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/1.128, allocations: 9.75 kB / 1.364 GB, free: 12.78 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/1.128, allocations: 94.41 kB / 1.365 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/1.129, allocations: 212.8 kB / 1.365 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/1.131, allocations: 0.6088 MB / 1.365 GB, free: 12.12 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/1.131, allocations: 43.81 kB / 1.365 GB, free: 12.1 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/1.131, allocations: 60.08 kB / 1.365 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/1.133, allocations: 0.6241 MB / 1.366 GB, free: 11.7 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/1.133, allocations: 3.938 kB / 1.366 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.96e-05/1.133, allocations: 21.72 kB / 1.366 GB, free: 11.68 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/1.133, allocations: 18.06 kB / 1.366 GB, free: 11.68 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009264/1.134, allocations: 0.4967 MB / 1.367 GB, free: 11.43 MB / 1.045 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.003813/1.138, allocations: 2.403 MB / 1.369 GB, free: 9.328 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006446/1.138, allocations: 361.8 kB / 1.369 GB, free: 9.137 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/1.139, allocations: 207.2 kB / 1.369 GB, free: 9.035 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006129/1.139, allocations: 310.2 kB / 1.37 GB, free: 8.723 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/1.139, allocations: 42.38 kB / 1.37 GB, free: 8.676 MB / 1.045 GB Notification: Performance of pre-optimization done (n=36): time 3.326e-06/1.139, allocations: 0 / 1.37 GB, free: 8.676 MB / 1.045 GB Notification: Performance of matching and sorting (n=36): time 0.001292/1.141, allocations: 0.5552 MB / 1.37 GB, free: 8.395 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/1.141, allocations: 54.84 kB / 1.37 GB, free: 8.332 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006911/1.141, allocations: 0.5016 MB / 1.371 GB, free: 8.023 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/1.141, allocations: 31.61 kB / 1.371 GB, free: 7.988 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/1.142, allocations: 324.9 kB / 1.371 GB, free: 7.703 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/1.142, allocations: 143.4 kB / 1.371 GB, free: 7.578 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/1.142, allocations: 82.62 kB / 1.371 GB, free: 7.527 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001942/1.142, allocations: 360.1 kB / 1.372 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/1.143, allocations: 151.4 kB / 1.372 GB, free: 7.098 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/1.143, allocations: 269.1 kB / 1.372 GB, free: 6.891 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/1.144, allocations: 399.6 kB / 1.373 GB, free: 6.641 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/1.144, allocations: 0 / 1.373 GB, free: 6.641 MB / 1.045 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008983/1.144, allocations: 496.2 kB / 1.373 GB, free: 6.383 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/1.145, allocations: 6.219 kB / 1.373 GB, free: 6.383 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/1.145, allocations: 2.969 kB / 1.373 GB, free: 6.383 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/1.145, allocations: 4.094 kB / 1.373 GB, free: 6.383 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/1.145, allocations: 102.4 kB / 1.373 GB, free: 6.359 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004755/1.146, allocations: 0.5927 MB / 1.374 GB, free: 5.762 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006715/1.146, allocations: 52.84 kB / 1.374 GB, free: 5.723 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/1.146, allocations: 15.38 kB / 1.374 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005181/1.147, allocations: 329.2 kB / 1.374 GB, free: 5.512 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003697/1.147, allocations: 259.4 kB / 1.374 GB, free: 5.312 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006963/1.148, allocations: 405.5 kB / 1.375 GB, free: 5.055 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/1.148, allocations: 0 / 1.375 GB, free: 5.055 MB / 1.045 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0008186/1.149, allocations: 485.5 kB / 1.375 GB, free: 4.805 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/1.149, allocations: 9.219 kB / 1.375 GB, free: 4.805 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/1.149, allocations: 14.59 kB / 1.375 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.053e-06/1.149, allocations: 4.906 kB / 1.375 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/1.149, allocations: 87.55 kB / 1.375 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/1.149, allocations: 5.312 kB / 1.375 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005741/1.15, allocations: 34.08 kB / 1.375 GB, free: 4.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/1.15, allocations: 23.31 kB / 1.375 GB, free: 4.742 MB / 1.045 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 (49): * Single equations (assignments): 48 * 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.0001863/1.15, allocations: 205.1 kB / 1.376 GB, free: 4.539 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/1.15, allocations: 73.55 kB / 1.376 GB, free: 4.496 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007576/1.151, allocations: 446.4 kB / 1.376 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/1.151, allocations: 2.656 kB / 1.376 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.151, allocations: 0 / 1.376 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006923/1.152, allocations: 0.6576 MB / 1.377 GB, free: 3.648 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/1.154, allocations: 1.206 MB / 1.378 GB, free: 2.758 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/1.154, allocations: 3.125 kB / 1.378 GB, free: 2.758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/1.154, allocations: 83.61 kB / 1.378 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/1.154, allocations: 3.438 kB / 1.378 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/1.154, allocations: 14.84 kB / 1.378 GB, free: 2.734 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003413/1.155, allocations: 0.598 MB / 1.379 GB, free: 2.129 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.155, allocations: 2.312 kB / 1.379 GB, free: 2.129 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009439/1.156, allocations: 0.7197 MB / 1.379 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/1.156, allocations: 175.8 kB / 1.379 GB, free: 1.492 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/1.156, allocations: 13.25 kB / 1.379 GB, free: 1.484 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/1.157, allocations: 17.56 kB / 1.379 GB, free: 1.473 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/1.157, allocations: 26.78 kB / 1.38 GB, free: 1.457 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/1.157, allocations: 14.03 kB / 1.38 GB, free: 1.453 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005335/1.157, allocations: 360 kB / 1.38 GB, free: 1.242 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.8e-07/1.157, allocations: 0 / 1.38 GB, free: 1.242 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.00114/1.158, allocations: 343 kB / 1.38 GB, free: 1.18 MB / 1.045 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,senMasFra1.X) * 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 (35): * Single equations (assignments): 34 * 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.001698/1.16, allocations: 1.357 MB / 1.382 GB, free: 128 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001255/1.161, allocations: 0.5922 MB / 1.382 GB, free: 15.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/1.161, allocations: 0 / 1.382 GB, free: 15.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003061/1.162, allocations: 193.7 kB / 1.382 GB, free: 15.77 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/1.164, allocations: 367.1 kB / 1.383 GB, free: 15.57 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/1.172, allocations: 4.886 MB / 1.387 GB, free: 12.27 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/1.172, allocations: 0.942 MB / 1.388 GB, free: 11.45 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0007869/1.173, allocations: 201.2 kB / 1.389 GB, free: 11.36 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/1.173, allocations: 217.5 kB / 1.389 GB, free: 11.19 MB / 1.061 GB Notification: Performance of SimCode: time 1.383e-06/1.173, allocations: 2.75 kB / 1.389 GB, free: 11.19 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04445/1.218, allocations: 17.08 MB / 1.405 GB, free: 15.23 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/13.35, allocations: 15.8 kB / 1.405 GB, free: 15.22 MB / 1.076 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_10_Buildings_Fluid_Sensors_Examples_MassFraction.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches