Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008417/0.008416, allocations: 169.8 kB / 15.12 MB, free: 5.559 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.58/1.58, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009258/0.0009258, allocations: 98.84 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7311/0.7311, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004265/0.0004267, allocations: 12 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4402/0.4406, allocations: 66.28 MB / 0.5386 GB, free: 45.57 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1511/0.5918, allocations: 126.8 MB / 0.6624 GB, free: 12.92 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.5981, allocations: 3.853 MB / 0.6661 GB, free: 9.062 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006802/0.5989, allocations: 8 kB / 0.6661 GB, free: 9.055 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000987/0.5999, allocations: 234.8 kB / 0.6664 GB, free: 8.824 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001899/0.6018, allocations: 0.6192 MB / 0.667 GB, free: 8.203 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.603, allocations: 359.1 kB / 0.6673 GB, free: 7.852 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.6041, allocations: 0.573 MB / 0.6679 GB, free: 7.277 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003196/0.6044, allocations: 127.8 kB / 0.668 GB, free: 7.156 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009081/0.6053, allocations: 370.7 kB / 0.6683 GB, free: 6.793 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006114/0.6059, allocations: 342.8 kB / 0.6687 GB, free: 6.457 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 9.093e-05/0.6061, allocations: 20 kB / 0.6687 GB, free: 6.438 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.6078, allocations: 0.7568 MB / 0.6694 GB, free: 5.68 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.608, allocations: 80.59 kB / 0.6695 GB, free: 5.602 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.6082, allocations: 121.5 kB / 0.6696 GB, free: 5.477 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000956/0.6092, allocations: 0.5989 MB / 0.6702 GB, free: 4.887 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.6092, allocations: 0 / 0.6702 GB, free: 4.887 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6092, allocations: 0 / 0.6702 GB, free: 4.887 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.6092, allocations: 0 / 0.6702 GB, free: 4.887 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00152/0.6108, allocations: 0.7952 MB / 0.671 GB, free: 4.047 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.6108, allocations: 8.031 kB / 0.671 GB, free: 4.039 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.611, allocations: 59.34 kB / 0.671 GB, free: 3.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.6115, allocations: 366.6 kB / 0.6714 GB, free: 3.582 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.6115, allocations: 34.97 kB / 0.6714 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.771e-05/0.6116, allocations: 40 kB / 0.6715 GB, free: 3.512 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007587/0.6124, allocations: 450.4 kB / 0.6719 GB, free: 3.066 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.6124, allocations: 4 kB / 0.6719 GB, free: 3.062 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.6125, allocations: 20 kB / 0.6719 GB, free: 3.043 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.6125, allocations: 11.98 kB / 0.6719 GB, free: 3.031 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007392/0.6132, allocations: 491.8 kB / 0.6724 GB, free: 2.547 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.6157, allocations: 2.206 MB / 0.6746 GB, free: 100 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009382/0.6167, allocations: 0.5409 MB / 0.6751 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009298/0.6176, allocations: 0.6006 MB / 0.6757 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.6176, allocations: 43.11 kB / 0.6757 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 3.727e-06/0.6177, allocations: 0 / 0.6757 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.002067/0.6197, allocations: 1.295 MB / 0.677 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.6198, allocations: 59.97 kB / 0.677 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.6202, allocations: 325.7 kB / 0.6773 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.6202, allocations: 37.7 kB / 0.6774 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.6204, allocations: 208.7 kB / 0.6776 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.6206, allocations: 197 kB / 0.6778 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/0.6206, allocations: 9.219 kB / 0.6778 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.6208, allocations: 358.7 kB / 0.6781 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.6212, allocations: 193 kB / 0.6783 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.6215, allocations: 196.9 kB / 0.6785 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.6219, allocations: 214.1 kB / 0.6787 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6219, allocations: 0 / 0.6787 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001066/0.623, allocations: 0.6017 MB / 0.6793 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.623, allocations: 7.953 kB / 0.6793 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.623, allocations: 0 / 0.6793 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003584/0.6234, allocations: 59.05 kB / 0.6793 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003131/0.6237, allocations: 87.89 kB / 0.6794 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/0.6262, allocations: 2.735 MB / 0.6821 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.6265, allocations: 41.25 kB / 0.6821 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-05/0.6266, allocations: 20.73 kB / 0.6822 GB, free: 7.734 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.6269, allocations: 169.8 kB / 0.6823 GB, free: 7.559 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.627, allocations: 47.39 kB / 0.6824 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.6286, allocations: 0.7755 MB / 0.6831 GB, free: 6.75 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.6286, allocations: 7.984 kB / 0.6831 GB, free: 6.742 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.6286, allocations: 4 kB / 0.6831 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.6286, allocations: 7.953 kB / 0.6831 GB, free: 6.73 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.6313, allocations: 1.47 MB / 0.6846 GB, free: 5.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.6313, allocations: 6.219 kB / 0.6846 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.6316, allocations: 91.88 kB / 0.6847 GB, free: 5.102 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002624/0.6319, allocations: 69.83 kB / 0.6847 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.632, allocations: 23.97 kB / 0.6848 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.6343, allocations: 2.743 MB / 0.6874 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.6344, allocations: 7.969 kB / 0.6874 GB, free: 1.98 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.6361, allocations: 1.057 MB / 0.6885 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.6363, allocations: 128.5 kB / 0.6886 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.6364, allocations: 15.44 kB / 0.6886 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.6367, allocations: 31.83 kB / 0.6886 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.6369, allocations: 48.45 kB / 0.6887 GB, free: 0.6445 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.652e-05/0.6369, allocations: 25.48 kB / 0.6887 GB, free: 0.6211 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002555/0.6372, allocations: 235.2 kB / 0.6889 GB, free: 408 kB / 0.4948 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6372, allocations: 4 kB / 0.6889 GB, free: 404 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0008048/0.638, allocations: 207.7 kB / 0.6891 GB, free: 196 kB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * 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 (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005763/0.6386, allocations: 292.9 kB / 0.6894 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.64, allocations: 0.805 MB / 0.6902 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.64, allocations: 0 / 0.6902 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008762/0.6409, allocations: 0.6053 MB / 0.6908 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008992/0.6418, allocations: 142.9 kB / 0.6909 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.6439, allocations: 1.25 MB / 0.6922 GB, free: 13.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.6444, allocations: 0.8672 MB / 0.693 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004503/0.6448, allocations: 105.7 kB / 0.6931 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.645, allocations: 51.42 kB / 0.6932 GB, free: 12 MB / 0.5105 GB Notification: Performance of SimCode: time 1.764e-06/0.645, allocations: 0 / 0.6932 GB, free: 12 MB / 0.5105 GB Notification: Performance of Templates: time 0.01864/0.6637, allocations: 10.53 MB / 0.7034 GB, free: 1.668 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches