Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008292/0.0008292, allocations: 171.6 kB / 16.11 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205 MB / 221.9 MB, free: 9.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009313/0.0009313, allocations: 92.55 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6242/0.6242, allocations: 90.51 MB / 408.3 MB, free: 3.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002751, allocations: 12 kB / 484.9 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2319, allocations: 65.8 MB / 0.5378 GB, free: 34.94 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.DynamicBoundaries): time 0.3607/0.5926, allocations: 183.7 MB / 0.7172 GB, free: 0.8477 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.03265/0.6253, allocations: 44.99 MB / 0.7611 GB, free: 192 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002416/0.6278, allocations: 37.41 kB / 0.7611 GB, free: 192 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.004082/0.6319, allocations: 1.776 MB / 0.7629 GB, free: 144 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.008932/0.6408, allocations: 3.537 MB / 0.7663 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.01592/0.6568, allocations: 5.959 MB / 0.7721 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.004578/0.6614, allocations: 4.895 MB / 0.7769 GB, free: 11.01 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008343/0.6622, allocations: 0.7437 MB / 0.7777 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01818/0.6804, allocations: 10.87 MB / 0.7883 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.6822, allocations: 1.447 MB / 0.7897 GB, free: 3.723 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.6824, allocations: 96 kB / 0.7898 GB, free: 3.629 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02014/0.7026, allocations: 10.22 MB / 0.7998 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.000549/0.7032, allocations: 402.9 kB / 0.8001 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.7047, allocations: 1.265 MB / 0.8014 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.01772/0.7224, allocations: 8.787 MB / 0.81 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7225, allocations: 0 / 0.81 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7225, allocations: 4 kB / 0.81 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.246e-05/0.7225, allocations: 0 / 0.81 GB, free: 1.184 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.00939/0.7319, allocations: 3.991 MB / 0.8139 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.732, allocations: 12.02 kB / 0.8139 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00214/0.7341, allocations: 0.5402 MB / 0.8144 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.7356, allocations: 1.202 MB / 0.8156 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.7357, allocations: 168.9 kB / 0.8157 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.736, allocations: 232.4 kB / 0.816 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005475/0.7415, allocations: 2.925 MB / 0.8188 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.03e-05/0.7416, allocations: 4 kB / 0.8188 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001706/0.7417, allocations: 92 kB / 0.8189 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.743e-05/0.7418, allocations: 63.98 kB / 0.819 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005229/0.747, allocations: 2.479 MB / 0.8214 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.759, allocations: 12.61 MB / 0.8337 GB, free: 7.535 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004826/0.7639, allocations: 2.258 MB / 0.8359 GB, free: 5.223 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.7656, allocations: 1.154 MB / 0.837 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05767/0.8233, allocations: 32.6 MB / 0.8689 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.018e-05/0.8234, allocations: 62.5 kB / 0.8689 GB, free: 15.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=226): time 4.579e-06/0.8234, allocations: 4 kB / 0.8689 GB, free: 15.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=226): time 0.01123/0.8346, allocations: 4.713 MB / 0.8735 GB, free: 10.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.8347, allocations: 203.9 kB / 0.8737 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.8359, allocations: 1.136 MB / 0.8748 GB, free: 9.312 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.8361, allocations: 61.7 kB / 0.8749 GB, free: 9.246 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005302/0.8366, allocations: 0.8852 MB / 0.8758 GB, free: 8.352 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/0.8371, allocations: 0.7481 MB / 0.8765 GB, free: 7.609 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.179e-05/0.8372, allocations: 36 kB / 0.8765 GB, free: 7.574 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.8374, allocations: 377.9 kB / 0.8769 GB, free: 7.199 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.8387, allocations: 0.7106 MB / 0.8776 GB, free: 6.488 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.8402, allocations: 0.9611 MB / 0.8785 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003031/0.8432, allocations: 1.85 MB / 0.8803 GB, free: 3.527 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.8432, allocations: 3.938 kB / 0.8803 GB, free: 3.523 MB / 0.6042 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.004349/0.8476, allocations: 2.377 MB / 0.8826 GB, free: 1.117 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.8476, allocations: 7.938 kB / 0.8827 GB, free: 1.109 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.8476, allocations: 11.98 kB / 0.8827 GB, free: 1.098 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008225/0.8485, allocations: 297 kB / 0.8829 GB, free: 0.7891 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.8498, allocations: 371.4 kB / 0.8833 GB, free: 436 kB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006664/0.8564, allocations: 8.948 MB / 0.892 GB, free: 6.695 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.8581, allocations: 226.1 kB / 0.8923 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.8583, allocations: 91.89 kB / 0.8923 GB, free: 6.383 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 24 (source.outlet.state.phase,source1.outlet.state.phase,source2.outlet.state.phase,source3.outlet.state.phase,source4.outlet.state.phase,source5.outlet.state.phase,dynamicPressureInflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007552/0.859, allocations: 403.5 kB / 0.8927 GB, free: 5.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/0.8595, allocations: 189.7 kB / 0.8929 GB, free: 5.793 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00783/0.8673, allocations: 6.123 MB / 0.8989 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.453e-05/0.8673, allocations: 15.95 kB / 0.8989 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.8674, allocations: 0 / 0.8989 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000447/0.8678, allocations: 392.5 kB / 0.8993 GB, free: 15.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002136/0.868, allocations: 44 kB / 0.8993 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.8692, allocations: 139.4 kB / 0.8995 GB, free: 15.03 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.8695, allocations: 187.7 kB / 0.8996 GB, free: 14.85 MB / 0.6355 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006481/0.876, allocations: 4.337 MB / 0.9039 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.007075/0.8831, allocations: 5.741 MB / 0.9095 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002046/0.8851, allocations: 1.682 MB / 0.9111 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0008281/0.886, allocations: 0.7542 MB / 0.9119 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of Backend: time 3.21e-07/0.886, allocations: 0 / 0.9119 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01117/0.8971, allocations: 5.357 MB / 0.9171 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of SimCode: time 0.00709/0.9043, allocations: 6.49 MB / 0.9234 GB, free: 6.512 MB / 0.6511 GB Notification: Performance of Templates: time 0.2802/1.184, allocations: 88.95 MB / 1.01 GB, free: 217.5 MB / 0.6511 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches