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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009558/0.0009561, allocations: 92.23 kB / 16.02 MB, free: 80 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.001175/0.001175, allocations: 178.6 kB / 16.92 MB, free: 6.648 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.47/1.47, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.943/2.943, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003682, allocations: 13.41 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3813, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.FlowJunction): time 1.049/1.43, allocations: 234.6 MB / 1.288 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01193/1.442, allocations: 7.217 MB / 1.295 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/1.444, allocations: 45.91 kB / 1.295 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002003/1.446, allocations: 0.5762 MB / 1.296 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006122/1.452, allocations: 1.953 MB / 1.298 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006492/1.459, allocations: 1.865 MB / 1.3 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.006688/1.466, allocations: 4.429 MB / 1.304 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001769/1.467, allocations: 0.9196 MB / 1.305 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004391/1.472, allocations: 1.563 MB / 1.307 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/1.474, allocations: 0.9565 MB / 1.307 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001865/1.474, allocations: 50 kB / 1.307 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006017/1.48, allocations: 2.827 MB / 1.31 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005881/1.481, allocations: 384.2 kB / 1.311 GB, free: 1.906 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00133/1.482, allocations: 0.6619 MB / 1.311 GB, free: 17.87 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00353/1.486, allocations: 1.945 MB / 1.313 GB, free: 17.73 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.486, allocations: 1.188 kB / 1.313 GB, free: 17.73 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.435e-06/1.486, allocations: 0 / 1.313 GB, free: 17.73 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.389e-05/1.486, allocations: 0 / 1.313 GB, free: 17.73 MB / 1.014 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.002915/1.489, allocations: 1.467 MB / 1.315 GB, free: 16.86 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/1.489, allocations: 18 kB / 1.315 GB, free: 16.85 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002709/1.492, allocations: 425.6 kB / 1.315 GB, free: 16.78 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/1.493, allocations: 0.9581 MB / 1.316 GB, free: 16.43 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/1.493, allocations: 62.47 kB / 1.316 GB, free: 16.43 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/1.494, allocations: 81.12 kB / 1.316 GB, free: 16.43 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/1.495, allocations: 0.8818 MB / 1.317 GB, free: 16.36 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/1.495, allocations: 3.938 kB / 1.317 GB, free: 16.36 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.819e-05/1.495, allocations: 35.69 kB / 1.317 GB, free: 16.36 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.369e-05/1.495, allocations: 26.62 kB / 1.317 GB, free: 16.36 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/1.497, allocations: 0.8253 MB / 1.318 GB, free: 16.35 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.004896/1.502, allocations: 3.651 MB / 1.321 GB, free: 14.7 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/1.503, allocations: 1.103 MB / 1.322 GB, free: 14.1 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005649/1.504, allocations: 377.5 kB / 1.323 GB, free: 14.09 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007171/1.504, allocations: 427.8 kB / 1.323 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/1.504, allocations: 41.34 kB / 1.323 GB, free: 13.67 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.535e-06/1.504, allocations: 0 / 1.323 GB, free: 13.67 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002037/1.507, allocations: 0.9868 MB / 1.324 GB, free: 13.57 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/1.507, allocations: 64.88 kB / 1.324 GB, free: 13.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/1.508, allocations: 0.8342 MB / 1.325 GB, free: 13.35 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.55e-05/1.508, allocations: 42.89 kB / 1.325 GB, free: 13.32 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/1.508, allocations: 482.1 kB / 1.326 GB, free: 13.14 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/1.508, allocations: 212.9 kB / 1.326 GB, free: 13.01 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.035e-05/1.508, allocations: 49.12 kB / 1.326 GB, free: 12.99 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001379/1.508, allocations: 331.8 kB / 1.326 GB, free: 12.69 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/1.509, allocations: 263 kB / 1.326 GB, free: 12.68 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/1.509, allocations: 376.2 kB / 1.327 GB, free: 12.59 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009712/1.51, allocations: 0.6082 MB / 1.327 GB, free: 12.53 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/1.51, allocations: 0 / 1.327 GB, free: 12.53 MB / 1.014 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001296/1.512, allocations: 0.761 MB / 1.328 GB, free: 12.43 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.95e-05/1.512, allocations: 124.7 kB / 1.328 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/1.512, allocations: 0 / 1.328 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/1.512, allocations: 3.094 kB / 1.328 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005456/1.512, allocations: 134.2 kB / 1.328 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/1.512, allocations: 7.516 kB / 1.328 GB, free: 12.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/1.513, allocations: 143.3 kB / 1.329 GB, free: 12.26 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.196e-05/1.514, allocations: 22.59 kB / 1.329 GB, free: 12.25 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/1.514, allocations: 9 kB / 1.329 GB, free: 12.25 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001069/1.515, allocations: 0.6275 MB / 1.329 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/1.515, allocations: 0 / 1.329 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.809e-06/1.515, allocations: 5.781 kB / 1.329 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/1.515, allocations: 133.2 kB / 1.329 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/1.515, allocations: 5.125 kB / 1.329 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009218/1.516, allocations: 133.1 kB / 1.329 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/1.516, allocations: 27.25 kB / 1.329 GB, free: 12.2 MB / 1.014 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.000536/1.517, allocations: 381.7 kB / 1.33 GB, free: 12 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/1.517, allocations: 100.7 kB / 1.33 GB, free: 11.95 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/1.518, allocations: 0.7626 MB / 1.331 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/1.518, allocations: 5.812 kB / 1.331 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.518, allocations: 0 / 1.331 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001118/1.519, allocations: 0.93 MB / 1.332 GB, free: 11.43 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/1.523, allocations: 2.266 MB / 1.334 GB, free: 10.76 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/1.523, allocations: 2.938 kB / 1.334 GB, free: 10.76 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006266/1.523, allocations: 138.9 kB / 1.334 GB, free: 10.76 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/1.523, allocations: 13.11 kB / 1.334 GB, free: 10.75 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/1.523, allocations: 18.58 kB / 1.334 GB, free: 10.75 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/1.523, allocations: 5.859 kB / 1.334 GB, free: 10.75 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.523, allocations: 8.5 kB / 1.334 GB, free: 10.75 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/1.525, allocations: 1.259 MB / 1.335 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004942/1.526, allocations: 259.7 kB / 1.335 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/1.526, allocations: 22.08 kB / 1.335 GB, free: 10.28 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008557/1.527, allocations: 95.56 kB / 1.336 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/1.527, allocations: 53.03 kB / 1.336 GB, free: 10.26 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-05/1.527, allocations: 26.56 kB / 1.336 GB, free: 10.26 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000815/1.528, allocations: 0.5824 MB / 1.336 GB, free: 10.15 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.32e-07/1.528, allocations: 0 / 1.336 GB, free: 10.15 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001385/1.529, allocations: 0.5442 MB / 1.337 GB, free: 10.08 MB / 1.014 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.0005238/1.53, allocations: 238.6 kB / 1.337 GB, free: 9.949 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001695/1.532, allocations: 0.966 MB / 1.338 GB, free: 9.934 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.532, allocations: 7.656 kB / 1.338 GB, free: 9.93 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0005467/1.532, allocations: 353.2 kB / 1.338 GB, free: 9.926 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003381/1.535, allocations: 0.6273 MB / 1.339 GB, free: 9.867 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/1.539, allocations: 2.719 MB / 1.342 GB, free: 8.32 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007786/1.54, allocations: 1.128 MB / 1.343 GB, free: 7.598 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/1.54, allocations: 82.69 kB / 1.343 GB, free: 7.59 MB / 1.014 GB Notification: Performance of SimCode: time 7.01e-07/1.54, allocations: 0 / 1.343 GB, free: 7.59 MB / 1.014 GB Notification: Performance of Templates: time 0.0297/1.57, allocations: 17.03 MB / 1.359 GB, free: 1.195 MB / 1.014 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