Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005201/0.005201, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 195.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6617/0.6617, allocations: 89.46 MB / 380 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 83.86 kB / 0.5139 GB, free: 7.145 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.254, allocations: 67.28 MB / 0.5796 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1518/0.4058, allocations: 149.4 MB / 0.7255 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005303/0.4111, allocations: 4.579 MB / 0.73 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.4114, allocations: 7.938 kB / 0.73 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007044/0.4122, allocations: 282.2 kB / 0.7302 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.4135, allocations: 0.6253 MB / 0.7309 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.4145, allocations: 0.4943 MB / 0.7313 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008539/0.4153, allocations: 0.8828 MB / 0.7322 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.4156, allocations: 158.1 kB / 0.7324 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008103/0.4164, allocations: 478 kB / 0.7328 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006009/0.417, allocations: 442.4 kB / 0.7332 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.4171, allocations: 44 kB / 0.7333 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.4186, allocations: 0.772 MB / 0.734 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.9e-05/0.4187, allocations: 115.5 kB / 0.7341 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000267/0.4189, allocations: 278.6 kB / 0.7344 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.4201, allocations: 0.8609 MB / 0.7352 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4201, allocations: 0 / 0.7352 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4201, allocations: 4 kB / 0.7352 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.4201, allocations: 0 / 0.7352 GB, free: 0.8555 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.2151/0.6353, allocations: 0.8722 MB / 0.7361 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6353, allocations: 9.062 kB / 0.7361 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.6355, allocations: 81.89 kB / 0.7362 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.6356, allocations: 64.69 kB / 0.7362 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.6361, allocations: 379.7 kB / 0.7366 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.6362, allocations: 38.12 kB / 0.7366 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/0.6363, allocations: 46.33 kB / 0.7367 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008761/0.6371, allocations: 0.4969 MB / 0.7372 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.6372, allocations: 4.969 kB / 0.7372 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.6372, allocations: 15.44 kB / 0.7372 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.6372, allocations: 11.34 kB / 0.7372 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007653/0.638, allocations: 487.7 kB / 0.7377 GB, free: 156 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.6401, allocations: 2.14 MB / 0.7398 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007492/0.6409, allocations: 364.1 kB / 0.7401 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.6412, allocations: 207.3 kB / 0.7403 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001961/0.6432, allocations: 1.998 MB / 0.7423 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.6432, allocations: 37.95 kB / 0.7423 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.724e-06/0.6432, allocations: 0.625 kB / 0.7423 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.001492/0.6447, allocations: 0.7816 MB / 0.7431 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.6448, allocations: 57.78 kB / 0.7431 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.6452, allocations: 375.3 kB / 0.7435 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.6452, allocations: 31.27 kB / 0.7435 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.6453, allocations: 230.3 kB / 0.7437 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.6454, allocations: 169.3 kB / 0.7439 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.6456, allocations: 83.05 kB / 0.744 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.699e-05/0.6456, allocations: 358.9 kB / 0.7443 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.6459, allocations: 129.9 kB / 0.7444 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.6462, allocations: 191.2 kB / 0.7446 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005973/0.6468, allocations: 337.6 kB / 0.7449 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.6468, allocations: 1.766 kB / 0.7449 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009369/0.6478, allocations: 0.489 MB / 0.7454 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.6478, allocations: 7.938 kB / 0.7454 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.6478, allocations: 7.094 kB / 0.7454 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.6481, allocations: 64.12 kB / 0.7455 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.6484, allocations: 90.39 kB / 0.7456 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.65, allocations: 2.924 MB / 0.7484 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.6502, allocations: 41.64 kB / 0.7485 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.6503, allocations: 23.83 kB / 0.7485 GB, free: 147.2 MB / 0.5762 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.0001635/0.6504, allocations: 172.8 kB / 0.7487 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.6505, allocations: 53.48 kB / 0.7487 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.6516, allocations: 0.6997 MB / 0.7494 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6516, allocations: 5.25 kB / 0.7494 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6517, allocations: 5.875 kB / 0.7494 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.6517, allocations: 3.984 kB / 0.7494 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.6531, allocations: 1.153 MB / 0.7505 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.6531, allocations: 1.156 kB / 0.7505 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.6534, allocations: 80.8 kB / 0.7506 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.6536, allocations: 67.66 kB / 0.7507 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.6536, allocations: 10.41 kB / 0.7507 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.6549, allocations: 2.941 MB / 0.7536 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6549, allocations: 5.531 kB / 0.7536 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009552/0.6559, allocations: 0.7458 MB / 0.7543 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.486e-05/0.656, allocations: 138.2 kB / 0.7544 GB, free: 142 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.6561, allocations: 13.17 kB / 0.7544 GB, free: 142 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.6563, allocations: 14.16 kB / 0.7544 GB, free: 142 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.874e-05/0.6563, allocations: 37.95 kB / 0.7545 GB, free: 142 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.6564, allocations: 17.55 kB / 0.7545 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002594/0.6566, allocations: 296.6 kB / 0.7548 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6566, allocations: 0 / 0.7548 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005567/0.6572, allocations: 187.5 kB / 0.755 GB, free: 141.7 MB / 0.5762 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.001278/0.6585, allocations: 1.468 MB / 0.7564 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007554/0.6593, allocations: 0.5843 MB / 0.757 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6593, allocations: 0 / 0.757 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.6597, allocations: 451.8 kB / 0.7574 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.6606, allocations: 167.8 kB / 0.7576 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.6648, allocations: 4.308 MB / 0.7618 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.665, allocations: 0.8356 MB / 0.7626 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000273/0.6653, allocations: 108.9 kB / 0.7627 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.6655, allocations: 183.4 kB / 0.7629 GB, free: 134.4 MB / 0.5762 GB Notification: Performance of SimCode: time 3.8e-07/0.6655, allocations: 0 / 0.7629 GB, free: 134.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04738/0.7129, allocations: 15.23 MB / 0.7777 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.72, allocations: 14.89 kB / 0.7777 GB, free: 119.4 MB / 0.5762 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_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/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches