Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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: translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001336, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.00153/0.00153, allocations: 177.3 kB / 15.95 MB, free: 216 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.557/1.557, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8793/0.8793, allocations: 89.61 MB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004789, allocations: 9.375 kB / 459.9 MB, free: 24.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1921, allocations: 68.83 MB / 0.5163 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.5968/0.7889, allocations: 119.2 MB / 0.6327 GB, free: 10.23 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.7926, allocations: 2.758 MB / 0.6354 GB, free: 8.043 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.793, allocations: 2.5 kB / 0.6354 GB, free: 8.043 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005364/0.7935, allocations: 102.4 kB / 0.6355 GB, free: 7.957 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004993/0.794, allocations: 185.6 kB / 0.6357 GB, free: 7.801 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004784/0.7945, allocations: 142.6 kB / 0.6358 GB, free: 7.691 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.7948, allocations: 185 kB / 0.636 GB, free: 7.578 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.795, allocations: 40.12 kB / 0.636 GB, free: 7.559 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004398/0.7955, allocations: 133.6 kB / 0.6362 GB, free: 7.473 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.7957, allocations: 79.17 kB / 0.6362 GB, free: 7.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.7957, allocations: 5.625 kB / 0.6362 GB, free: 7.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005355/0.7962, allocations: 235 kB / 0.6365 GB, free: 7.34 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.7963, allocations: 24.14 kB / 0.6365 GB, free: 7.32 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.7964, allocations: 57.95 kB / 0.6365 GB, free: 7.273 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.7967, allocations: 140.4 kB / 0.6367 GB, free: 7.195 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.7967, allocations: 0 / 0.6367 GB, free: 7.195 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.7967, allocations: 0 / 0.6367 GB, free: 7.195 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.7967, allocations: 0 / 0.6367 GB, free: 7.195 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008034/0.7975, allocations: 450.2 kB / 0.6371 GB, free: 6.754 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.7976, allocations: 9.469 kB / 0.6371 GB, free: 6.754 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.7976, allocations: 21.8 kB / 0.6371 GB, free: 6.742 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.798, allocations: 223.9 kB / 0.6374 GB, free: 6.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.798, allocations: 13.62 kB / 0.6374 GB, free: 6.492 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.7981, allocations: 11.56 kB / 0.6374 GB, free: 6.488 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.7983, allocations: 141.3 kB / 0.6375 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.7984, allocations: 0 / 0.6375 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.7984, allocations: 5.312 kB / 0.6375 GB, free: 6.371 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.7984, allocations: 3.719 kB / 0.6375 GB, free: 6.371 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.7986, allocations: 71.06 kB / 0.6376 GB, free: 6.336 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.7996, allocations: 0.7236 MB / 0.6383 GB, free: 5.633 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.7998, allocations: 83.59 kB / 0.6384 GB, free: 5.559 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.7999, allocations: 162.5 kB / 0.6385 GB, free: 5.367 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.8, allocations: 36.14 kB / 0.6386 GB, free: 5.324 MB / 462.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.8, allocations: 0 / 0.6386 GB, free: 5.324 MB / 462.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007389/0.8007, allocations: 328 kB / 0.6389 GB, free: 5.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.8008, allocations: 78.73 kB / 0.639 GB, free: 4.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.8011, allocations: 217.5 kB / 0.6392 GB, free: 4.762 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.8011, allocations: 25.7 kB / 0.6392 GB, free: 4.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.8012, allocations: 130.2 kB / 0.6393 GB, free: 4.609 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.8013, allocations: 30.39 kB / 0.6393 GB, free: 4.582 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.8013, allocations: 0 / 0.6393 GB, free: 4.582 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.8015, allocations: 332.4 kB / 0.6397 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.8015, allocations: 21.95 kB / 0.6397 GB, free: 4.242 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.344e-05/0.8016, allocations: 42.27 kB / 0.6397 GB, free: 4.199 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.776e-05/0.8016, allocations: 32.53 kB / 0.6397 GB, free: 4.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.8016, allocations: 0 / 0.6397 GB, free: 4.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002703/0.8019, allocations: 137.7 kB / 0.6399 GB, free: 4.086 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.8019, allocations: 7.375 kB / 0.6399 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.802, allocations: 0 / 0.6399 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.8022, allocations: 55.77 kB / 0.6399 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.778e-05/0.8023, allocations: 10.47 kB / 0.6399 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.8044, allocations: 2.571 MB / 0.6425 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.715e-05/0.8045, allocations: 15.22 kB / 0.6425 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.8045, allocations: 6.531 kB / 0.6425 GB, free: 1.34 MB / 462.1 MB 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 (8): * Single equations (assignments): 6 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.8046, allocations: 121.2 kB / 0.6426 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.8047, allocations: 19.23 kB / 0.6426 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.8051, allocations: 149.5 kB / 0.6428 GB, free: 1.078 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8051, allocations: 4 kB / 0.6428 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.8051, allocations: 3.125 kB / 0.6428 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.8051, allocations: 0 / 0.6428 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.8057, allocations: 0.4977 MB / 0.6432 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.8057, allocations: 2 kB / 0.6433 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.877e-05/0.8057, allocations: 9.562 kB / 0.6433 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.8058, allocations: 40.56 kB / 0.6433 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.8059, allocations: 6.953 kB / 0.6433 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.8078, allocations: 2.575 MB / 0.6458 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.8078, allocations: 0 / 0.6458 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.8082, allocations: 362.2 kB / 0.6462 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.289e-05/0.8083, allocations: 98.81 kB / 0.6463 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.8083, allocations: 2.562 kB / 0.6463 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.8084, allocations: 3.953 kB / 0.6463 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.8085, allocations: 16.95 kB / 0.6463 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.8085, allocations: 2.938 kB / 0.6463 GB, free: 13.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.8087, allocations: 164.1 kB / 0.6464 GB, free: 13.24 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8087, allocations: 3.938 kB / 0.6464 GB, free: 13.24 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004343/0.8091, allocations: 40.5 kB / 0.6465 GB, free: 13.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.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 (4): * Single equations (assignments): 2 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000298/0.8094, allocations: 154.2 kB / 0.6466 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004782/0.8099, allocations: 285.1 kB / 0.6469 GB, free: 12.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8099, allocations: 2.531 kB / 0.6469 GB, free: 12.86 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.8102, allocations: 247.2 kB / 0.6471 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005232/0.8107, allocations: 57 kB / 0.6472 GB, free: 12.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000929/0.8117, allocations: 0.5322 MB / 0.6477 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.8121, allocations: 0.7333 MB / 0.6484 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 7.158e-05/0.8122, allocations: 24.88 kB / 0.6485 GB, free: 11.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.8122, allocations: 15.47 kB / 0.6485 GB, free: 11.39 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.8122, allocations: 0 / 0.6485 GB, free: 11.39 MB / 478.1 MB Notification: Performance of Templates: time 0.007042/0.8193, allocations: 2.96 MB / 0.6514 GB, free: 9.906 MB / 478.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches