Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",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.0009289/0.0009291, allocations: 99.62 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.0009523/0.0009525, 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.469/1.469, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8112/0.8112, allocations: 89.64 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003809/0.000381, allocations: 12.89 kB / 460 MB, free: 24.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1641, allocations: 68.83 MB / 0.5165 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4372/0.6013, allocations: 119.1 MB / 0.6327 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.6033, allocations: 1.758 MB / 0.6345 GB, free: 8.809 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.6035, allocations: 2.812 kB / 0.6345 GB, free: 8.809 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003686/0.6039, allocations: 99.27 kB / 0.6346 GB, free: 8.727 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/0.6042, allocations: 125.6 kB / 0.6347 GB, free: 8.621 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.6045, allocations: 133.9 kB / 0.6348 GB, free: 8.516 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.6048, allocations: 167.8 kB / 0.635 GB, free: 8.414 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.6049, allocations: 42.39 kB / 0.635 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003577/0.6053, allocations: 138 kB / 0.6351 GB, free: 8.305 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.6055, allocations: 99.06 kB / 0.6352 GB, free: 8.246 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.6055, allocations: 3.219 kB / 0.6352 GB, free: 8.246 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.6059, allocations: 171.9 kB / 0.6354 GB, free: 8.188 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.6059, allocations: 18.89 kB / 0.6354 GB, free: 8.172 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.444e-05/0.606, allocations: 60.11 kB / 0.6355 GB, free: 8.125 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.6062, allocations: 145.5 kB / 0.6356 GB, free: 8.039 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.6062, allocations: 0 / 0.6356 GB, free: 8.039 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.6062, allocations: 0 / 0.6356 GB, free: 8.039 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.6062, allocations: 4 kB / 0.6356 GB, free: 8.035 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008102/0.6071, allocations: 494.7 kB / 0.6361 GB, free: 7.562 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.6071, allocations: 8 kB / 0.6361 GB, free: 7.562 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.976e-05/0.6072, allocations: 47.89 kB / 0.6361 GB, free: 7.512 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.6072, allocations: 19.75 kB / 0.6362 GB, free: 7.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.6074, allocations: 214.7 kB / 0.6364 GB, free: 7.266 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.6074, allocations: 13.31 kB / 0.6364 GB, free: 7.258 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.6075, allocations: 14.69 kB / 0.6364 GB, free: 7.254 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003512/0.6078, allocations: 173.3 kB / 0.6366 GB, free: 7.121 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.6079, allocations: 0 / 0.6366 GB, free: 7.121 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.6079, allocations: 10.14 kB / 0.6366 GB, free: 7.113 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.6079, allocations: 8.25 kB / 0.6366 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003201/0.6082, allocations: 109 kB / 0.6367 GB, free: 7.062 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.6093, allocations: 0.896 MB / 0.6376 GB, free: 6.168 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.6096, allocations: 103.6 kB / 0.6377 GB, free: 6.105 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.44e-05/0.6097, allocations: 80.8 kB / 0.6377 GB, free: 6.012 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.61, allocations: 100.3 kB / 0.6378 GB, free: 5.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=7): time 2.084e-06/0.61, allocations: 0 / 0.6378 GB, free: 5.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004955/0.6105, allocations: 162 kB / 0.638 GB, free: 5.844 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.6106, allocations: 53.22 kB / 0.638 GB, free: 5.781 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.6107, allocations: 197.6 kB / 0.6382 GB, free: 5.629 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.6108, allocations: 29.7 kB / 0.6382 GB, free: 5.594 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.6109, allocations: 141.2 kB / 0.6384 GB, free: 5.461 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.6109, allocations: 27.27 kB / 0.6384 GB, free: 5.438 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.6109, allocations: 5.781 kB / 0.6384 GB, free: 5.434 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.6111, allocations: 325.5 kB / 0.6387 GB, free: 5.109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.6112, allocations: 47.91 kB / 0.6388 GB, free: 5.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.6114, allocations: 95.61 kB / 0.6389 GB, free: 5.012 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.6116, allocations: 78.44 kB / 0.6389 GB, free: 4.957 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.6116, allocations: 1.906 kB / 0.6389 GB, free: 4.957 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004093/0.612, allocations: 222.3 kB / 0.6391 GB, free: 4.816 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.612, allocations: 30.45 kB / 0.6392 GB, free: 4.785 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.612, allocations: 2.781 kB / 0.6392 GB, free: 4.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.6121, allocations: 5.875 kB / 0.6392 GB, free: 4.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.6122, allocations: 35.58 kB / 0.6392 GB, free: 4.773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.6122, allocations: 5.969 kB / 0.6392 GB, free: 4.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.6124, allocations: 24.89 kB / 0.6392 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.6124, allocations: 5.719 kB / 0.6393 GB, free: 4.758 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.6125, allocations: 129.3 kB / 0.6394 GB, free: 4.629 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.6126, allocations: 23.64 kB / 0.6394 GB, free: 4.613 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003361/0.6129, allocations: 137 kB / 0.6395 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.6129, allocations: 1.281 kB / 0.6395 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6129, allocations: 0 / 0.6395 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.6129, allocations: 1.531 kB / 0.6395 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.6131, allocations: 224.8 kB / 0.6397 GB, free: 4.289 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.6131, allocations: 0 / 0.6397 GB, free: 4.289 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.6133, allocations: 19.64 kB / 0.6398 GB, free: 4.285 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6133, allocations: 3.938 kB / 0.6398 GB, free: 4.281 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.6133, allocations: 5.328 kB / 0.6398 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6133, allocations: 0 / 0.6398 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.6133, allocations: 5.375 kB / 0.6398 GB, free: 4.273 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00045/0.6138, allocations: 206.5 kB / 0.64 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.866e-05/0.6138, allocations: 91.48 kB / 0.6401 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.6138, allocations: 2.062 kB / 0.6401 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.614, allocations: 24.66 kB / 0.6401 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.6141, allocations: 8.359 kB / 0.6401 GB, free: 4.012 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.6141, allocations: 6.891 kB / 0.6401 GB, free: 4.008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.6142, allocations: 147.1 kB / 0.6402 GB, free: 3.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6142, allocations: 0 / 0.6402 GB, free: 3.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002597/0.6145, allocations: 35.09 kB / 0.6403 GB, free: 3.895 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007825/0.6152, allocations: 0.773 MB / 0.641 GB, free: 3.211 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000363/0.6156, allocations: 165.3 kB / 0.6412 GB, free: 3.105 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.6156, allocations: 0 / 0.6412 GB, free: 3.105 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.6158, allocations: 44.31 kB / 0.6412 GB, free: 3.09 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.6161, allocations: 46.84 kB / 0.6413 GB, free: 3.062 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.618, allocations: 1.834 MB / 0.6431 GB, free: 1.496 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.6182, allocations: 0.7177 MB / 0.6438 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.736e-05/0.6183, allocations: 19.52 kB / 0.6438 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.6184, allocations: 48.52 kB / 0.6438 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of SimCode: time 2.7e-07/0.6184, allocations: 3.938 kB / 0.6438 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/0.632, allocations: 3.97 MB / 0.6477 GB, free: 14.83 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.6322, allocations: 190.8 kB / 0.6479 GB, free: 14.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.519, allocations: 0 / 0.6479 GB, free: 14.59 MB / 478.1 MB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat does not exist to compare? outputFormat=mat