Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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: translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 108.4 kB / 16.41 MB, free: 6.492 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.00168/0.00168, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.661/2.661, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 60.11 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.951/0.9525, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 0.2671/1.22, allocations: 239.9 MB / 1.443 GB, free: 12.86 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.01226/1.232, allocations: 7.198 MB / 1.45 GB, free: 5.645 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/1.234, allocations: 51.62 kB / 1.45 GB, free: 5.594 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.001921/1.236, allocations: 0.6988 MB / 1.45 GB, free: 4.891 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.005343/1.241, allocations: 2.069 MB / 1.452 GB, free: 2.812 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.005521/1.247, allocations: 2.041 MB / 1.454 GB, free: 0.7812 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.004636/1.251, allocations: 3.281 MB / 1.458 GB, free: 13.49 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/1.253, allocations: 1.126 MB / 1.459 GB, free: 12.34 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004608/1.258, allocations: 1.821 MB / 1.461 GB, free: 10.51 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002713/1.261, allocations: 0.9647 MB / 1.461 GB, free: 9.543 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.0004631/1.261, allocations: 124 kB / 1.462 GB, free: 9.422 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005557/1.267, allocations: 2.49 MB / 1.464 GB, free: 6.926 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.0008137/1.268, allocations: 466.7 kB / 1.464 GB, free: 6.469 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.001659/1.269, allocations: 0.7194 MB / 1.465 GB, free: 5.746 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.006202/1.276, allocations: 2.68 MB / 1.468 GB, free: 3.059 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/1.276, allocations: 0 / 1.468 GB, free: 3.059 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.954e-06/1.276, allocations: 0 / 1.468 GB, free: 3.059 MB / 1.186 GB Notification: Performance of Transformations before backend: time 7.423e-05/1.276, allocations: 0 / 1.468 GB, free: 3.059 MB / 1.186 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004116/1.28, allocations: 1.705 MB / 1.469 GB, free: 1.301 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/1.28, allocations: 8.031 kB / 1.469 GB, free: 1.293 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003/1.283, allocations: 426 kB / 1.47 GB, free: 0.875 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/1.285, allocations: 1.022 MB / 1.471 GB, free: 15.81 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.526e-05/1.285, allocations: 66 kB / 1.471 GB, free: 15.74 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002211/1.285, allocations: 87.84 kB / 1.471 GB, free: 15.66 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/1.287, allocations: 0.8624 MB / 1.472 GB, free: 14.79 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/1.287, allocations: 0 / 1.472 GB, free: 14.79 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.751e-05/1.287, allocations: 32 kB / 1.472 GB, free: 14.76 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-05/1.287, allocations: 30 kB / 1.472 GB, free: 14.73 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/1.289, allocations: 0.8081 MB / 1.473 GB, free: 13.92 MB / 1.201 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.00547/1.295, allocations: 3.646 MB / 1.476 GB, free: 9.98 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/1.296, allocations: 1.093 MB / 1.477 GB, free: 8.77 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006154/1.297, allocations: 374.2 kB / 1.478 GB, free: 8.402 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007247/1.298, allocations: 408.9 kB / 1.478 GB, free: 7.93 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/1.298, allocations: 39.12 kB / 1.478 GB, free: 7.883 MB / 1.201 GB Notification: Performance of pre-optimization done (n=60): time 2.846e-06/1.298, allocations: 0 / 1.478 GB, free: 7.883 MB / 1.201 GB Notification: Performance of matching and sorting (n=60): time 0.002247/1.3, allocations: 0.9546 MB / 1.479 GB, free: 6.926 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/1.3, allocations: 55.97 kB / 1.479 GB, free: 6.859 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/1.301, allocations: 0.8361 MB / 1.48 GB, free: 6 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 8.482e-05/1.301, allocations: 41.7 kB / 1.48 GB, free: 5.953 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/1.302, allocations: 488.1 kB / 1.48 GB, free: 5.469 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/1.302, allocations: 212.8 kB / 1.481 GB, free: 5.258 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/1.302, allocations: 118.2 kB / 1.481 GB, free: 5.137 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.302, allocations: 326 kB / 1.481 GB, free: 4.812 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/1.303, allocations: 254.9 kB / 1.481 GB, free: 4.559 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005967/1.303, allocations: 371.4 kB / 1.482 GB, free: 4.16 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/1.304, allocations: 0.593 MB / 1.482 GB, free: 3.555 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/1.305, allocations: 0 / 1.482 GB, free: 3.555 MB / 1.201 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00145/1.306, allocations: 0.7398 MB / 1.483 GB, free: 2.805 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/1.306, allocations: 4 kB / 1.483 GB, free: 2.801 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.306, allocations: 4 kB / 1.483 GB, free: 2.797 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/1.306, allocations: 4 kB / 1.483 GB, free: 2.793 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/1.307, allocations: 127.8 kB / 1.483 GB, free: 2.668 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/1.307, allocations: 7.984 kB / 1.483 GB, free: 2.66 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/1.308, allocations: 71.61 kB / 1.483 GB, free: 2.59 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/1.308, allocations: 24 kB / 1.483 GB, free: 2.566 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008376/1.308, allocations: 497 kB / 1.484 GB, free: 2.078 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005736/1.309, allocations: 359.5 kB / 1.484 GB, free: 1.691 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001034/1.31, allocations: 0.5812 MB / 1.485 GB, free: 1.098 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.675e-06/1.31, allocations: 0 / 1.485 GB, free: 1.098 MB / 1.201 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001383/1.311, allocations: 0.7242 MB / 1.485 GB, free: 372 kB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/1.311, allocations: 12.11 kB / 1.485 GB, free: 360 kB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/1.311, allocations: 4 kB / 1.485 GB, free: 356 kB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/1.312, allocations: 4 kB / 1.485 GB, free: 352 kB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/1.312, allocations: 123.8 kB / 1.485 GB, free: 228 kB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/1.312, allocations: 4 kB / 1.485 GB, free: 224 kB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008125/1.313, allocations: 59.55 kB / 1.485 GB, free: 164 kB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/1.313, allocations: 24 kB / 1.486 GB, free: 140 kB / 1.201 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (69): * Single equations (assignments): 69 * 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.0002299/1.313, allocations: 216.1 kB / 1.486 GB, free: 15.92 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/1.313, allocations: 102.7 kB / 1.486 GB, free: 15.82 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/1.315, allocations: 0.7431 MB / 1.487 GB, free: 15.07 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/1.315, allocations: 11.94 kB / 1.487 GB, free: 15.06 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/1.315, allocations: 0 / 1.487 GB, free: 15.06 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001207/1.316, allocations: 0.8995 MB / 1.487 GB, free: 14.07 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/1.32, allocations: 2.255 MB / 1.49 GB, free: 11.68 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.32, allocations: 4 kB / 1.49 GB, free: 11.68 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006597/1.321, allocations: 131.8 kB / 1.49 GB, free: 11.55 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/1.321, allocations: 8 kB / 1.49 GB, free: 11.54 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/1.321, allocations: 16 kB / 1.49 GB, free: 11.52 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/1.321, allocations: 4 kB / 1.49 GB, free: 11.52 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.321, allocations: 8.344 kB / 1.49 GB, free: 11.51 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/1.323, allocations: 1.234 MB / 1.491 GB, free: 10.22 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/1.323, allocations: 263.7 kB / 1.491 GB, free: 9.941 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/1.323, allocations: 16 kB / 1.491 GB, free: 9.926 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007615/1.324, allocations: 39.95 kB / 1.491 GB, free: 9.887 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/1.324, allocations: 52.44 kB / 1.491 GB, free: 9.836 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.661e-05/1.324, allocations: 24 kB / 1.491 GB, free: 9.812 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.0008741/1.325, allocations: 0.5861 MB / 1.492 GB, free: 9.215 MB / 1.217 GB Notification: Performance of sort global known variables: time 1.4e-07/1.325, allocations: 0 / 1.492 GB, free: 9.215 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.001463/1.327, allocations: 0.5377 MB / 1.492 GB, free: 8.676 MB / 1.217 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.T) * 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 (60): * Single equations (assignments): 60 * 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.0005937/1.327, allocations: 239.2 kB / 1.493 GB, free: 8.441 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.001858/1.329, allocations: 0.947 MB / 1.494 GB, free: 7.492 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/1.329, allocations: 4 kB / 1.494 GB, free: 7.488 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.0006104/1.33, allocations: 343.2 kB / 1.494 GB, free: 7.152 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/1.333, allocations: 0.5983 MB / 1.495 GB, free: 6.562 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/1.336, allocations: 2.188 MB / 1.497 GB, free: 4.297 MB / 1.217 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000765/1.337, allocations: 1.116 MB / 1.498 GB, free: 3.152 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/1.337, allocations: 87.42 kB / 1.498 GB, free: 3.066 MB / 1.217 GB Notification: Performance of SimCode: time 8.51e-07/1.337, allocations: 3.938 kB / 1.498 GB, free: 3.062 MB / 1.217 GB Notification: Performance of Templates: time 0.02702/1.364, allocations: 17.13 MB / 1.515 GB, free: 2.09 MB / 1.232 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,spl.port_1.m_flow,spl.port_2.m_flow,spl.port_3.m_flow,spl.port_1.p,spl.port_2.p,spl.port_3.p,spl.res1.dp,spl.res2.dp,spl.res3.dp,senTem1.T,senTem2.T,senTem3.T Variables in the result:senTem1.T,senTem2.T,senTem3.T,spl.port_1.m_flow,spl.port_1.p,spl.port_2.m_flow,spl.port_2.p,spl.port_3.m_flow,spl.port_3.p,spl.res1.dp,spl.res2.dp,spl.res3.dp,time