Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.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-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",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.0009776/0.0009775, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001146/0.001146, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7342/0.7342, allocations: 89.66 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003696, allocations: 17.56 kB / 460.1 MB, free: 24.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.159, allocations: 68.83 MB / 0.5166 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.4796/0.6386, allocations: 145.1 MB / 0.6583 GB, free: 6.195 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01288/0.6516, allocations: 10.19 MB / 0.6683 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009309/0.6526, allocations: 18.41 kB / 0.6683 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.6537, allocations: 389.2 kB / 0.6686 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.6561, allocations: 0.858 MB / 0.6695 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.6578, allocations: 0.5606 MB / 0.67 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.6591, allocations: 1.241 MB / 0.6712 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.6594, allocations: 163.1 kB / 0.6714 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000762/0.6601, allocations: 469.2 kB / 0.6718 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005639/0.6607, allocations: 493.8 kB / 0.6723 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.476e-05/0.6608, allocations: 30.47 kB / 0.6723 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.6632, allocations: 1.162 MB / 0.6735 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.6633, allocations: 110.2 kB / 0.6736 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.6635, allocations: 163.2 kB / 0.6737 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.6645, allocations: 0.8481 MB / 0.6746 GB, free: 9.535 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.6645, allocations: 4 kB / 0.6746 GB, free: 9.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.6645, allocations: 0 / 0.6746 GB, free: 9.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.6646, allocations: 0 / 0.6746 GB, free: 9.531 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001761/0.6663, allocations: 1.013 MB / 0.6756 GB, free: 8.469 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.6664, allocations: 12.03 kB / 0.6756 GB, free: 8.457 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.402e-05/0.6665, allocations: 90.52 kB / 0.6757 GB, free: 8.359 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.6666, allocations: 79.94 kB / 0.6757 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006012/0.6672, allocations: 482.7 kB / 0.6762 GB, free: 7.77 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.6672, allocations: 37 kB / 0.6762 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.6673, allocations: 55.91 kB / 0.6763 GB, free: 7.68 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007756/0.6681, allocations: 0.5597 MB / 0.6768 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.6681, allocations: 0 / 0.6768 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.6682, allocations: 27.92 kB / 0.6769 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.6682, allocations: 12 kB / 0.6769 GB, free: 7.047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007871/0.669, allocations: 495.6 kB / 0.6773 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/0.6717, allocations: 2.444 MB / 0.6797 GB, free: 3.941 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.6722, allocations: 338.5 kB / 0.68 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.6725, allocations: 215.4 kB / 0.6803 GB, free: 3.355 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002309/0.6748, allocations: 2.522 MB / 0.6827 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.6748, allocations: 38.55 kB / 0.6828 GB, free: 472 kB / 494.1 MB Notification: Performance of pre-optimization done (n=48): time 1.854e-06/0.6748, allocations: 0 / 0.6828 GB, free: 472 kB / 494.1 MB Notification: Performance of matching and sorting (n=48): time 0.001883/0.6767, allocations: 1.027 MB / 0.6838 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.6768, allocations: 136.5 kB / 0.6839 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007022/0.6775, allocations: 0.6019 MB / 0.6845 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.6776, allocations: 37.7 kB / 0.6845 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.6778, allocations: 300.6 kB / 0.6848 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.6779, allocations: 173.5 kB / 0.685 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.678, allocations: 12 kB / 0.685 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6781, allocations: 378.7 kB / 0.6853 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.6783, allocations: 121.1 kB / 0.6854 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.6786, allocations: 184.4 kB / 0.6856 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.6789, allocations: 160 kB / 0.6858 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.6789, allocations: 0 / 0.6858 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00111/0.68, allocations: 0.6009 MB / 0.6864 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.68, allocations: 4 kB / 0.6864 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.68, allocations: 8.125 kB / 0.6864 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007363/0.6808, allocations: 223.2 kB / 0.6866 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006264/0.6814, allocations: 107.9 kB / 0.6867 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003098/0.6845, allocations: 4.444 MB / 0.691 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.6848, allocations: 51.5 kB / 0.6911 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.6849, allocations: 19.98 kB / 0.6911 GB, free: 7.371 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (42): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.6851, allocations: 175.3 kB / 0.6913 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.6853, allocations: 71.22 kB / 0.6913 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.6865, allocations: 0.6959 MB / 0.692 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.6865, allocations: 4 kB / 0.692 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.6865, allocations: 8 kB / 0.692 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.6865, allocations: 4.125 kB / 0.692 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.6883, allocations: 1.42 MB / 0.6934 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.6883, allocations: 4 kB / 0.6934 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.6885, allocations: 51.92 kB / 0.6935 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003718/0.6889, allocations: 139.3 kB / 0.6936 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.312e-05/0.6889, allocations: 15.94 kB / 0.6936 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004002/0.693, allocations: 5.371 MB / 0.6989 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.693, allocations: 4.031 kB / 0.6989 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.6942, allocations: 0.9443 MB / 0.6998 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.6944, allocations: 176 kB / 0.7 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/0.6945, allocations: 8 kB / 0.7 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.6949, allocations: 11.94 kB / 0.7 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.695, allocations: 43.91 kB / 0.7 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.695, allocations: 15.98 kB / 0.7 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005994/0.6956, allocations: 487 kB / 0.7005 GB, free: 13 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6956, allocations: 0 / 0.7005 GB, free: 13 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001008/0.6966, allocations: 307.5 kB / 0.7008 GB, free: 12.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (flowResistance1.m_flow,flowResistance3.m_flow,flowResistance.m_flow,flowResistance2.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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001969/0.6986, allocations: 1.823 MB / 0.7026 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001301/0.6999, allocations: 0.5882 MB / 0.7031 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6999, allocations: 3.938 kB / 0.7031 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.7007, allocations: 0.6276 MB / 0.7038 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.7021, allocations: 269.4 kB / 0.704 GB, free: 9.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006732/0.7089, allocations: 4.168 MB / 0.7081 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.7095, allocations: 0.8944 MB / 0.709 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004821/0.71, allocations: 111.6 kB / 0.7091 GB, free: 3.965 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.7103, allocations: 255.3 kB / 0.7093 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of SimCode: time 6.81e-07/0.7103, allocations: 0 / 0.7093 GB, free: 3.715 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04368/0.754, allocations: 22.19 MB / 0.731 GB, free: 13.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.7542, allocations: 214.7 kB / 0.7312 GB, free: 13.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.213, allocations: 0 / 0.7312 GB, free: 13.57 MB / 0.545 GB (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat does not exist to compare? outputFormat=mat