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.001396/0.001396, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001662/0.001662, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 7.973 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 3.312/3.312, allocations: 0.49 GB / 0.7951 GB, free: 33.54 MB / 0.6231 GB " [Timeout remaining time 176] 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.002079/0.002079, allocations: 73.42 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3746, allocations: 176.1 MB / 1.326 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2442/0.6187, allocations: 198.2 MB / 1.519 GB, free: 10.98 MB / 1.217 GB Notification: Performance of NFInst.instExpressions: time 0.01407/0.6328, allocations: 6.981 MB / 1.526 GB, free: 3.98 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.6353, allocations: 63.44 kB / 1.526 GB, free: 3.918 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.002721/0.638, allocations: 0.722 MB / 1.527 GB, free: 3.191 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.007441/0.6454, allocations: 2.469 MB / 1.529 GB, free: 0.7148 MB / 1.217 GB Notification: Performance of NFTyping.typeClassSections: time 0.004375/0.6498, allocations: 1.489 MB / 1.531 GB, free: 15.24 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.005318/0.6551, allocations: 3.037 MB / 1.534 GB, free: 12.2 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.6569, allocations: 0.7088 MB / 1.535 GB, free: 11.47 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004638/0.6615, allocations: 1.629 MB / 1.536 GB, free: 9.844 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.6635, allocations: 0.8366 MB / 1.537 GB, free: 9.012 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.000354/0.6639, allocations: 100 kB / 1.537 GB, free: 8.914 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004564/0.6684, allocations: 2.167 MB / 1.539 GB, free: 6.742 MB / 1.232 GB Notification: Performance of NFScalarize.scalarize: time 0.0006207/0.669, allocations: 382.6 kB / 1.54 GB, free: 6.367 MB / 1.232 GB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.6702, allocations: 0.5831 MB / 1.54 GB, free: 5.781 MB / 1.232 GB Notification: Performance of NFConvertDAE.convert: time 0.004938/0.6751, allocations: 2.402 MB / 1.542 GB, free: 3.371 MB / 1.232 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.6751, allocations: 11.88 kB / 1.542 GB, free: 3.359 MB / 1.232 GB Notification: Performance of FrontEnd: time 1.823e-06/0.6751, allocations: 0 / 1.542 GB, free: 3.359 MB / 1.232 GB Notification: Performance of Transformations before backend: time 5.265e-05/0.6752, allocations: 0 / 1.542 GB, free: 3.359 MB / 1.232 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.004414/0.6796, allocations: 1.598 MB / 1.544 GB, free: 1.719 MB / 1.232 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.6796, allocations: 12.03 kB / 1.544 GB, free: 1.707 MB / 1.232 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001993/0.6798, allocations: 110.5 kB / 1.544 GB, free: 1.59 MB / 1.232 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002986/0.6828, allocations: 0.5416 MB / 1.545 GB, free: 1.047 MB / 1.232 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002708/0.6855, allocations: 0.9625 MB / 1.546 GB, free: 52 kB / 1.232 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.581e-05/0.6856, allocations: 53.3 kB / 1.546 GB, free: 0 / 1.232 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.6858, allocations: 72.05 kB / 1.546 GB, free: 15.93 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002721/0.6885, allocations: 1.105 MB / 1.547 GB, free: 14.79 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.6886, allocations: 4 kB / 1.547 GB, free: 14.79 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.6887, allocations: 27.98 kB / 1.547 GB, free: 14.76 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.457e-05/0.6887, allocations: 41.23 kB / 1.547 GB, free: 14.72 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003255/0.692, allocations: 1.157 MB / 1.548 GB, free: 13.57 MB / 1.248 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.006874/0.6988, allocations: 3.132 MB / 1.551 GB, free: 10.37 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.7007, allocations: 0.6489 MB / 1.552 GB, free: 9.707 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008664/0.7016, allocations: 393.1 kB / 1.552 GB, free: 9.324 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/0.7021, allocations: 136.3 kB / 1.552 GB, free: 9.191 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.7033, allocations: 0.5177 MB / 1.553 GB, free: 8.652 MB / 1.248 GB Notification: Performance of pre-optimization done (n=57): time 3.336e-06/0.7033, allocations: 0 / 1.553 GB, free: 8.652 MB / 1.248 GB Notification: Performance of matching and sorting (n=57): time 0.003301/0.7066, allocations: 1.221 MB / 1.554 GB, free: 7.418 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.7067, allocations: 144.8 kB / 1.554 GB, free: 7.246 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002404/0.7091, allocations: 1.18 MB / 1.555 GB, free: 6.051 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 0.0001738/0.7093, allocations: 37.7 kB / 1.555 GB, free: 6.008 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.7097, allocations: 433.9 kB / 1.556 GB, free: 5.578 MB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.71, allocations: 206.2 kB / 1.556 GB, free: 5.375 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003363/0.7103, allocations: 146.2 kB / 1.556 GB, free: 5.223 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 0.0001855/0.7105, allocations: 330 kB / 1.556 GB, free: 4.895 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.7118, allocations: 441 kB / 1.557 GB, free: 4.465 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.7132, allocations: 0.598 MB / 1.557 GB, free: 3.816 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.7154, allocations: 0.9293 MB / 1.558 GB, free: 2.824 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.7154, allocations: 0 / 1.558 GB, free: 2.824 MB / 1.248 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003451/0.7189, allocations: 1.197 MB / 1.559 GB, free: 1.617 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.719, allocations: 41.69 kB / 1.559 GB, free: 1.57 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.719, allocations: 4 kB / 1.559 GB, free: 1.566 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.719, allocations: 4 kB / 1.559 GB, free: 1.562 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.72, allocations: 191.9 kB / 1.56 GB, free: 1.375 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.256e-05/0.72, allocations: 8 kB / 1.56 GB, free: 1.367 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.7217, allocations: 251 kB / 1.56 GB, free: 1.121 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.7218, allocations: 39.98 kB / 1.56 GB, free: 1.082 MB / 1.248 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.0006676/0.7225, allocations: 329.3 kB / 1.56 GB, free: 0.7461 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.7229, allocations: 119.2 kB / 1.56 GB, free: 0.6289 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.7253, allocations: 0.9935 MB / 1.561 GB, free: 15.63 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.7254, allocations: 11.94 kB / 1.561 GB, free: 15.62 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.7254, allocations: 0 / 1.561 GB, free: 15.62 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.7254, allocations: 3.984 kB / 1.561 GB, free: 15.61 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006009/0.7314, allocations: 3.142 MB / 1.564 GB, free: 12.32 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.681e-05/0.7314, allocations: 12 kB / 1.564 GB, free: 12.31 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000637/0.7321, allocations: 115.8 kB / 1.564 GB, free: 12.2 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.617e-05/0.7321, allocations: 12 kB / 1.564 GB, free: 12.19 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-05/0.7322, allocations: 28.11 kB / 1.565 GB, free: 12.16 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-05/0.7322, allocations: 15.94 kB / 1.565 GB, free: 12.14 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/0.7322, allocations: 11.94 kB / 1.565 GB, free: 12.13 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002619/0.7348, allocations: 1.355 MB / 1.566 GB, free: 10.66 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007804/0.7356, allocations: 262.8 kB / 1.566 GB, free: 10.4 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/0.7358, allocations: 20 kB / 1.566 GB, free: 10.38 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.7371, allocations: 103.8 kB / 1.566 GB, free: 10.28 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.7372, allocations: 63.75 kB / 1.566 GB, free: 10.21 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.7374, allocations: 35.97 kB / 1.566 GB, free: 10.18 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.001846/0.7392, allocations: 0.8521 MB / 1.567 GB, free: 9.32 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7392, allocations: 3.938 kB / 1.567 GB, free: 9.316 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.001346/0.7405, allocations: 299.6 kB / 1.567 GB, free: 9.023 MB / 1.264 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.003502/0.744, allocations: 2.143 MB / 1.57 GB, free: 6.766 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.002633/0.7467, allocations: 0.978 MB / 1.571 GB, free: 5.773 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 9.669e-06/0.7467, allocations: 0 / 1.571 GB, free: 5.773 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.7477, allocations: 484.9 kB / 1.571 GB, free: 5.289 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/0.7509, allocations: 0.5521 MB / 1.572 GB, free: 4.746 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01898/0.7699, allocations: 9.408 MB / 1.581 GB, free: 10.94 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008485/0.7707, allocations: 1.073 MB / 1.582 GB, free: 9.832 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.001105/0.7718, allocations: 269.5 kB / 1.582 GB, free: 9.566 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006024/0.7724, allocations: 363.3 kB / 1.582 GB, free: 9.211 MB / 1.279 GB Notification: Performance of SimCode: time 9.31e-07/0.7724, allocations: 0 / 1.582 GB, free: 9.211 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7699/1.542, allocations: 32.41 MB / 1.614 GB, free: 278.4 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/15.3, allocations: 4 kB / 1.614 GB, free: 278.4 MB / 1.295 GB " [Timeout remaining time 285] (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: 22.347127007786185]