Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.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.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance",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.007351/0.007351, allocations: 168.2 kB / 15.13 MB, free: 6.023 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.237/1.237, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007406/0.0007406, allocations: 86.27 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6148/0.6148, allocations: 90.6 MB / 408.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003091, allocations: 8 kB / 485.3 MB, free: 1.934 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.325, allocations: 66.28 MB / 0.5387 GB, free: 45.56 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.156/0.481, allocations: 145.3 MB / 0.6806 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.008567/0.4897, allocations: 6.98 MB / 0.6874 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006729/0.4904, allocations: 11.94 kB / 0.6874 GB, free: 3.27 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001384/0.4918, allocations: 406.8 kB / 0.6878 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.002089/0.4939, allocations: 0.668 MB / 0.6885 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.4954, allocations: 366.6 kB / 0.6888 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.00155/0.497, allocations: 1.148 MB / 0.6899 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005093/0.4975, allocations: 255.3 kB / 0.6902 GB, free: 452 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008394/0.4983, allocations: 346.7 kB / 0.6905 GB, free: 104 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.4994, allocations: 0.5607 MB / 0.6911 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.4996, allocations: 32 kB / 0.6911 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.5017, allocations: 0.7836 MB / 0.6918 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.5019, allocations: 132.7 kB / 0.692 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.5023, allocations: 153.4 kB / 0.6921 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.5037, allocations: 0.8495 MB / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.5037, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.853e-06/0.5037, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.759e-05/0.5038, allocations: 0 / 0.6929 GB, free: 13.59 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002333/0.5061, allocations: 0.9672 MB / 0.6939 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.5062, allocations: 12.03 kB / 0.6939 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/0.5064, allocations: 102.5 kB / 0.694 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.5065, allocations: 67.16 kB / 0.6941 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006265/0.5072, allocations: 422 kB / 0.6945 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.5072, allocations: 41.31 kB / 0.6945 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001593/0.5074, allocations: 75.83 kB / 0.6946 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.5087, allocations: 0.7409 MB / 0.6953 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.5088, allocations: 3.984 kB / 0.6953 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.5089, allocations: 28 kB / 0.6953 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.032e-05/0.5089, allocations: 33.3 kB / 0.6954 GB, free: 11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.5102, allocations: 0.8522 MB / 0.6962 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003855/0.5141, allocations: 3.255 MB / 0.6994 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.5153, allocations: 0.6969 MB / 0.7001 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006407/0.516, allocations: 418.8 kB / 0.7005 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002633/0.5186, allocations: 2.204 MB / 0.7026 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.5187, allocations: 39.12 kB / 0.7026 GB, free: 2.922 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 2.735e-06/0.5187, allocations: 0 / 0.7026 GB, free: 2.922 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.004108/0.5228, allocations: 2.323 MB / 0.7049 GB, free: 500 kB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.5228, allocations: 59.97 kB / 0.705 GB, free: 428 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.5231, allocations: 288.6 kB / 0.7052 GB, free: 136 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.5232, allocations: 33.7 kB / 0.7053 GB, free: 96 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.5234, allocations: 260.6 kB / 0.7055 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.5235, allocations: 204.9 kB / 0.7057 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.5236, allocations: 12 kB / 0.7057 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5237, allocations: 354.8 kB / 0.7061 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.5241, allocations: 261 kB / 0.7063 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004209/0.5245, allocations: 313.5 kB / 0.7066 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004488/0.525, allocations: 302.1 kB / 0.7069 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.525, allocations: 7.891 kB / 0.7069 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001472/0.5265, allocations: 0.8779 MB / 0.7078 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.5265, allocations: 4 kB / 0.7078 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.5265, allocations: 0.5 kB / 0.7078 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/0.5283, allocations: 405.6 kB / 0.7082 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.5286, allocations: 75.88 kB / 0.7082 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.5299, allocations: 1.072 MB / 0.7093 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004295/0.5304, allocations: 41.89 kB / 0.7093 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.5304, allocations: 23.98 kB / 0.7093 GB, free: 11.86 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 26} Notification: Performance of prepare postOptimizeDAE: time 0.0003224/0.5308, allocations: 213.5 kB / 0.7096 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.5309, allocations: 43.44 kB / 0.7096 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.5327, allocations: 0.9974 MB / 0.7106 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.5327, allocations: 11.98 kB / 0.7106 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.5327, allocations: 4 kB / 0.7106 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.5327, allocations: 3.938 kB / 0.7106 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.5356, allocations: 1.842 MB / 0.7124 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.5356, allocations: 0 / 0.7124 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.536, allocations: 95.86 kB / 0.7125 GB, free: 8.598 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005215/0.5365, allocations: 186 kB / 0.7127 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.5366, allocations: 27.94 kB / 0.7127 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002871/0.5394, allocations: 2.492 MB / 0.7151 GB, free: 5.766 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5395, allocations: 0 / 0.7151 GB, free: 5.766 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.5415, allocations: 1.366 MB / 0.7164 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.5416, allocations: 112.5 kB / 0.7166 GB, free: 4.254 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.5417, allocations: 12 kB / 0.7166 GB, free: 4.242 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000352/0.5421, allocations: 40.02 kB / 0.7166 GB, free: 4.203 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.928e-05/0.5422, allocations: 52.47 kB / 0.7167 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.585e-05/0.5422, allocations: 29.02 kB / 0.7167 GB, free: 4.125 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002163/0.5425, allocations: 207.1 kB / 0.7169 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5425, allocations: 0 / 0.7169 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0007847/0.5433, allocations: 251.9 kB / 0.7171 GB, free: 3.676 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (flowResistance.m_flow,flowResistance1.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 (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002671/0.5459, allocations: 2.135 MB / 0.7192 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001398/0.5473, allocations: 0.7548 MB / 0.7199 GB, free: 0.7539 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.5474, allocations: 0 / 0.7199 GB, free: 0.7539 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.5484, allocations: 0.6481 MB / 0.7206 GB, free: 92 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000844/0.5492, allocations: 141.5 kB / 0.7207 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.5546, allocations: 3.722 MB / 0.7243 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.555, allocations: 0.9065 MB / 0.7252 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004487/0.5555, allocations: 144.7 kB / 0.7254 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.5558, allocations: 215.3 kB / 0.7256 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of SimCode: time 8.21e-07/0.5558, allocations: 0 / 0.7256 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03481/0.5906, allocations: 17.95 MB / 0.7431 GB, free: 9.27 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.5909, allocations: 248.7 kB / 0.7433 GB, free: 9.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/2.982, allocations: 4 kB / 0.7433 GB, free: 9.016 MB / 0.5573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat does not exist to compare? outputFormat=mat