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.005907/0.005907, allocations: 171.9 kB / 15.12 MB, free: 5.555 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.508/1.508, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.00108/0.00108, allocations: 90.86 kB / 269.6 MB, free: 13.37 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.9199/0.9199, allocations: 90.59 MB / 408.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003315, allocations: 11.98 kB / 485.3 MB, free: 1.992 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4316/0.4319, allocations: 66.28 MB / 0.5387 GB, free: 45.74 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.1827/0.6147, allocations: 135.3 MB / 0.6708 GB, free: 4.324 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.008638/0.6234, allocations: 6.257 MB / 0.6769 GB, free: 14.06 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009955/0.6244, allocations: 11.94 kB / 0.6769 GB, free: 14.05 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.6262, allocations: 419.7 kB / 0.6773 GB, free: 13.64 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.00281/0.629, allocations: 0.6737 MB / 0.678 GB, free: 12.96 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.6305, allocations: 383 kB / 0.6784 GB, free: 12.59 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.001092/0.6316, allocations: 0.6748 MB / 0.679 GB, free: 11.91 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/0.632, allocations: 257.8 kB / 0.6793 GB, free: 11.66 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005177/0.6326, allocations: 311 kB / 0.6796 GB, free: 11.36 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007078/0.6333, allocations: 490.5 kB / 0.68 GB, free: 10.88 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 6.365e-05/0.6334, allocations: 32 kB / 0.6801 GB, free: 10.84 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.6353, allocations: 0.8426 MB / 0.6809 GB, free: 10 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.6354, allocations: 123.5 kB / 0.681 GB, free: 9.879 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.6356, allocations: 153.4 kB / 0.6811 GB, free: 9.723 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.6368, allocations: 0.836 MB / 0.682 GB, free: 8.891 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.6368, allocations: 0 / 0.682 GB, free: 8.891 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6368, allocations: 0 / 0.682 GB, free: 8.891 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.6368, allocations: 0 / 0.682 GB, free: 8.891 MB / 0.4949 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.002075/0.6389, allocations: 0.9765 MB / 0.6829 GB, free: 7.867 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.6389, allocations: 12.03 kB / 0.6829 GB, free: 7.855 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.6391, allocations: 100.7 kB / 0.683 GB, free: 7.75 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.6393, allocations: 71.16 kB / 0.6831 GB, free: 7.68 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.6399, allocations: 429.9 kB / 0.6835 GB, free: 7.215 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.874e-05/0.64, allocations: 41.31 kB / 0.6835 GB, free: 7.176 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.6401, allocations: 63.86 kB / 0.6836 GB, free: 7.113 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.6413, allocations: 0.7365 MB / 0.6843 GB, free: 6.371 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.6413, allocations: 0 / 0.6843 GB, free: 6.371 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.919e-05/0.6414, allocations: 24 kB / 0.6843 GB, free: 6.348 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/0.6415, allocations: 29.3 kB / 0.6844 GB, free: 6.32 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.6429, allocations: 0.8561 MB / 0.6852 GB, free: 5.461 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.6473, allocations: 3.301 MB / 0.6884 GB, free: 1.812 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.6484, allocations: 0.6986 MB / 0.6891 GB, free: 1.113 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002583/0.651, allocations: 2.216 MB / 0.6913 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.6511, allocations: 47.08 kB / 0.6913 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=61): time 2.385e-06/0.6511, allocations: 0 / 0.6913 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63): time 0.004753/0.6559, allocations: 2.611 MB / 0.6939 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.6559, allocations: 59.97 kB / 0.6939 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.6563, allocations: 284.6 kB / 0.6942 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.6564, allocations: 37.7 kB / 0.6942 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.6566, allocations: 260.5 kB / 0.6945 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.6567, allocations: 212.8 kB / 0.6947 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.6568, allocations: 12 kB / 0.6947 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6569, allocations: 354.7 kB / 0.695 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.6573, allocations: 270.3 kB / 0.6953 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004599/0.6578, allocations: 321.4 kB / 0.6956 GB, free: 10 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.6583, allocations: 310.1 kB / 0.6959 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.6584, allocations: 0 / 0.6959 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001567/0.6599, allocations: 0.9168 MB / 0.6968 GB, free: 8.773 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.66, allocations: 8 kB / 0.6968 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.66, allocations: 0 / 0.6968 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.6618, allocations: 412.5 kB / 0.6972 GB, free: 8.359 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.6621, allocations: 75.88 kB / 0.6973 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.6635, allocations: 1.088 MB / 0.6983 GB, free: 7.168 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/0.6639, allocations: 44.95 kB / 0.6984 GB, free: 7.125 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.6639, allocations: 27.97 kB / 0.6984 GB, free: 7.098 MB / 0.5105 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 (38): * Single equations (assignments): 36 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.0003778/0.6643, allocations: 213.5 kB / 0.6986 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.792e-05/0.6644, allocations: 43.44 kB / 0.6986 GB, free: 6.836 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.6664, allocations: 1.039 MB / 0.6997 GB, free: 5.812 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.6664, allocations: 4 kB / 0.6997 GB, free: 5.809 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.6665, allocations: 4 kB / 0.6997 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.6665, allocations: 3.984 kB / 0.6997 GB, free: 5.801 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003129/0.6696, allocations: 1.912 MB / 0.7015 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.6696, allocations: 4.797 kB / 0.7015 GB, free: 3.824 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000413/0.6701, allocations: 95.86 kB / 0.7016 GB, free: 3.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005668/0.6706, allocations: 205.7 kB / 0.7018 GB, free: 3.527 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/0.6707, allocations: 27.97 kB / 0.7019 GB, free: 3.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003351/0.6741, allocations: 2.617 MB / 0.7044 GB, free: 0.7539 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.6741, allocations: 0 / 0.7044 GB, free: 0.7539 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.6764, allocations: 1.397 MB / 0.7058 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.6767, allocations: 116.5 kB / 0.7059 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.499e-05/0.6767, allocations: 12 kB / 0.7059 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000374/0.6771, allocations: 36.02 kB / 0.7059 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.6773, allocations: 60.42 kB / 0.706 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.958e-05/0.6773, allocations: 27.97 kB / 0.706 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002419/0.6776, allocations: 203.1 kB / 0.7062 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6776, allocations: 0 / 0.7062 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0009528/0.6785, allocations: 259.8 kB / 0.7065 GB, free: 14.61 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 (51): * Single equations (assignments): 49 * 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,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003108/0.6817, allocations: 2.164 MB / 0.7086 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001534/0.6832, allocations: 0.7737 MB / 0.7093 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6832, allocations: 0 / 0.7093 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.6844, allocations: 0.6629 MB / 0.71 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.6852, allocations: 135.4 kB / 0.7101 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006123/0.6913, allocations: 4.199 MB / 0.7142 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.692, allocations: 0.9182 MB / 0.7151 GB, free: 5.648 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005429/0.6925, allocations: 139.6 kB / 0.7152 GB, free: 5.543 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000337/0.6929, allocations: 215.3 kB / 0.7154 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of SimCode: time 3.286e-06/0.6929, allocations: 0 / 0.7154 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04227/0.7352, allocations: 18.04 MB / 0.7331 GB, free: 3.594 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0006554/0.7359, allocations: 230.5 kB / 0.7333 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/3.448, allocations: 0 / 0.7333 GB, free: 3.355 MB / 0.5417 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