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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",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.001031/0.001031, allocations: 99.94 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.0009559/0.000956, 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.476/1.476, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8406/0.8406, allocations: 89.64 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003914, allocations: 14.41 kB / 460 MB, free: 24.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1897, allocations: 68.83 MB / 0.5165 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.5745/0.7642, allocations: 119.2 MB / 0.6328 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003796/0.7681, allocations: 2.756 MB / 0.6355 GB, free: 7.84 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.7683, allocations: 10.53 kB / 0.6355 GB, free: 7.832 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004632/0.7688, allocations: 99.53 kB / 0.6356 GB, free: 7.75 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004273/0.7692, allocations: 178.1 kB / 0.6358 GB, free: 7.602 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.7697, allocations: 150.4 kB / 0.636 GB, free: 7.484 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.77, allocations: 193.5 kB / 0.6361 GB, free: 7.363 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.7702, allocations: 36.78 kB / 0.6362 GB, free: 7.348 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004809/0.7707, allocations: 126.2 kB / 0.6363 GB, free: 7.27 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.7709, allocations: 77.34 kB / 0.6364 GB, free: 7.227 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.7709, allocations: 7.938 kB / 0.6364 GB, free: 7.223 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000702/0.7717, allocations: 232.6 kB / 0.6366 GB, free: 7.137 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.7717, allocations: 20.55 kB / 0.6366 GB, free: 7.121 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.7718, allocations: 53.05 kB / 0.6367 GB, free: 7.078 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.7722, allocations: 145.3 kB / 0.6368 GB, free: 6.996 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7722, allocations: 0 / 0.6368 GB, free: 6.996 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.7722, allocations: 1.781 kB / 0.6368 GB, free: 6.996 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.7722, allocations: 0 / 0.6368 GB, free: 6.996 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.001006/0.7732, allocations: 453.2 kB / 0.6372 GB, free: 6.551 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.773e-05/0.7733, allocations: 9.75 kB / 0.6372 GB, free: 6.551 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.625e-05/0.7734, allocations: 46.64 kB / 0.6373 GB, free: 6.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.62e-05/0.7734, allocations: 17.16 kB / 0.6373 GB, free: 6.492 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.7738, allocations: 232.7 kB / 0.6375 GB, free: 6.242 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.7738, allocations: 9 kB / 0.6375 GB, free: 6.238 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.7739, allocations: 12 kB / 0.6376 GB, free: 6.234 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.7742, allocations: 157.5 kB / 0.6377 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.7742, allocations: 0 / 0.6377 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.7742, allocations: 6.969 kB / 0.6377 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.7742, allocations: 2.438 kB / 0.6377 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.7744, allocations: 74.91 kB / 0.6378 GB, free: 6.062 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.7754, allocations: 0.7073 MB / 0.6385 GB, free: 5.375 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.7756, allocations: 84.03 kB / 0.6386 GB, free: 5.301 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002276/0.7759, allocations: 162.5 kB / 0.6387 GB, free: 5.109 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.7759, allocations: 35.95 kB / 0.6387 GB, free: 5.066 MB / 462.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.7759, allocations: 0 / 0.6387 GB, free: 5.066 MB / 462.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008248/0.7767, allocations: 320.8 kB / 0.639 GB, free: 4.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.7768, allocations: 86.34 kB / 0.6391 GB, free: 4.668 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003275/0.7772, allocations: 213.1 kB / 0.6393 GB, free: 4.508 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.7772, allocations: 29.7 kB / 0.6394 GB, free: 4.473 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.7773, allocations: 120.7 kB / 0.6395 GB, free: 4.359 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.844e-05/0.7774, allocations: 31.3 kB / 0.6395 GB, free: 4.332 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-06/0.7774, allocations: 0 / 0.6395 GB, free: 4.332 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.7776, allocations: 331 kB / 0.6398 GB, free: 4.004 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.224e-05/0.7776, allocations: 21.88 kB / 0.6398 GB, free: 3.992 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-05/0.7777, allocations: 52.77 kB / 0.6399 GB, free: 3.941 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.197e-05/0.7777, allocations: 24.94 kB / 0.6399 GB, free: 3.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7778, allocations: 0 / 0.6399 GB, free: 3.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002768/0.778, allocations: 149.6 kB / 0.6401 GB, free: 3.824 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.7781, allocations: 5.031 kB / 0.6401 GB, free: 3.824 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.7781, allocations: 3.953 kB / 0.6401 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002605/0.7783, allocations: 43.91 kB / 0.6401 GB, free: 3.789 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.571e-05/0.7784, allocations: 10.44 kB / 0.6401 GB, free: 3.789 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.7807, allocations: 2.575 MB / 0.6426 GB, free: 1.098 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.348e-05/0.7808, allocations: 10.72 kB / 0.6426 GB, free: 1.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.7808, allocations: 2.5 kB / 0.6426 GB, free: 1.09 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.0001249/0.7809, allocations: 125.2 kB / 0.6428 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.593e-05/0.781, allocations: 27.3 kB / 0.6428 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.7813, allocations: 147.7 kB / 0.6429 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.7813, allocations: 0 / 0.6429 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7813, allocations: 3.438 kB / 0.6429 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.7813, allocations: 0 / 0.6429 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.7819, allocations: 0.5016 MB / 0.6434 GB, free: 320 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.7819, allocations: 0 / 0.6434 GB, free: 320 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.609e-05/0.7819, allocations: 2.906 kB / 0.6434 GB, free: 320 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.782, allocations: 47.12 kB / 0.6435 GB, free: 284 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.7821, allocations: 12.52 kB / 0.6435 GB, free: 276 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.7838, allocations: 2.574 MB / 0.646 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.7838, allocations: 0 / 0.646 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/0.7843, allocations: 366.2 kB / 0.6464 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.957e-05/0.7843, allocations: 98.19 kB / 0.6464 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.7844, allocations: 6.328 kB / 0.6465 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.7845, allocations: 4.031 kB / 0.6465 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.039e-05/0.7845, allocations: 17.94 kB / 0.6465 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.7845, allocations: 0 / 0.6465 GB, free: 13.09 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001519/0.7847, allocations: 167.1 kB / 0.6466 GB, free: 12.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7847, allocations: 0 / 0.6466 GB, free: 12.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.7851, allocations: 40.06 kB / 0.6467 GB, free: 12.97 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.0008204/0.7859, allocations: 1.143 MB / 0.6478 GB, free: 11.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004265/0.7863, allocations: 285.6 kB / 0.6481 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.7864, allocations: 4.062 kB / 0.6481 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.7866, allocations: 253.1 kB / 0.6483 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.7871, allocations: 63.72 kB / 0.6484 GB, free: 11.32 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.7891, allocations: 1.642 MB / 0.65 GB, free: 9.965 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.7895, allocations: 0.7257 MB / 0.6507 GB, free: 9.246 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 6.583e-05/0.7896, allocations: 17.75 kB / 0.6507 GB, free: 9.234 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.7896, allocations: 51.03 kB / 0.6507 GB, free: 9.191 MB / 478.1 MB Notification: Performance of SimCode: time 4.11e-07/0.7896, allocations: 0 / 0.6507 GB, free: 9.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.8079, allocations: 5.129 MB / 0.6557 GB, free: 6.742 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.8082, allocations: 202.8 kB / 0.6559 GB, free: 6.504 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.696, allocations: 0 / 0.6559 GB, free: 6.504 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat does not exist to compare? outputFormat=mat