Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 108.9 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8303/0.8303, allocations: 100.3 MB / 409.1 MB, free: 4.75 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002511/0.002511, allocations: 84.61 kB / 0.5582 GB, free: 36.19 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1413, allocations: 74.43 MB / 0.6309 GB, free: 9.164 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.6027/0.7441, allocations: 150.1 MB / 0.7774 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005627/0.7497, allocations: 4.654 MB / 0.782 GB, free: 260 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008993/0.7506, allocations: 41.5 kB / 0.782 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008715/0.7515, allocations: 293 kB / 0.7823 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002261/0.7537, allocations: 0.6862 MB / 0.7829 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.7554, allocations: 0.4947 MB / 0.7834 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001588/0.757, allocations: 0.9826 MB / 0.7844 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.7573, allocations: 109 kB / 0.7845 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001297/0.7586, allocations: 0.5414 MB / 0.785 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007802/0.7594, allocations: 471.2 kB / 0.7855 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.474e-05/0.7594, allocations: 45.12 kB / 0.7855 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.7614, allocations: 0.7832 MB / 0.7863 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.7616, allocations: 119.8 kB / 0.7864 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003386/0.7619, allocations: 315.2 kB / 0.7867 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.7636, allocations: 0.9673 MB / 0.7876 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.7637, allocations: 5.406 kB / 0.7876 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7637, allocations: 0 / 0.7876 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.475e-05/0.7637, allocations: 0 / 0.7876 GB, free: 15.36 MB / 0.5919 GB 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.001702/0.7654, allocations: 0.9919 MB / 0.7886 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.7654, allocations: 11.27 kB / 0.7886 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.7655, allocations: 80.78 kB / 0.7887 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.7657, allocations: 77.88 kB / 0.7888 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009049/0.7666, allocations: 0.5472 MB / 0.7893 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.7666, allocations: 41.12 kB / 0.7894 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.7667, allocations: 40.88 kB / 0.7894 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008152/0.7675, allocations: 0.5043 MB / 0.7899 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.7675, allocations: 0 / 0.7899 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.7675, allocations: 17.75 kB / 0.7899 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.7676, allocations: 11.12 kB / 0.7899 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007/0.7683, allocations: 485.4 kB / 0.7904 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.7709, allocations: 2.174 MB / 0.7925 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007046/0.7716, allocations: 333.5 kB / 0.7928 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/0.7719, allocations: 190.6 kB / 0.793 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002797/0.7747, allocations: 1.99 MB / 0.7949 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.7747, allocations: 47.84 kB / 0.795 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.195e-06/0.7747, allocations: 0 / 0.795 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001655/0.7764, allocations: 0.7984 MB / 0.7958 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.7765, allocations: 59.47 kB / 0.7958 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.777, allocations: 479.4 kB / 0.7963 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.777, allocations: 34.67 kB / 0.7963 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.7772, allocations: 270.6 kB / 0.7966 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.7773, allocations: 175.2 kB / 0.7967 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.7775, allocations: 81.55 kB / 0.7968 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002346/0.7777, allocations: 373.4 kB / 0.7972 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.7779, allocations: 126.6 kB / 0.7973 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.7782, allocations: 181.8 kB / 0.7975 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/0.7788, allocations: 346.9 kB / 0.7978 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7788, allocations: 0 / 0.7978 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008798/0.7796, allocations: 0.5065 MB / 0.7983 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.7797, allocations: 5.062 kB / 0.7983 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.7797, allocations: 4.672 kB / 0.7983 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002833/0.7799, allocations: 64.8 kB / 0.7984 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.7802, allocations: 90.77 kB / 0.7984 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.7828, allocations: 2.926 MB / 0.8013 GB, free: 7.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.7832, allocations: 44.08 kB / 0.8013 GB, free: 7.133 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/0.7833, allocations: 18.12 kB / 0.8014 GB, free: 7.133 MB / 0.5919 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002648/0.7835, allocations: 171 kB / 0.8015 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.7837, allocations: 70.19 kB / 0.8016 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.785, allocations: 0.7036 MB / 0.8023 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.785, allocations: 5.188 kB / 0.8023 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.785, allocations: 0 / 0.8023 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.785, allocations: 5.562 kB / 0.8023 GB, free: 6.82 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.7868, allocations: 1.194 MB / 0.8035 GB, free: 6.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.7869, allocations: 4.5 kB / 0.8035 GB, free: 6.422 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.7871, allocations: 73.62 kB / 0.8035 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000223/0.7873, allocations: 72.02 kB / 0.8036 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.7874, allocations: 17.08 kB / 0.8036 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002574/0.7899, allocations: 2.929 MB / 0.8065 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.7899, allocations: 0.5625 kB / 0.8065 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.7914, allocations: 0.7561 MB / 0.8072 GB, free: 3.418 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.7916, allocations: 150.7 kB / 0.8074 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/0.7917, allocations: 12.66 kB / 0.8074 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.7919, allocations: 12.66 kB / 0.8074 GB, free: 3.277 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.792, allocations: 41.72 kB / 0.8074 GB, free: 3.273 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.7921, allocations: 20.05 kB / 0.8074 GB, free: 3.27 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005253/0.7926, allocations: 366.9 kB / 0.8078 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.7926, allocations: 3.938 kB / 0.8078 GB, free: 3.18 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007188/0.7933, allocations: 200.7 kB / 0.808 GB, free: 3.152 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002022/0.7953, allocations: 1.478 MB / 0.8094 GB, free: 2.34 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001156/0.7965, allocations: 0.565 MB / 0.81 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7965, allocations: 0 / 0.81 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006648/0.7972, allocations: 429 kB / 0.8104 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.7983, allocations: 192.8 kB / 0.8106 GB, free: 1.828 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008541/0.8068, allocations: 4.761 MB / 0.8152 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006307/0.8075, allocations: 0.8716 MB / 0.8161 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006233/0.8081, allocations: 121.8 kB / 0.8162 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.8084, allocations: 234.4 kB / 0.8164 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of SimCode: time 1.042e-06/0.8084, allocations: 0 / 0.8164 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0579/0.8664, allocations: 16.75 MB / 0.8328 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/13.06, allocations: 13.34 kB / 0.8328 GB, free: 6.004 MB / 0.6075 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.87041753390804]