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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 108.3 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7743/0.7743, allocations: 94.59 MB / 397.3 MB, free: 284 kB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/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: "" <> 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: Performance of FrontEnd - loaded program: time 0.002493/0.002493, allocations: 81.83 kB / 0.5416 GB, free: 42.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.116, allocations: 71.86 MB / 0.6118 GB, free: 10.1 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4955/0.6115, allocations: 150 MB / 0.7583 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005561/0.6171, allocations: 4.65 MB / 0.7628 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008035/0.6179, allocations: 28.78 kB / 0.7628 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.619, allocations: 299.1 kB / 0.7631 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.6211, allocations: 0.6782 MB / 0.7638 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.6226, allocations: 0.4969 MB / 0.7643 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001482/0.6241, allocations: 0.9796 MB / 0.7652 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.6244, allocations: 99.08 kB / 0.7653 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.6258, allocations: 0.5241 MB / 0.7658 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008981/0.6267, allocations: 479.6 kB / 0.7663 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.6268, allocations: 42.97 kB / 0.7663 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.6287, allocations: 0.78 MB / 0.7671 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.6289, allocations: 123.3 kB / 0.7672 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.6292, allocations: 315.5 kB / 0.7675 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.6312, allocations: 0.9718 MB / 0.7685 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.6312, allocations: 0 / 0.7685 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6312, allocations: 0 / 0.7685 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.6312, allocations: 2 kB / 0.7685 GB, free: 2.125 MB / 0.5762 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.001669/0.6329, allocations: 0.99 MB / 0.7694 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.633, allocations: 9.469 kB / 0.7694 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.869e-05/0.633, allocations: 85.42 kB / 0.7695 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.6332, allocations: 75.88 kB / 0.7696 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.6345, allocations: 0.5557 MB / 0.7701 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.6345, allocations: 27.34 kB / 0.7702 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.6346, allocations: 49.91 kB / 0.7702 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006712/0.6353, allocations: 0.5048 MB / 0.7707 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.6353, allocations: 6.266 kB / 0.7707 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.6353, allocations: 15.03 kB / 0.7707 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.6353, allocations: 10.06 kB / 0.7707 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000742/0.6361, allocations: 485 kB / 0.7712 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.6385, allocations: 2.168 MB / 0.7733 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007539/0.6392, allocations: 338.4 kB / 0.7736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002638/0.6395, allocations: 183.1 kB / 0.7738 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00248/0.642, allocations: 1.996 MB / 0.7758 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.642, allocations: 37.41 kB / 0.7758 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.593e-06/0.642, allocations: 0 / 0.7758 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001609/0.6436, allocations: 0.798 MB / 0.7766 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.6436, allocations: 57.62 kB / 0.7766 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004646/0.6441, allocations: 486.1 kB / 0.7771 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.6441, allocations: 36.36 kB / 0.7771 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.6443, allocations: 271 kB / 0.7774 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.187e-05/0.6444, allocations: 169.6 kB / 0.7775 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.6445, allocations: 85.19 kB / 0.7776 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.6447, allocations: 372.5 kB / 0.778 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.6449, allocations: 129.8 kB / 0.7781 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.6452, allocations: 183.9 kB / 0.7783 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004527/0.6456, allocations: 344 kB / 0.7786 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6456, allocations: 0.6875 kB / 0.7786 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007457/0.6464, allocations: 0.4986 MB / 0.7791 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.6464, allocations: 7.875 kB / 0.7791 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.6464, allocations: 11.53 kB / 0.7791 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.6467, allocations: 68.44 kB / 0.7792 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.647, allocations: 87.05 kB / 0.7793 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.6493, allocations: 2.919 MB / 0.7821 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.6496, allocations: 47.62 kB / 0.7822 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.876e-05/0.6496, allocations: 22.94 kB / 0.7822 GB, free: 10.05 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.0002207/0.6499, allocations: 175.6 kB / 0.7823 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.65, allocations: 60.28 kB / 0.7824 GB, free: 9.898 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.6512, allocations: 0.7158 MB / 0.7831 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.6512, allocations: 6.844 kB / 0.7831 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6512, allocations: 3.875 kB / 0.7831 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.6512, allocations: 0 / 0.7831 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.653, allocations: 1.189 MB / 0.7843 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.653, allocations: 2.312 kB / 0.7843 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.6532, allocations: 82.11 kB / 0.7844 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.6534, allocations: 59.41 kB / 0.7844 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.6534, allocations: 22.66 kB / 0.7844 GB, free: 9.359 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.6557, allocations: 2.927 MB / 0.7873 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6557, allocations: 2.562 kB / 0.7873 GB, free: 6.652 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.6569, allocations: 0.7593 MB / 0.788 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.6571, allocations: 144.7 kB / 0.7882 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.829e-05/0.6572, allocations: 14.31 kB / 0.7882 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.6574, allocations: 10.34 kB / 0.7882 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.676e-05/0.6575, allocations: 45.88 kB / 0.7882 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.6575, allocations: 16.58 kB / 0.7883 GB, free: 6.289 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003655/0.6579, allocations: 366.9 kB / 0.7886 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.6579, allocations: 0 / 0.7886 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007155/0.6586, allocations: 200.7 kB / 0.7888 GB, free: 6.176 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.00168/0.6603, allocations: 1.476 MB / 0.7902 GB, free: 5.402 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001019/0.6613, allocations: 0.5682 MB / 0.7908 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6613, allocations: 0 / 0.7908 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.6619, allocations: 425.2 kB / 0.7912 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008861/0.6628, allocations: 192.6 kB / 0.7914 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006332/0.6691, allocations: 4.77 MB / 0.796 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.6696, allocations: 0.8728 MB / 0.7969 GB, free: 2.41 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005263/0.6701, allocations: 120.1 kB / 0.797 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.6704, allocations: 238.9 kB / 0.7972 GB, free: 2.379 MB / 0.5919 GB Notification: Performance of SimCode: time 8.52e-07/0.6704, allocations: 4.906 kB / 0.7972 GB, free: 2.375 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05326/0.7237, allocations: 16.76 MB / 0.8136 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/12.03, allocations: 15.11 kB / 0.8136 GB, free: 13.93 MB / 0.6075 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.544388486072421]