Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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.HeatExchangers.Tests.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001942/0.001942, allocations: 174 kB / 15.77 MB, free: 6.324 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.755/1.755, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008001/0.0008001, allocations: 98.23 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8417/0.8417, allocations: 90.6 MB / 409.1 MB, free: 15 MB / 298.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004411/0.0004411, allocations: 15.98 kB / 485.9 MB, free: 2.094 MB / 362.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5481/0.5486, allocations: 66.28 MB / 0.5392 GB, free: 45.44 MB / 426.8 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.214/0.7626, allocations: 205.6 MB / 0.74 GB, free: 13.89 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.321/1.084, allocations: 17.39 MB / 0.757 GB, free: 6.703 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/1.085, allocations: 21.23 kB / 0.757 GB, free: 6.703 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.001208/1.086, allocations: 451.1 kB / 0.7575 GB, free: 6.699 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.003667/1.09, allocations: 1.406 MB / 0.7588 GB, free: 6.688 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.006282/1.096, allocations: 2.221 MB / 0.761 GB, free: 6.664 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.001997/1.098, allocations: 1.483 MB / 0.7625 GB, free: 6.664 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003676/1.098, allocations: 232 kB / 0.7627 GB, free: 6.609 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/1.1, allocations: 0.9421 MB / 0.7636 GB, free: 6.598 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/1.101, allocations: 495.7 kB / 0.7641 GB, free: 6.598 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 8.846e-05/1.101, allocations: 41.09 kB / 0.7641 GB, free: 6.598 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01116/1.112, allocations: 4.976 MB / 0.769 GB, free: 6.555 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.0003723/1.113, allocations: 158.9 kB / 0.7691 GB, free: 6.555 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 0.0009714/1.114, allocations: 209 kB / 0.7693 GB, free: 22.52 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005438/1.119, allocations: 1.981 MB / 0.7713 GB, free: 22.38 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/1.119, allocations: 0 / 0.7713 GB, free: 22.38 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.984e-06/1.119, allocations: 3.766 kB / 0.7713 GB, free: 22.38 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.52e-05/1.119, allocations: 0 / 0.7713 GB, free: 22.38 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004554/1.124, allocations: 1.601 MB / 0.7728 GB, free: 21.49 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/1.124, allocations: 8.5 kB / 0.7728 GB, free: 21.49 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001793/1.125, allocations: 235.8 kB / 0.7731 GB, free: 21.43 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/1.127, allocations: 0.5613 MB / 0.7736 GB, free: 21.16 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/1.127, allocations: 198.4 kB / 0.7738 GB, free: 21.04 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/1.127, allocations: 85.05 kB / 0.7739 GB, free: 21.04 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/1.129, allocations: 0.9849 MB / 0.7748 GB, free: 20.93 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/1.129, allocations: 0.6562 kB / 0.7748 GB, free: 20.93 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.783e-05/1.129, allocations: 30.59 kB / 0.7749 GB, free: 20.93 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.47e-05/1.129, allocations: 26.77 kB / 0.7749 GB, free: 20.93 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/1.131, allocations: 0.7746 MB / 0.7756 GB, free: 20.91 MB / 0.573 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.005602/1.137, allocations: 3.664 MB / 0.7792 GB, free: 18.95 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/1.139, allocations: 0.932 MB / 0.7801 GB, free: 18.9 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009044/1.14, allocations: 455.5 kB / 0.7806 GB, free: 18.89 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003098/1.143, allocations: 3.115 MB / 0.7836 GB, free: 15.78 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/1.143, allocations: 41.06 kB / 0.7836 GB, free: 15.74 MB / 0.573 GB Notification: Performance of pre-optimization done (n=83): time 3.015e-06/1.143, allocations: 4 kB / 0.7837 GB, free: 15.74 MB / 0.573 GB Notification: Performance of matching and sorting (n=83): time 0.006349/1.149, allocations: 2.204 MB / 0.7858 GB, free: 15.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/1.15, allocations: 60.16 kB / 0.7859 GB, free: 15.24 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/1.15, allocations: 493.5 kB / 0.7863 GB, free: 15.12 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.298e-05/1.15, allocations: 36.8 kB / 0.7864 GB, free: 15.09 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/1.151, allocations: 380.5 kB / 0.7867 GB, free: 14.91 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/1.151, allocations: 290.1 kB / 0.787 GB, free: 14.73 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.911e-05/1.151, allocations: 13.12 kB / 0.787 GB, free: 14.73 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001992/1.151, allocations: 394 kB / 0.7874 GB, free: 14.41 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007883/1.152, allocations: 341.8 kB / 0.7877 GB, free: 14.41 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007964/1.153, allocations: 414.3 kB / 0.7881 GB, free: 14.36 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008344/1.154, allocations: 373.7 kB / 0.7885 GB, free: 14.35 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.154, allocations: 0 / 0.7885 GB, free: 14.35 MB / 0.573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0035/1.157, allocations: 1.332 MB / 0.7898 GB, free: 14.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/1.157, allocations: 9.328 kB / 0.7898 GB, free: 14.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/1.157, allocations: 1.25 kB / 0.7898 GB, free: 14.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008996/1.158, allocations: 277.3 kB / 0.79 GB, free: 14.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008794/1.159, allocations: 206.6 kB / 0.7902 GB, free: 14.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005605/1.165, allocations: 5.023 MB / 0.7952 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009088/1.166, allocations: 98.09 kB / 0.7952 GB, free: 10.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/1.166, allocations: 60.78 kB / 0.7953 GB, free: 10.3 MB / 0.573 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 (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004808/1.166, allocations: 210.3 kB / 0.7955 GB, free: 10.18 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/1.166, allocations: 78.05 kB / 0.7956 GB, free: 10.13 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/1.17, allocations: 1.63 MB / 0.7972 GB, free: 9.957 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/1.17, allocations: 12.58 kB / 0.7972 GB, free: 9.953 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.17, allocations: 6.938 kB / 0.7972 GB, free: 9.949 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/1.17, allocations: 6.891 kB / 0.7972 GB, free: 9.949 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/1.175, allocations: 2.545 MB / 0.7997 GB, free: 9.504 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/1.175, allocations: 2.812 kB / 0.7997 GB, free: 9.504 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009142/1.176, allocations: 204.3 kB / 0.7999 GB, free: 9.504 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007177/1.177, allocations: 275.9 kB / 0.8001 GB, free: 9.469 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.766e-05/1.177, allocations: 42.47 kB / 0.8002 GB, free: 9.465 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005255/1.182, allocations: 5.027 MB / 0.8051 GB, free: 5.645 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.182, allocations: 0 / 0.8051 GB, free: 5.645 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/1.186, allocations: 1.893 MB / 0.8069 GB, free: 5.367 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004536/1.186, allocations: 246 kB / 0.8072 GB, free: 5.219 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/1.186, allocations: 21.12 kB / 0.8072 GB, free: 5.219 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005656/1.187, allocations: 65.2 kB / 0.8073 GB, free: 5.211 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/1.187, allocations: 81.77 kB / 0.8073 GB, free: 5.207 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.187, allocations: 68.95 kB / 0.8074 GB, free: 5.203 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003876/1.188, allocations: 334.2 kB / 0.8077 GB, free: 5.121 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/1.188, allocations: 0 / 0.8077 GB, free: 5.121 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002713/1.19, allocations: 0.6921 MB / 0.8084 GB, free: 5.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (crossFlowNTU.h_out_A,crossFlowNTU.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * 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 (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002192/1.193, allocations: 1.018 MB / 0.8094 GB, free: 4.75 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002757/1.195, allocations: 1.43 MB / 0.8108 GB, free: 4.305 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.195, allocations: 0 / 0.8108 GB, free: 4.305 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001719/1.197, allocations: 1.067 MB / 0.8118 GB, free: 3.883 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/1.198, allocations: 200.8 kB / 0.812 GB, free: 3.867 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/1.202, allocations: 2.563 MB / 0.8145 GB, free: 2.555 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006438/1.203, allocations: 0.9959 MB / 0.8155 GB, free: 1.836 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005214/1.203, allocations: 146.1 kB / 0.8156 GB, free: 1.82 MB / 0.573 GB Notification: Performance of SimCode: time 5.31e-07/1.203, allocations: 0 / 0.8156 GB, free: 1.82 MB / 0.573 GB Notification: Performance of Templates: time 0.03931/1.242, allocations: 30.37 MB / 0.8453 GB, free: 11.17 MB / 0.6043 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches