Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.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.Fluid.FixedResistances.Examples.PressureDrop,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_PressureDrop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PressureDrop,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_PressureDrop",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.007174/0.007174, allocations: 103.1 kB / 15.73 MB, free: 6.062 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.001622/0.001622, allocations: 193.8 kB / 16.67 MB, free: 5.973 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.241/2.241, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.89 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8708/0.8722, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PressureDrop): time 0.2081/1.08, allocations: 161.5 MB / 1.245 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004712/1.085, allocations: 1.713 MB / 1.247 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008337/1.086, allocations: 14.91 kB / 1.247 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0009103/1.087, allocations: 152.3 kB / 1.247 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00222/1.089, allocations: 0.5126 MB / 1.248 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001694/1.091, allocations: 419.9 kB / 1.248 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001205/1.092, allocations: 0.5721 MB / 1.248 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004705/1.093, allocations: 183.1 kB / 1.249 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008901/1.094, allocations: 318.8 kB / 1.249 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/1.094, allocations: 155.2 kB / 1.249 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/1.094, allocations: 12 kB / 1.249 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/1.095, allocations: 0.6938 MB / 1.25 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001412/1.095, allocations: 79.77 kB / 1.25 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001797/1.096, allocations: 123.3 kB / 1.25 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001197/1.097, allocations: 0.4947 MB / 1.25 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/1.097, allocations: 0 / 1.25 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.058e-06/1.097, allocations: 0 / 1.25 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.097, allocations: 3.938 kB / 1.25 GB, free: 6.867 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001096/1.098, allocations: 0.58 MB / 1.251 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.098, allocations: 11.97 kB / 1.251 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/1.098, allocations: 46.55 kB / 1.251 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004087/1.099, allocations: 51.69 kB / 1.251 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005658/1.099, allocations: 309.2 kB / 1.251 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/1.099, allocations: 8 kB / 1.251 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/1.099, allocations: 19.94 kB / 1.251 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/1.1, allocations: 192.7 kB / 1.252 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/1.1, allocations: 0 / 1.252 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/1.1, allocations: 4 kB / 1.252 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/1.1, allocations: 4 kB / 1.252 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/1.1, allocations: 127.8 kB / 1.252 GB, free: 5.414 MB / 0.9825 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.0011/1.101, allocations: 0.7886 MB / 1.253 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/1.101, allocations: 78.53 kB / 1.253 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/1.102, allocations: 76.88 kB / 1.253 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003029/1.102, allocations: 186.2 kB / 1.253 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/1.102, allocations: 38.5 kB / 1.253 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/1.102, allocations: 0 / 1.253 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007269/1.103, allocations: 225.2 kB / 1.253 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/1.103, allocations: 51.41 kB / 1.253 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/1.103, allocations: 267 kB / 1.253 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/1.103, allocations: 29.7 kB / 1.253 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/1.103, allocations: 144 kB / 1.254 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.322e-05/1.103, allocations: 39.45 kB / 1.254 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-05/1.103, allocations: 33.7 kB / 1.254 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.103, allocations: 334.8 kB / 1.254 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/1.104, allocations: 40.83 kB / 1.254 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/1.104, allocations: 97.48 kB / 1.254 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/1.104, allocations: 119.3 kB / 1.254 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.104, allocations: 4 kB / 1.254 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003569/1.104, allocations: 165.4 kB / 1.254 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/1.104, allocations: 4 kB / 1.254 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/1.104, allocations: 7.875 kB / 1.254 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.104, allocations: 4 kB / 1.254 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/1.105, allocations: 19.98 kB / 1.254 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/1.105, allocations: 0 / 1.254 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/1.105, allocations: 19.92 kB / 1.254 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/1.105, allocations: 8 kB / 1.254 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001914/1.105, allocations: 152.1 kB / 1.255 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001552/1.105, allocations: 93.05 kB / 1.255 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002383/1.105, allocations: 119.3 kB / 1.255 GB, free: 2.066 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.889e-06/1.105, allocations: 4 kB / 1.255 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.000327/1.106, allocations: 161.3 kB / 1.255 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/1.106, allocations: 6.5 kB / 1.255 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/1.106, allocations: 4.125 kB / 1.255 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.652e-06/1.106, allocations: 7.938 kB / 1.255 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/1.106, allocations: 19.98 kB / 1.255 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/1.106, allocations: 7.922 kB / 1.255 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/1.106, allocations: 20.02 kB / 1.255 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/1.106, allocations: 8 kB / 1.255 GB, free: 1.828 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (10): * Single equations (assignments): 10 * 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.0001132/1.106, allocations: 184.3 kB / 1.255 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/1.106, allocations: 19.72 kB / 1.255 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003762/1.107, allocations: 167.2 kB / 1.255 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/1.107, allocations: 0 / 1.255 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.107, allocations: 0 / 1.255 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/1.107, allocations: 4 kB / 1.255 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009256/1.108, allocations: 0.5898 MB / 1.256 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/1.108, allocations: 4 kB / 1.256 GB, free: 0.7695 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/1.108, allocations: 23.92 kB / 1.256 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/1.108, allocations: 4 kB / 1.256 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/1.108, allocations: 0 / 1.256 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/1.108, allocations: 4 kB / 1.256 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/1.108, allocations: 4.281 kB / 1.256 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/1.108, allocations: 297.2 kB / 1.256 GB, free: 416 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/1.108, allocations: 120.8 kB / 1.256 GB, free: 276 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/1.108, allocations: 7.938 kB / 1.256 GB, free: 268 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/1.109, allocations: 11.98 kB / 1.256 GB, free: 256 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/1.109, allocations: 15.92 kB / 1.256 GB, free: 240 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/1.109, allocations: 4 kB / 1.256 GB, free: 236 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001913/1.109, allocations: 197.9 kB / 1.257 GB, free: 36 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/1.109, allocations: 0 / 1.257 GB, free: 36 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004974/1.109, allocations: 99.89 kB / 1.257 GB, free: 15.93 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (10): * Single equations (assignments): 10 * 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.001063/1.11, allocations: 0.89 MB / 1.258 GB, free: 15.01 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004851/1.111, allocations: 159.8 kB / 1.258 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.111, allocations: 3.938 kB / 1.258 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/1.111, allocations: 67.83 kB / 1.258 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007375/1.112, allocations: 125.7 kB / 1.258 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/1.115, allocations: 2.354 MB / 1.26 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/1.115, allocations: 0.7597 MB / 1.261 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002224/1.116, allocations: 66.53 kB / 1.261 GB, free: 11.33 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/1.116, allocations: 67.41 kB / 1.261 GB, free: 11.26 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/1.116, allocations: 0 / 1.261 GB, free: 11.26 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/1.141, allocations: 6.999 MB / 1.268 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/9.115, allocations: 4 kB / 1.268 GB, free: 4.418 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_PressureDrop_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_PressureDrop.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_PressureDrop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.PressureDrop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches