Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_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.005099/0.005099, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.001312/0.001313, allocations: 193 kB / 16.67 MB, free: 5.926 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.676/2.676, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002002, allocations: 63.91 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8789/0.8809, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.236/1.117, allocations: 194 MB / 1.356 GB, free: 1.016 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01152/1.129, allocations: 6.945 MB / 1.362 GB, free: 10.06 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/1.13, allocations: 43.69 kB / 1.362 GB, free: 10.02 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002133/1.132, allocations: 0.683 MB / 1.363 GB, free: 9.328 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.006746/1.139, allocations: 2.341 MB / 1.365 GB, free: 6.977 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003677/1.143, allocations: 1.435 MB / 1.367 GB, free: 5.562 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.004722/1.148, allocations: 2.986 MB / 1.37 GB, free: 2.566 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001613/1.149, allocations: 0.8918 MB / 1.371 GB, free: 1.66 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002996/1.152, allocations: 1.134 MB / 1.372 GB, free: 0.5273 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/1.154, allocations: 0.8062 MB / 1.372 GB, free: 15.72 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002516/1.154, allocations: 100 kB / 1.373 GB, free: 15.62 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004306/1.158, allocations: 2.058 MB / 1.375 GB, free: 13.56 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0005602/1.159, allocations: 366.8 kB / 1.375 GB, free: 13.2 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0008543/1.16, allocations: 0.587 MB / 1.376 GB, free: 12.61 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.004439/1.164, allocations: 2.402 MB / 1.378 GB, free: 10.2 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.164, allocations: 0 / 1.378 GB, free: 10.2 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.473e-06/1.164, allocations: 0 / 1.378 GB, free: 10.2 MB / 1.107 GB Notification: Performance of Transformations before backend: time 2.148e-05/1.164, allocations: 0 / 1.378 GB, free: 10.2 MB / 1.107 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.003867/1.168, allocations: 1.681 MB / 1.379 GB, free: 8.461 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/1.168, allocations: 8.625 kB / 1.38 GB, free: 8.453 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001775/1.169, allocations: 114.4 kB / 1.38 GB, free: 8.332 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003064/1.172, allocations: 0.5338 MB / 1.38 GB, free: 7.797 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002721/1.174, allocations: 1.054 MB / 1.381 GB, free: 6.695 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.519e-05/1.174, allocations: 53.31 kB / 1.381 GB, free: 6.645 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/1.175, allocations: 68 kB / 1.381 GB, free: 6.578 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/1.177, allocations: 1.109 MB / 1.382 GB, free: 5.441 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/1.177, allocations: 0 / 1.382 GB, free: 5.441 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.545e-05/1.178, allocations: 31.98 kB / 1.382 GB, free: 5.41 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.741e-05/1.178, allocations: 29.31 kB / 1.382 GB, free: 5.383 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/1.181, allocations: 1.168 MB / 1.384 GB, free: 4.215 MB / 1.107 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.006698/1.188, allocations: 3.156 MB / 1.387 GB, free: 0.9805 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001892/1.19, allocations: 0.6909 MB / 1.387 GB, free: 292 kB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009157/1.191, allocations: 424.7 kB / 1.388 GB, free: 15.87 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/1.192, allocations: 1.029 MB / 1.389 GB, free: 14.62 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/1.193, allocations: 0.5143 MB / 1.389 GB, free: 14.08 MB / 1.123 GB Notification: Performance of pre-optimization done (n=57): time 2.665e-06/1.193, allocations: 0 / 1.389 GB, free: 14.08 MB / 1.123 GB Notification: Performance of matching and sorting (n=57): time 0.003414/1.196, allocations: 1.226 MB / 1.39 GB, free: 12.84 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/1.196, allocations: 144.8 kB / 1.391 GB, free: 12.67 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/1.199, allocations: 1.184 MB / 1.392 GB, free: 11.47 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001458/1.199, allocations: 37.7 kB / 1.392 GB, free: 11.43 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004451/1.199, allocations: 433.9 kB / 1.392 GB, free: 11 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.000267/1.2, allocations: 202.3 kB / 1.392 GB, free: 10.8 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/1.2, allocations: 154.1 kB / 1.393 GB, free: 10.64 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001756/1.2, allocations: 326 kB / 1.393 GB, free: 10.32 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/1.201, allocations: 440.9 kB / 1.393 GB, free: 9.887 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/1.203, allocations: 0.5937 MB / 1.394 GB, free: 9.25 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/1.205, allocations: 0.9301 MB / 1.395 GB, free: 8.266 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/1.205, allocations: 3.938 kB / 1.395 GB, free: 8.262 MB / 1.123 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003598/1.209, allocations: 1.198 MB / 1.396 GB, free: 7.047 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 6.814e-05/1.209, allocations: 41.69 kB / 1.396 GB, free: 7 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/1.209, allocations: 4 kB / 1.396 GB, free: 6.996 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/1.209, allocations: 8 kB / 1.396 GB, free: 6.988 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009921/1.21, allocations: 191.9 kB / 1.396 GB, free: 6.801 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/1.21, allocations: 8 kB / 1.396 GB, free: 6.793 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/1.212, allocations: 247.1 kB / 1.396 GB, free: 6.551 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/1.212, allocations: 35.98 kB / 1.396 GB, free: 6.516 MB / 1.123 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.0006325/1.213, allocations: 323.3 kB / 1.397 GB, free: 6.184 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/1.213, allocations: 119.2 kB / 1.397 GB, free: 6.066 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/1.215, allocations: 0.9985 MB / 1.398 GB, free: 5.062 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/1.215, allocations: 11.94 kB / 1.398 GB, free: 5.051 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/1.215, allocations: 0 / 1.398 GB, free: 5.051 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/1.215, allocations: 7.984 kB / 1.398 GB, free: 5.043 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/1.221, allocations: 3.159 MB / 1.401 GB, free: 1.727 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/1.221, allocations: 8 kB / 1.401 GB, free: 1.719 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006172/1.222, allocations: 124 kB / 1.401 GB, free: 1.598 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.667e-05/1.222, allocations: 8 kB / 1.401 GB, free: 1.59 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.119e-05/1.222, allocations: 27.98 kB / 1.401 GB, free: 1.562 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.707e-05/1.222, allocations: 19.92 kB / 1.401 GB, free: 1.543 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/1.222, allocations: 8 kB / 1.401 GB, free: 1.535 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002716/1.225, allocations: 1.357 MB / 1.402 GB, free: 72 kB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/1.225, allocations: 332 kB / 1.403 GB, free: 15.73 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/1.226, allocations: 24 kB / 1.403 GB, free: 15.7 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/1.227, allocations: 103.9 kB / 1.403 GB, free: 15.6 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/1.227, allocations: 59.89 kB / 1.403 GB, free: 15.54 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.487e-05/1.227, allocations: 43.97 kB / 1.403 GB, free: 15.5 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.001593/1.229, allocations: 0.8482 MB / 1.404 GB, free: 14.64 MB / 1.139 GB Notification: Performance of sort global known variables: time 2.81e-07/1.229, allocations: 0 / 1.404 GB, free: 14.64 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.001143/1.23, allocations: 299.6 kB / 1.404 GB, free: 14.35 MB / 1.139 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.00338/1.233, allocations: 2.148 MB / 1.406 GB, free: 12.09 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002584/1.236, allocations: 1.013 MB / 1.407 GB, free: 11.07 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.236, allocations: 4 kB / 1.407 GB, free: 11.06 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/1.237, allocations: 0.5202 MB / 1.408 GB, free: 10.53 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/1.24, allocations: 0.5468 MB / 1.408 GB, free: 9.992 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/1.258, allocations: 9.408 MB / 1.417 GB, free: 188 kB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009892/1.259, allocations: 1.073 MB / 1.418 GB, free: 15.08 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.001149/1.26, allocations: 272.8 kB / 1.419 GB, free: 14.81 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006773/1.261, allocations: 355.3 kB / 1.419 GB, free: 14.46 MB / 1.154 GB Notification: Performance of SimCode: time 5.71e-07/1.261, allocations: 0 / 1.419 GB, free: 14.46 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07863/1.339, allocations: 31.78 MB / 1.45 GB, free: 14.96 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/12.02, allocations: 19.89 kB / 1.45 GB, free: 14.94 MB / 1.186 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches