Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 99.75 kB / 18.94 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 217.3 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.349/1.349, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.912/2.912, allocations: 0.49 GB / 0.7951 GB, free: 35.49 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_12_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_12_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 65.78 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3112, allocations: 176.1 MB / 1.326 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1957/0.507, allocations: 171.9 MB / 1.494 GB, free: 4.852 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.009759/0.5167, allocations: 6.559 MB / 1.5 GB, free: 14.28 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008359/0.5176, allocations: 63.38 kB / 1.5 GB, free: 14.22 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.5191, allocations: 0.6909 MB / 1.501 GB, free: 13.52 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.524, allocations: 2.416 MB / 1.503 GB, free: 11.1 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.5269, allocations: 1.472 MB / 1.505 GB, free: 9.645 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.003497/0.5304, allocations: 3.033 MB / 1.508 GB, free: 6.602 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.5315, allocations: 0.7127 MB / 1.508 GB, free: 5.875 MB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003364/0.5349, allocations: 1.631 MB / 1.51 GB, free: 4.242 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001303/0.5362, allocations: 0.8445 MB / 1.511 GB, free: 3.402 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.5363, allocations: 100 kB / 1.511 GB, free: 3.305 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002993/0.5393, allocations: 1.695 MB / 1.513 GB, free: 1.605 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 0.0003926/0.5397, allocations: 370.8 kB / 1.513 GB, free: 1.242 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 0.0005433/0.5402, allocations: 481.7 kB / 1.513 GB, free: 0.7695 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.003091/0.5433, allocations: 2.34 MB / 1.516 GB, free: 14.42 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.5433, allocations: 3.984 kB / 1.516 GB, free: 14.41 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5433, allocations: 4 kB / 1.516 GB, free: 14.41 MB / 1.217 GB Notification: Performance of Transformations before backend: time 1.561e-05/0.5434, allocations: 0 / 1.516 GB, free: 14.41 MB / 1.217 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.003303/0.5467, allocations: 1.594 MB / 1.517 GB, free: 12.78 MB / 1.217 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.5467, allocations: 12.03 kB / 1.517 GB, free: 12.77 MB / 1.217 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.5468, allocations: 114.4 kB / 1.517 GB, free: 12.64 MB / 1.217 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.5497, allocations: 0.5377 MB / 1.518 GB, free: 12.11 MB / 1.217 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.552, allocations: 0.9741 MB / 1.519 GB, free: 11.1 MB / 1.217 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.192e-05/0.5521, allocations: 53.31 kB / 1.519 GB, free: 11.05 MB / 1.217 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.5522, allocations: 71.98 kB / 1.519 GB, free: 10.98 MB / 1.217 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.5546, allocations: 1.242 MB / 1.52 GB, free: 9.676 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.5547, allocations: 0 / 1.52 GB, free: 9.676 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.955e-05/0.5547, allocations: 28 kB / 1.52 GB, free: 9.648 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.5548, allocations: 29.3 kB / 1.52 GB, free: 9.621 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.5578, allocations: 1.193 MB / 1.521 GB, free: 8.422 MB / 1.217 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.005466/0.5633, allocations: 2.879 MB / 1.524 GB, free: 5.473 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.5649, allocations: 0.6818 MB / 1.525 GB, free: 4.773 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007831/0.5657, allocations: 420.8 kB / 1.525 GB, free: 4.355 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005193/0.5662, allocations: 140.3 kB / 1.525 GB, free: 4.219 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.5673, allocations: 0.6433 MB / 1.526 GB, free: 3.52 MB / 1.217 GB Notification: Performance of pre-optimization done (n=57): time 2.334e-06/0.5673, allocations: 0 / 1.526 GB, free: 3.52 MB / 1.217 GB Notification: Performance of matching and sorting (n=57): time 0.003017/0.5703, allocations: 1.283 MB / 1.527 GB, free: 2.215 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.5704, allocations: 148.8 kB / 1.527 GB, free: 2.039 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/0.5722, allocations: 1.18 MB / 1.529 GB, free: 0.8438 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/0.5723, allocations: 37.7 kB / 1.529 GB, free: 0.8008 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003831/0.5727, allocations: 441.8 kB / 1.529 GB, free: 372 kB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.5729, allocations: 206.3 kB / 1.529 GB, free: 164 kB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.5731, allocations: 146.2 kB / 1.529 GB, free: 8 kB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5733, allocations: 326 kB / 1.53 GB, free: 15.68 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.5745, allocations: 470.7 kB / 1.53 GB, free: 15.21 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.576, allocations: 0.9823 MB / 1.531 GB, free: 14.09 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/0.578, allocations: 0.9332 MB / 1.532 GB, free: 13.09 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.578, allocations: 0 / 1.532 GB, free: 13.09 MB / 1.232 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002924/0.5809, allocations: 1.242 MB / 1.533 GB, free: 11.84 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 4.965e-05/0.581, allocations: 47.44 kB / 1.533 GB, free: 11.79 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.581, allocations: 4.469 kB / 1.533 GB, free: 11.78 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.581, allocations: 8 kB / 1.533 GB, free: 11.77 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009468/0.582, allocations: 183.7 kB / 1.533 GB, free: 11.59 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.582, allocations: 15.88 kB / 1.533 GB, free: 11.58 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.5834, allocations: 239.2 kB / 1.534 GB, free: 11.34 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.268e-05/0.5834, allocations: 35.92 kB / 1.534 GB, free: 11.31 MB / 1.232 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.0004512/0.5839, allocations: 327.3 kB / 1.534 GB, free: 10.97 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.5841, allocations: 131.2 kB / 1.534 GB, free: 10.84 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.5862, allocations: 1.034 MB / 1.535 GB, free: 9.801 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.5862, allocations: 7.938 kB / 1.535 GB, free: 9.793 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.5862, allocations: 7.922 kB / 1.535 GB, free: 9.785 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.5863, allocations: 4 kB / 1.535 GB, free: 9.781 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004784/0.591, allocations: 3.007 MB / 1.538 GB, free: 6.625 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.591, allocations: 8 kB / 1.538 GB, free: 6.617 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005972/0.5916, allocations: 111.8 kB / 1.538 GB, free: 6.508 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.5917, allocations: 16.19 kB / 1.538 GB, free: 6.492 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.818e-05/0.5917, allocations: 23.98 kB / 1.538 GB, free: 6.469 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.5917, allocations: 15.94 kB / 1.538 GB, free: 6.453 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.5917, allocations: 11.94 kB / 1.538 GB, free: 6.441 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002199/0.5939, allocations: 1.392 MB / 1.54 GB, free: 4.922 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000565/0.5945, allocations: 255 kB / 1.54 GB, free: 4.672 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.5947, allocations: 20 kB / 1.54 GB, free: 4.652 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.5957, allocations: 99.89 kB / 1.54 GB, free: 4.555 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.5959, allocations: 67.55 kB / 1.54 GB, free: 4.488 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.414e-05/0.5959, allocations: 43.97 kB / 1.54 GB, free: 4.445 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.001425/0.5974, allocations: 0.8443 MB / 1.541 GB, free: 3.594 MB / 1.232 GB Notification: Performance of sort global known variables: time 1e-07/0.5974, allocations: 0 / 1.541 GB, free: 3.594 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.001042/0.5984, allocations: 307.6 kB / 1.541 GB, free: 3.293 MB / 1.232 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.00297/0.6014, allocations: 2.179 MB / 1.543 GB, free: 0.9922 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.00232/0.6037, allocations: 1.036 MB / 1.544 GB, free: 15.93 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.6037, allocations: 0 / 1.544 GB, free: 15.93 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.6046, allocations: 0.5086 MB / 1.545 GB, free: 15.4 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.6071, allocations: 0.5491 MB / 1.545 GB, free: 14.86 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.6229, allocations: 9.58 MB / 1.555 GB, free: 4.848 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.6234, allocations: 482.6 kB / 1.555 GB, free: 4.34 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.0009365/0.6243, allocations: 275.2 kB / 1.555 GB, free: 4.07 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.6249, allocations: 367.2 kB / 1.556 GB, free: 3.711 MB / 1.248 GB Notification: Performance of SimCode: time 6.61e-07/0.6249, allocations: 0 / 1.556 GB, free: 3.711 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06821/0.6931, allocations: 34.76 MB / 1.59 GB, free: 1.531 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.78, allocations: 3.938 kB / 1.59 GB, free: 1.527 MB / 1.279 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.912732388009317]