Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterProperties.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Media.Examples.WaterProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterProperties",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.001069/0.001069, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001137/0.001137, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.237/1.237, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.054/2.054, allocations: 390.3 MB / 0.6644 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.91 kB / 0.8121 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4649/0.4661, allocations: 140.4 MB / 0.9492 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.004021/0.4702, allocations: 4.75 MB / 0.9539 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001802/0.472, allocations: 2.692 MB / 0.9565 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.531e-05/0.4721, allocations: 1.688 kB / 0.9565 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.4723, allocations: 42.61 kB / 0.9565 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.4725, allocations: 96.11 kB / 0.9566 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007786/0.4732, allocations: 461.5 kB / 0.9571 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.4734, allocations: 238.2 kB / 0.9573 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.937e-05/0.4735, allocations: 11.22 kB / 0.9573 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.4736, allocations: 116.2 kB / 0.9574 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.4737, allocations: 95.38 kB / 0.9575 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.4738, allocations: 7.531 kB / 0.9575 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.4742, allocations: 372.1 kB / 0.9579 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.169e-05/0.4743, allocations: 38.95 kB / 0.9579 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.47e-05/0.4743, allocations: 85.3 kB / 0.958 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.4747, allocations: 353.1 kB / 0.9583 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4748, allocations: 5.359 kB / 0.9583 GB, free: 2 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4748, allocations: 0 / 0.9583 GB, free: 2 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.4748, allocations: 4 kB / 0.9583 GB, free: 1.996 MB / 0.7169 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.0005139/0.4753, allocations: 0.5027 MB / 0.9588 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.4753, allocations: 9.625 kB / 0.9588 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.4754, allocations: 52.23 kB / 0.9589 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.4755, allocations: 22.44 kB / 0.9589 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.4757, allocations: 212.1 kB / 0.9591 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.4757, allocations: 15.33 kB / 0.9591 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.4757, allocations: 14.53 kB / 0.9591 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.476, allocations: 250 kB / 0.9594 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.476, allocations: 0 / 0.9594 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.476, allocations: 15.39 kB / 0.9594 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.4761, allocations: 9.109 kB / 0.9594 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.4765, allocations: 425 kB / 0.9598 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008296/0.4773, allocations: 0.9464 MB / 0.9607 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.4776, allocations: 173.6 kB / 0.9609 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.088e-05/0.4777, allocations: 64.8 kB / 0.9609 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00127/0.4789, allocations: 1.818 MB / 0.9627 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.479, allocations: 41.72 kB / 0.9628 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.479, allocations: 0 / 0.9628 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.000296/0.4793, allocations: 154.9 kB / 0.9629 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.4794, allocations: 57.73 kB / 0.963 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.4795, allocations: 172 kB / 0.9631 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.4796, allocations: 32.05 kB / 0.9632 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.4797, allocations: 138.5 kB / 0.9633 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.4797, allocations: 46.48 kB / 0.9633 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/0.4798, allocations: 53.14 kB / 0.9634 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4799, allocations: 325.9 kB / 0.9637 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.345e-05/0.48, allocations: 41.34 kB / 0.9637 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.4801, allocations: 133.8 kB / 0.9639 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.4804, allocations: 200.5 kB / 0.9641 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.4804, allocations: 5.281 kB / 0.9641 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002947/0.4807, allocations: 218 kB / 0.9643 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.4807, allocations: 5.406 kB / 0.9643 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.4807, allocations: 4.188 kB / 0.9643 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.4807, allocations: 13.44 kB / 0.9643 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.4809, allocations: 52.67 kB / 0.9643 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.4809, allocations: 17.55 kB / 0.9644 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.481, allocations: 25.03 kB / 0.9644 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.481, allocations: 10.47 kB / 0.9644 GB, free: 12.26 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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 9.676e-05/0.4811, allocations: 139.4 kB / 0.9645 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.632e-05/0.4812, allocations: 11.69 kB / 0.9645 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.4815, allocations: 157 kB / 0.9647 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4815, allocations: 10.3 kB / 0.9647 GB, free: 12 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.4815, allocations: 3.938 kB / 0.9647 GB, free: 12 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4815, allocations: 1.312 kB / 0.9647 GB, free: 12 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.4817, allocations: 209.5 kB / 0.9649 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4818, allocations: 3.984 kB / 0.9649 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.113e-05/0.4818, allocations: 19.12 kB / 0.9649 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4818, allocations: 3.5 kB / 0.9649 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.4819, allocations: 7.984 kB / 0.9649 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4819, allocations: 3.938 kB / 0.9649 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4819, allocations: 3.688 kB / 0.9649 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.4821, allocations: 231.7 kB / 0.9652 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.867e-05/0.4822, allocations: 110.9 kB / 0.9653 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.4823, allocations: 3.984 kB / 0.9653 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.4825, allocations: 16.75 kB / 0.9653 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.059e-05/0.4825, allocations: 9.797 kB / 0.9653 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.4825, allocations: 14.48 kB / 0.9653 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.784e-05/0.4826, allocations: 128.8 kB / 0.9654 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4826, allocations: 0 / 0.9654 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003462/0.483, allocations: 77.05 kB / 0.9655 GB, free: 11.31 MB / 0.7325 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0006425/0.4836, allocations: 0.8257 MB / 0.9663 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000222/0.4838, allocations: 128.3 kB / 0.9664 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4838, allocations: 1.062 kB / 0.9664 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.419e-05/0.4839, allocations: 49.86 kB / 0.9665 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.4843, allocations: 71.52 kB / 0.9665 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.4863, allocations: 2.069 MB / 0.9686 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.4866, allocations: 0.7156 MB / 0.9693 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001587/0.4868, allocations: 43.25 kB / 0.9693 GB, free: 7.898 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.465e-05/0.4868, allocations: 49.45 kB / 0.9694 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of SimCode: time 3.6e-07/0.4868, allocations: 0 / 0.9694 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.101/1.588, allocations: 5.096 MB / 0.9743 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003463/1.588, allocations: 188.7 kB / 0.9745 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/3.34, allocations: 3.938 kB / 0.9745 GB, free: 5.07 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterProperties.fmu > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches