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: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007733/0.0007733, allocations: 180.4 kB / 15.45 MB, free: 6.234 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.156/1.156, allocations: 205 MB / 221.2 MB, free: 1.824 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006827/0.0006826, allocations: 101.5 kB / 269.2 MB, free: 1.777 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4567/0.4567, allocations: 90.52 MB / 407.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002542, allocations: 12 kB / 484.3 MB, free: 3.473 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09072/0.09098, allocations: 65.81 MB / 0.5372 GB, free: 1.586 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.2953/0.3863, allocations: 145.9 MB / 0.6797 GB, free: 6.234 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004078/0.3904, allocations: 4.607 MB / 0.6842 GB, free: 1.609 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.3906, allocations: 4 kB / 0.6842 GB, free: 1.605 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005473/0.3911, allocations: 242.7 kB / 0.6844 GB, free: 1.367 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009156/0.392, allocations: 0.6179 MB / 0.685 GB, free: 0.7461 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006536/0.3927, allocations: 438.6 kB / 0.6854 GB, free: 324 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000842/0.3936, allocations: 1.253 MB / 0.6867 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.3938, allocations: 136.4 kB / 0.6868 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005941/0.3944, allocations: 430.2 kB / 0.6872 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004224/0.3948, allocations: 462.2 kB / 0.6877 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.3948, allocations: 27.94 kB / 0.6877 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.396, allocations: 0.8927 MB / 0.6886 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.744e-05/0.3961, allocations: 91.55 kB / 0.6886 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.3963, allocations: 262.5 kB / 0.6889 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0009101/0.3972, allocations: 0.9229 MB / 0.6898 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3972, allocations: 0 / 0.6898 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3972, allocations: 4 kB / 0.6898 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3972, allocations: 0 / 0.6898 GB, free: 11.85 MB / 0.4948 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.001068/0.3983, allocations: 0.7918 MB / 0.6906 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.3984, allocations: 12.03 kB / 0.6906 GB, free: 11 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.187e-05/0.3984, allocations: 82.7 kB / 0.6907 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.602e-05/0.3985, allocations: 56.28 kB / 0.6907 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.3989, allocations: 383.7 kB / 0.6911 GB, free: 10.44 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.3989, allocations: 29.38 kB / 0.6911 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.399, allocations: 40.56 kB / 0.6911 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.3996, allocations: 462.4 kB / 0.6916 GB, free: 9.914 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3996, allocations: 4 kB / 0.6916 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.3997, allocations: 16 kB / 0.6916 GB, free: 9.895 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3997, allocations: 15.98 kB / 0.6916 GB, free: 9.879 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000647/0.4003, allocations: 491.8 kB / 0.6921 GB, free: 9.395 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.4023, allocations: 2.174 MB / 0.6942 GB, free: 6.969 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007652/0.4031, allocations: 0.5483 MB / 0.6947 GB, free: 6.414 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/0.4035, allocations: 274.5 kB / 0.695 GB, free: 6.145 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00077/0.4042, allocations: 0.5928 MB / 0.6956 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.4043, allocations: 39.12 kB / 0.6956 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 1.883e-06/0.4043, allocations: 0 / 0.6956 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.001586/0.4059, allocations: 0.998 MB / 0.6966 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.4059, allocations: 63.97 kB / 0.6967 GB, free: 4.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.4062, allocations: 317.7 kB / 0.697 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.4062, allocations: 41.69 kB / 0.697 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4063, allocations: 200.9 kB / 0.6972 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.4065, allocations: 201 kB / 0.6974 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.275e-05/0.4065, allocations: 12 kB / 0.6974 GB, free: 3.492 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4066, allocations: 350.8 kB / 0.6977 GB, free: 3.141 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.4069, allocations: 197 kB / 0.6979 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.4072, allocations: 197 kB / 0.6981 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.4078, allocations: 463.9 kB / 0.6985 GB, free: 2.301 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4079, allocations: 3.938 kB / 0.6986 GB, free: 2.297 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009076/0.4088, allocations: 0.6056 MB / 0.6991 GB, free: 1.68 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.4088, allocations: 4 kB / 0.6991 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4088, allocations: 3.938 kB / 0.6992 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002361/0.409, allocations: 57.67 kB / 0.6992 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.4093, allocations: 91.89 kB / 0.6993 GB, free: 1.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.411, allocations: 2.717 MB / 0.7019 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.4112, allocations: 43.69 kB / 0.702 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.4113, allocations: 19.98 kB / 0.702 GB, free: 14.47 MB / 0.5105 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 (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.0001636/0.4115, allocations: 169.7 kB / 0.7022 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.041e-05/0.4115, allocations: 47.44 kB / 0.7022 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.4128, allocations: 0.7781 MB / 0.703 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.4128, allocations: 15.98 kB / 0.703 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.4128, allocations: 0 / 0.703 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4128, allocations: 3.984 kB / 0.703 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.4147, allocations: 1.454 MB / 0.7044 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4147, allocations: 0 / 0.7044 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.415, allocations: 95.89 kB / 0.7045 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.4152, allocations: 77.66 kB / 0.7046 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.585e-05/0.4152, allocations: 23.98 kB / 0.7046 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.4169, allocations: 2.717 MB / 0.7073 GB, free: 8.742 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.4169, allocations: 4.031 kB / 0.7073 GB, free: 8.738 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.4183, allocations: 1.061 MB / 0.7083 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.49e-05/0.4184, allocations: 124.4 kB / 0.7084 GB, free: 7.508 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/0.4184, allocations: 16 kB / 0.7084 GB, free: 7.492 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.4187, allocations: 23.84 kB / 0.7085 GB, free: 7.469 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.4188, allocations: 48.44 kB / 0.7085 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.4188, allocations: 27.98 kB / 0.7085 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001911/0.419, allocations: 235.2 kB / 0.7088 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.419, allocations: 0 / 0.7088 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004936/0.4195, allocations: 211.8 kB / 0.709 GB, free: 6.961 MB / 0.5105 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 (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.001865/0.4214, allocations: 1.781 MB / 0.7107 GB, free: 5.145 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.4224, allocations: 0.8056 MB / 0.7115 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4224, allocations: 0 / 0.7115 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006431/0.4231, allocations: 0.6162 MB / 0.7121 GB, free: 3.652 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007599/0.4238, allocations: 153.3 kB / 0.7122 GB, free: 3.504 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005044/0.4289, allocations: 4.637 MB / 0.7168 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.4292, allocations: 0.8441 MB / 0.7176 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002992/0.4295, allocations: 108.4 kB / 0.7177 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.4298, allocations: 195.4 kB / 0.7179 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of SimCode: time 3.3e-07/0.4298, allocations: 0 / 0.7179 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7379/1.168, allocations: 15.61 MB / 0.7331 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002881/1.168, allocations: 268.7 kB / 0.7334 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/3.374, allocations: 64 / 0.7334 GB, free: 13.88 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > 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