Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.001818/0.001818, allocations: 108 kB / 15.6 MB, free: 132 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.002227/0.002227, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.599/1.599, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.859/2.859, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 68.55 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2886, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.7456/1.034, allocations: 194 MB / 1.253 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01014/1.044, allocations: 6.939 MB / 1.26 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/1.046, allocations: 46.72 kB / 1.26 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001461/1.047, allocations: 0.6866 MB / 1.261 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005427/1.053, allocations: 2.342 MB / 1.263 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003606/1.056, allocations: 1.417 MB / 1.264 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004029/1.06, allocations: 2.979 MB / 1.267 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/1.062, allocations: 0.8916 MB / 1.268 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002347/1.064, allocations: 1.129 MB / 1.269 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/1.065, allocations: 0.7978 MB / 1.27 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000182/1.065, allocations: 101.6 kB / 1.27 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003994/1.069, allocations: 2.055 MB / 1.272 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004082/1.07, allocations: 368.9 kB / 1.272 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007605/1.07, allocations: 0.5846 MB / 1.273 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004444/1.075, allocations: 2.366 MB / 1.275 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/1.075, allocations: 1.531 kB / 1.275 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.503e-06/1.075, allocations: 0.8438 kB / 1.275 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.162e-05/1.075, allocations: 0 / 1.275 GB, free: 4.414 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003854/1.079, allocations: 1.625 MB / 1.277 GB, free: 19.55 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/1.079, allocations: 11.27 kB / 1.277 GB, free: 19.55 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/1.079, allocations: 111.6 kB / 1.277 GB, free: 19.51 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003176/1.082, allocations: 0.5361 MB / 1.278 GB, free: 19.45 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002526/1.085, allocations: 0.9876 MB / 1.278 GB, free: 19.11 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/1.086, allocations: 275 kB / 1.279 GB, free: 19.11 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/1.086, allocations: 70.23 kB / 1.279 GB, free: 19.11 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/1.089, allocations: 1.122 MB / 1.28 GB, free: 19 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/1.089, allocations: 4.297 kB / 1.28 GB, free: 19 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-05/1.089, allocations: 34.44 kB / 1.28 GB, free: 18.99 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.42e-05/1.089, allocations: 33.12 kB / 1.28 GB, free: 18.99 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003292/1.093, allocations: 1.2 MB / 1.281 GB, free: 18.99 MB / 1.014 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.00551/1.098, allocations: 3.201 MB / 1.284 GB, free: 18.06 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/1.1, allocations: 0.6897 MB / 1.285 GB, free: 18.03 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007524/1.101, allocations: 427.8 kB / 1.285 GB, free: 18.02 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008335/1.101, allocations: 1.023 MB / 1.286 GB, free: 16.89 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009599/1.102, allocations: 0.514 MB / 1.287 GB, free: 16.79 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 2.936e-06/1.102, allocations: 0 / 1.287 GB, free: 16.79 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.002937/1.105, allocations: 1.225 MB / 1.288 GB, free: 16.66 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/1.105, allocations: 137.5 kB / 1.288 GB, free: 16.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/1.107, allocations: 1.196 MB / 1.289 GB, free: 16.35 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.628e-05/1.107, allocations: 40.77 kB / 1.289 GB, free: 16.32 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/1.108, allocations: 438.5 kB / 1.29 GB, free: 16.19 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/1.108, allocations: 197.2 kB / 1.29 GB, free: 16.07 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/1.108, allocations: 147.8 kB / 1.29 GB, free: 16.05 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.108, allocations: 331.8 kB / 1.29 GB, free: 15.74 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/1.11, allocations: 458.2 kB / 1.291 GB, free: 15.74 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/1.111, allocations: 0.6113 MB / 1.291 GB, free: 15.61 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/1.113, allocations: 0.9546 MB / 1.292 GB, free: 15.43 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/1.113, allocations: 1.969 kB / 1.292 GB, free: 15.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003355/1.117, allocations: 1.233 MB / 1.294 GB, free: 15.27 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.057e-05/1.117, allocations: 41.69 kB / 1.294 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/1.117, allocations: 2.625 kB / 1.294 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/1.117, allocations: 7.438 kB / 1.294 GB, free: 15.24 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009849/1.118, allocations: 195.3 kB / 1.294 GB, free: 15.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/1.118, allocations: 8.438 kB / 1.294 GB, free: 15.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/1.119, allocations: 272.1 kB / 1.294 GB, free: 15.17 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/1.12, allocations: 37.64 kB / 1.294 GB, free: 15.17 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0005407/1.12, allocations: 327.2 kB / 1.294 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/1.12, allocations: 117.8 kB / 1.295 GB, free: 14.96 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/1.123, allocations: 0.9933 MB / 1.296 GB, free: 14.85 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/1.123, allocations: 6.25 kB / 1.296 GB, free: 14.85 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/1.123, allocations: 3.844 kB / 1.296 GB, free: 14.85 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/1.123, allocations: 5.219 kB / 1.296 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004532/1.127, allocations: 3.161 MB / 1.299 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/1.127, allocations: 10.58 kB / 1.299 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005874/1.128, allocations: 116.6 kB / 1.299 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/1.128, allocations: 9.938 kB / 1.299 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/1.128, allocations: 28.2 kB / 1.299 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-05/1.128, allocations: 20.09 kB / 1.299 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.066e-06/1.128, allocations: 10.56 kB / 1.299 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/1.13, allocations: 1.347 MB / 1.3 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/1.131, allocations: 331.6 kB / 1.3 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/1.131, allocations: 19.91 kB / 1.3 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/1.132, allocations: 110.7 kB / 1.301 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.539e-05/1.132, allocations: 60.22 kB / 1.301 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-05/1.132, allocations: 42.33 kB / 1.301 GB, free: 13.29 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001476/1.134, allocations: 0.8639 MB / 1.302 GB, free: 13.18 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.7e-07/1.134, allocations: 5.375 kB / 1.302 GB, free: 13.17 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001183/1.135, allocations: 300.4 kB / 1.302 GB, free: 13.15 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002905/1.138, allocations: 2.137 MB / 1.304 GB, free: 11.99 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00256/1.14, allocations: 1.053 MB / 1.305 GB, free: 11.88 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.14, allocations: 2.875 kB / 1.305 GB, free: 11.88 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008607/1.141, allocations: 0.5091 MB / 1.305 GB, free: 11.82 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002896/1.144, allocations: 0.5574 MB / 1.306 GB, free: 11.72 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/1.16, allocations: 9.986 MB / 1.316 GB, free: 8.176 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/1.161, allocations: 1.065 MB / 1.317 GB, free: 7.457 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001302/1.162, allocations: 275.4 kB / 1.317 GB, free: 7.395 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005006/1.163, allocations: 363.1 kB / 1.317 GB, free: 7.387 MB / 1.014 GB Notification: Performance of SimCode: time 8.02e-07/1.163, allocations: 0 / 1.317 GB, free: 7.387 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05164/1.214, allocations: 31.56 MB / 1.348 GB, free: 12.89 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/9.412, allocations: 1.188 kB / 1.348 GB, free: 12.89 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches