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.007048/0.007048, allocations: 167.7 kB / 15.13 MB, free: 6.02 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.419/1.419, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.0007501/0.0007501, allocations: 90.23 kB / 269.6 MB, free: 13.34 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.6835/0.6835, allocations: 90.6 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 8 kB / 485.4 MB, free: 1.938 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3418, allocations: 66.27 MB / 0.5387 GB, free: 45.55 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1418/0.4836, allocations: 135.9 MB / 0.6714 GB, free: 3.711 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005006/0.4887, allocations: 4.295 MB / 0.6756 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000478/0.4892, allocations: 7.938 kB / 0.6756 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006541/0.4899, allocations: 226.7 kB / 0.6758 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001436/0.4913, allocations: 0.6292 MB / 0.6764 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000957/0.4923, allocations: 350.7 kB / 0.6768 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001021/0.4933, allocations: 1.075 MB / 0.6778 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.4936, allocations: 119.2 kB / 0.6779 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007035/0.4943, allocations: 398.2 kB / 0.6783 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004965/0.4948, allocations: 434.4 kB / 0.6787 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.4948, allocations: 24 kB / 0.6788 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.4962, allocations: 0.6978 MB / 0.6794 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.847e-05/0.4963, allocations: 83.55 kB / 0.6795 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.4964, allocations: 125.5 kB / 0.6796 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006873/0.4971, allocations: 0.5985 MB / 0.6802 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4971, allocations: 0 / 0.6802 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.437e-06/0.4971, allocations: 0 / 0.6802 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.4971, allocations: 3.938 kB / 0.6802 GB, free: 10.66 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.001271/0.4984, allocations: 0.7993 MB / 0.681 GB, free: 9.816 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.4984, allocations: 8.031 kB / 0.681 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.233e-05/0.4985, allocations: 86.52 kB / 0.6811 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.388e-05/0.4986, allocations: 56.38 kB / 0.6811 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.4991, allocations: 362.7 kB / 0.6815 GB, free: 9.266 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.4991, allocations: 37 kB / 0.6815 GB, free: 9.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.749e-05/0.4992, allocations: 40 kB / 0.6816 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00071/0.4999, allocations: 454.4 kB / 0.682 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4999, allocations: 0 / 0.682 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.5, allocations: 20.56 kB / 0.682 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.5, allocations: 19.92 kB / 0.682 GB, free: 8.703 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007318/0.5007, allocations: 491.8 kB / 0.6825 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.5031, allocations: 2.171 MB / 0.6846 GB, free: 5.805 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008635/0.5039, allocations: 0.5498 MB / 0.6852 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.5043, allocations: 272.6 kB / 0.6854 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009219/0.5053, allocations: 0.5967 MB / 0.686 GB, free: 4.273 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.5053, allocations: 47.06 kB / 0.6861 GB, free: 4.219 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 2.044e-06/0.5053, allocations: 0 / 0.6861 GB, free: 4.219 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.001726/0.5071, allocations: 0.9903 MB / 0.687 GB, free: 3.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.5071, allocations: 55.97 kB / 0.6871 GB, free: 3.113 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.5074, allocations: 317.7 kB / 0.6874 GB, free: 2.793 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.5075, allocations: 37.7 kB / 0.6874 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.5076, allocations: 206.7 kB / 0.6876 GB, free: 2.547 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.5078, allocations: 209 kB / 0.6878 GB, free: 2.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.5078, allocations: 12 kB / 0.6878 GB, free: 2.328 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5079, allocations: 354.8 kB / 0.6882 GB, free: 1.973 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.5082, allocations: 189 kB / 0.6883 GB, free: 1.785 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.5086, allocations: 197 kB / 0.6885 GB, free: 1.594 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.509, allocations: 218.2 kB / 0.6887 GB, free: 1.383 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.509, allocations: 0 / 0.6887 GB, free: 1.383 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000946/0.5099, allocations: 0.5977 MB / 0.6893 GB, free: 0.7734 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.51, allocations: 7.984 kB / 0.6893 GB, free: 0.7656 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.51, allocations: 5.812 kB / 0.6893 GB, free: 0.7617 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002684/0.5102, allocations: 69.61 kB / 0.6894 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.5105, allocations: 83.89 kB / 0.6895 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/0.5127, allocations: 2.714 MB / 0.6921 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.5129, allocations: 39.75 kB / 0.6922 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.513, allocations: 23.98 kB / 0.6922 GB, free: 13.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.5132, allocations: 173.5 kB / 0.6924 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-05/0.5133, allocations: 47.38 kB / 0.6924 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.5147, allocations: 0.7761 MB / 0.6932 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5147, allocations: 7.953 kB / 0.6932 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5148, allocations: 5.875 kB / 0.6932 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.5148, allocations: 3.984 kB / 0.6932 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.5169, allocations: 1.453 MB / 0.6946 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-06/0.517, allocations: 0 / 0.6946 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003173/0.5173, allocations: 99.83 kB / 0.6947 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002125/0.5175, allocations: 69.72 kB / 0.6948 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.5176, allocations: 19.98 kB / 0.6948 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.5195, allocations: 2.728 MB / 0.6974 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5196, allocations: 0 / 0.6974 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.5211, allocations: 1.042 MB / 0.6985 GB, free: 6.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.5213, allocations: 132.3 kB / 0.6986 GB, free: 6.621 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/0.5213, allocations: 12 kB / 0.6986 GB, free: 6.609 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.5216, allocations: 19.94 kB / 0.6986 GB, free: 6.59 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.5217, allocations: 52.56 kB / 0.6987 GB, free: 6.539 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.5217, allocations: 23.98 kB / 0.6987 GB, free: 6.516 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002161/0.5219, allocations: 235.1 kB / 0.6989 GB, free: 6.293 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5219, allocations: 3.938 kB / 0.6989 GB, free: 6.289 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0006053/0.5226, allocations: 215.7 kB / 0.6991 GB, free: 6.078 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002049/0.5246, allocations: 1.767 MB / 0.7008 GB, free: 4.281 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001226/0.5258, allocations: 0.8049 MB / 0.7016 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5259, allocations: 0 / 0.7016 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007352/0.5266, allocations: 0.6014 MB / 0.7022 GB, free: 2.801 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008372/0.5275, allocations: 155.9 kB / 0.7024 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004181/0.5316, allocations: 3.012 MB / 0.7053 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.5321, allocations: 0.8519 MB / 0.7061 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0003761/0.5325, allocations: 105.8 kB / 0.7062 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.5327, allocations: 199.4 kB / 0.7064 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of SimCode: time 8.12e-07/0.5327, allocations: 0 / 0.7064 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0412/0.5739, allocations: 15.53 MB / 0.7216 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/0.5743, allocations: 235.2 kB / 0.7218 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.836, allocations: 3.906 kB / 0.7218 GB, free: 14.98 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) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat does not exist to compare? outputFormat=mat