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 (/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.0008646/0.0008646, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005204/0.005204, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5546/0.5546, allocations: 89.64 MB / 381.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003074, allocations: 10.28 kB / 460.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09276, allocations: 68.83 MB / 0.5172 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3126/0.4054, allocations: 136.5 MB / 0.6505 GB, free: 12.26 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.4072, allocations: 2.08 MB / 0.6525 GB, free: 10.58 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.447e-05/0.4073, allocations: 2.906 kB / 0.6525 GB, free: 10.58 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.4076, allocations: 106.1 kB / 0.6526 GB, free: 10.5 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.4078, allocations: 107.5 kB / 0.6527 GB, free: 10.41 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.4081, allocations: 161.4 kB / 0.6529 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.4084, allocations: 283 kB / 0.6532 GB, free: 10.13 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.4085, allocations: 60.84 kB / 0.6532 GB, free: 10.1 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002684/0.4088, allocations: 155.5 kB / 0.6534 GB, free: 10.01 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.4089, allocations: 106 kB / 0.6535 GB, free: 9.949 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.4089, allocations: 3.156 kB / 0.6535 GB, free: 9.949 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.4092, allocations: 197.4 kB / 0.6537 GB, free: 9.863 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.09e-05/0.4093, allocations: 26.72 kB / 0.6537 GB, free: 9.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.4094, allocations: 102.9 kB / 0.6538 GB, free: 9.762 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.4096, allocations: 223.6 kB / 0.654 GB, free: 9.621 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.4096, allocations: 2.938 kB / 0.654 GB, free: 9.621 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4096, allocations: 0 / 0.654 GB, free: 9.621 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.4097, allocations: 0 / 0.654 GB, free: 9.621 MB / 478.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.0006561/0.4103, allocations: 492.6 kB / 0.6545 GB, free: 9.148 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.4104, allocations: 11.62 kB / 0.6545 GB, free: 9.145 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.231e-05/0.4104, allocations: 45.58 kB / 0.6545 GB, free: 9.094 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.58e-05/0.4104, allocations: 19.72 kB / 0.6546 GB, free: 9.086 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.4106, allocations: 220.5 kB / 0.6548 GB, free: 8.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.4106, allocations: 9.562 kB / 0.6548 GB, free: 8.844 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.4107, allocations: 17.5 kB / 0.6548 GB, free: 8.836 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.411, allocations: 182.7 kB / 0.655 GB, free: 8.695 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.411, allocations: 0 / 0.655 GB, free: 8.695 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.411, allocations: 7.094 kB / 0.655 GB, free: 8.691 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.411, allocations: 2.562 kB / 0.655 GB, free: 8.691 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.4113, allocations: 110.7 kB / 0.6551 GB, free: 8.645 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008259/0.4121, allocations: 0.8865 MB / 0.6559 GB, free: 7.758 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.4124, allocations: 104.1 kB / 0.656 GB, free: 7.695 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.4126, allocations: 45.3 kB / 0.6561 GB, free: 7.672 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.43e-05/0.4126, allocations: 84.02 kB / 0.6562 GB, free: 7.574 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.4129, allocations: 93.8 kB / 0.6563 GB, free: 7.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.4129, allocations: 0 / 0.6563 GB, free: 7.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.000434/0.4133, allocations: 173.7 kB / 0.6564 GB, free: 7.402 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.4134, allocations: 54.31 kB / 0.6565 GB, free: 7.34 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.4135, allocations: 199.9 kB / 0.6567 GB, free: 7.184 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.4135, allocations: 28.61 kB / 0.6567 GB, free: 7.152 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.336e-05/0.4136, allocations: 147 kB / 0.6568 GB, free: 7.016 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.4136, allocations: 26.14 kB / 0.6569 GB, free: 6.992 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.4137, allocations: 18.78 kB / 0.6569 GB, free: 6.973 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.97e-05/0.4138, allocations: 325.8 kB / 0.6572 GB, free: 6.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.4139, allocations: 47.38 kB / 0.6572 GB, free: 6.629 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.4141, allocations: 89.55 kB / 0.6573 GB, free: 6.559 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.4143, allocations: 171.9 kB / 0.6575 GB, free: 6.422 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4144, allocations: 0 / 0.6575 GB, free: 6.422 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003715/0.4147, allocations: 210 kB / 0.6577 GB, free: 6.293 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4148, allocations: 37.64 kB / 0.6577 GB, free: 6.258 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.4148, allocations: 0 / 0.6577 GB, free: 6.258 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.4148, allocations: 6.906 kB / 0.6577 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.4149, allocations: 28.61 kB / 0.6577 GB, free: 6.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4149, allocations: 6.875 kB / 0.6578 GB, free: 6.246 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.4151, allocations: 29.98 kB / 0.6578 GB, free: 6.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.4151, allocations: 4.375 kB / 0.6578 GB, free: 6.23 MB / 478.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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.622e-05/0.4152, allocations: 137.8 kB / 0.6579 GB, free: 6.098 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.4152, allocations: 13.03 kB / 0.6579 GB, free: 6.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003141/0.4156, allocations: 149.5 kB / 0.6581 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4156, allocations: 4 kB / 0.6581 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.4156, allocations: 0 / 0.6581 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.4156, allocations: 0 / 0.6581 GB, free: 5.992 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.4157, allocations: 223.3 kB / 0.6583 GB, free: 5.754 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4157, allocations: 0 / 0.6583 GB, free: 5.754 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.867e-05/0.4158, allocations: 21.7 kB / 0.6583 GB, free: 5.746 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4159, allocations: 0 / 0.6583 GB, free: 5.746 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.4159, allocations: 6.875 kB / 0.6583 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4159, allocations: 0 / 0.6583 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4159, allocations: 0.875 kB / 0.6583 GB, free: 5.742 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.4163, allocations: 202 kB / 0.6585 GB, free: 5.609 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.4164, allocations: 94.67 kB / 0.6586 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.4164, allocations: 3.938 kB / 0.6586 GB, free: 5.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.4165, allocations: 15.98 kB / 0.6586 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.4165, allocations: 9.734 kB / 0.6586 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.4166, allocations: 2.156 kB / 0.6586 GB, free: 5.488 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.256e-05/0.4167, allocations: 146.8 kB / 0.6588 GB, free: 5.379 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4167, allocations: 3.938 kB / 0.6588 GB, free: 5.375 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.4169, allocations: 44.97 kB / 0.6588 GB, free: 5.363 MB / 478.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006701/0.4176, allocations: 0.7694 MB / 0.6596 GB, free: 4.684 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003255/0.4179, allocations: 179 kB / 0.6597 GB, free: 4.566 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4179, allocations: 0 / 0.6597 GB, free: 4.566 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.418, allocations: 46.72 kB / 0.6598 GB, free: 4.551 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.4183, allocations: 38.05 kB / 0.6598 GB, free: 4.531 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.4204, allocations: 2.093 MB / 0.6619 GB, free: 2.781 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.4207, allocations: 0.7202 MB / 0.6626 GB, free: 2.062 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 6.503e-05/0.4207, allocations: 11.59 kB / 0.6626 GB, free: 2.059 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.4208, allocations: 47.3 kB / 0.6626 GB, free: 2.02 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4208, allocations: 3.938 kB / 0.6626 GB, free: 2.016 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9564/1.377, allocations: 4.013 MB / 0.6665 GB, free: 100 kB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003237/1.378, allocations: 212.5 kB / 0.6668 GB, free: 15.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.737/4.114, allocations: 0 / 0.6668 GB, free: 15.84 MB / 494.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/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) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches