Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008637/0.0008637, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8905/0.8905, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6064/0.6064, allocations: 116 MB / 375.2 MB, free: 4.176 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.5532 GB, free: 13.33 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.419e-05/1.572e-05, allocations: 9.594 kB / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3499/0.3499, allocations: 121.9 MB / 0.6723 GB, free: 7.258 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0007845/0.3507, allocations: 1.146 MB / 0.6734 GB, free: 7.164 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.3508, allocations: 20.25 kB / 0.6734 GB, free: 7.152 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0003609/0.3512, allocations: 106.1 kB / 0.6735 GB, free: 7.121 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.3515, allocations: 173.2 kB / 0.6737 GB, free: 7.094 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.3517, allocations: 177.8 kB / 0.6738 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.352, allocations: 363.7 kB / 0.6742 GB, free: 7.074 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.3522, allocations: 50.38 kB / 0.6742 GB, free: 7.055 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.3525, allocations: 283.8 kB / 0.6745 GB, free: 7.035 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.3527, allocations: 107.7 kB / 0.6746 GB, free: 7.035 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.3527, allocations: 12.22 kB / 0.6746 GB, free: 7.035 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.3529, allocations: 171.3 kB / 0.6748 GB, free: 7.031 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.733e-05/0.353, allocations: 37.98 kB / 0.6748 GB, free: 7.031 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 8.577e-05/0.3531, allocations: 67.28 kB / 0.6749 GB, free: 7.031 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.3535, allocations: 303.2 kB / 0.6752 GB, free: 7.008 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.3535, allocations: 7.031 kB / 0.6752 GB, free: 7.004 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3535, allocations: 0 / 0.6752 GB, free: 7.004 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.3535, allocations: 4.562 kB / 0.6752 GB, free: 7 MB / 0.5573 GB 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.0006854/0.3542, allocations: 0.5192 MB / 0.6757 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3542, allocations: 9.25 kB / 0.6757 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.963e-05/0.3542, allocations: 45.44 kB / 0.6757 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.3543, allocations: 33.67 kB / 0.6758 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.3547, allocations: 259.5 kB / 0.676 GB, free: 6.375 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3547, allocations: 16.06 kB / 0.676 GB, free: 6.371 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.3547, allocations: 17.22 kB / 0.676 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.3549, allocations: 165.9 kB / 0.6762 GB, free: 6.301 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.355, allocations: 4.438 kB / 0.6762 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.355, allocations: 4.125 kB / 0.6762 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.355, allocations: 3.344 kB / 0.6762 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.3552, allocations: 104.6 kB / 0.6763 GB, free: 6.289 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006287/0.3558, allocations: 0.7252 MB / 0.677 GB, free: 5.742 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.356, allocations: 85.81 kB / 0.6771 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.3561, allocations: 38.05 kB / 0.6771 GB, free: 5.711 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.3561, allocations: 9.406 kB / 0.6771 GB, free: 5.711 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.3563, allocations: 88.59 kB / 0.6772 GB, free: 5.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3563, allocations: 4 kB / 0.6772 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of matching and sorting (n=7): time 0.0003454/0.3566, allocations: 154 kB / 0.6774 GB, free: 5.613 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/0.3566, allocations: 55.92 kB / 0.6774 GB, free: 5.551 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.3569, allocations: 287.7 kB / 0.6777 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.3569, allocations: 27.08 kB / 0.6777 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.357, allocations: 177.2 kB / 0.6779 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.357, allocations: 21.08 kB / 0.6779 GB, free: 5.281 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-05/0.357, allocations: 34.86 kB / 0.678 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.241e-05/0.3571, allocations: 339.4 kB / 0.6783 GB, free: 4.949 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3572, allocations: 73.16 kB / 0.6784 GB, free: 4.914 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.3573, allocations: 120 kB / 0.6785 GB, free: 4.832 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.3575, allocations: 148.2 kB / 0.6786 GB, free: 4.746 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3575, allocations: 1.094 kB / 0.6786 GB, free: 4.746 MB / 0.5573 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002407/0.3577, allocations: 242.7 kB / 0.6788 GB, free: 4.629 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3577, allocations: 36.12 kB / 0.6789 GB, free: 4.598 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3577, allocations: 5.219 kB / 0.6789 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3578, allocations: 4.094 kB / 0.6789 GB, free: 4.594 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.626e-05/0.3579, allocations: 34.08 kB / 0.6789 GB, free: 4.586 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3579, allocations: 6.281 kB / 0.6789 GB, free: 4.582 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.054e-05/0.3579, allocations: 26.05 kB / 0.6789 GB, free: 4.574 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.358, allocations: 5.031 kB / 0.6789 GB, free: 4.574 MB / 0.5573 GB 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 7.053e-05/0.358, allocations: 133.4 kB / 0.6791 GB, free: 4.461 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.358, allocations: 27.5 kB / 0.6791 GB, free: 4.445 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.3582, allocations: 134.3 kB / 0.6792 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3582, allocations: 6.453 kB / 0.6792 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3583, allocations: 2.625 kB / 0.6792 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3583, allocations: 7.562 kB / 0.6792 GB, free: 4.398 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.3584, allocations: 203.9 kB / 0.6794 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.3584, allocations: 0 / 0.6794 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.749e-05/0.3584, allocations: 16.83 kB / 0.6795 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3584, allocations: 1.125 kB / 0.6795 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.3584, allocations: 3.625 kB / 0.6795 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3584, allocations: 0 / 0.6795 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3584, allocations: 1.188 kB / 0.6795 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.3587, allocations: 199.6 kB / 0.6797 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.3587, allocations: 31.14 kB / 0.6797 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.3587, allocations: 4.906 kB / 0.6797 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.045e-05/0.3588, allocations: 10.11 kB / 0.6797 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.3588, allocations: 16.5 kB / 0.6797 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3588, allocations: 3.562 kB / 0.6797 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001057/0.359, allocations: 194.8 kB / 0.6799 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.359, allocations: 0 / 0.6799 GB, free: 4.059 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001716/0.3591, allocations: 51.92 kB / 0.68 GB, free: 4.047 MB / 0.5573 GB 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.0004079/0.3595, allocations: 0.7606 MB / 0.6807 GB, free: 3.434 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0002175/0.3597, allocations: 184 kB / 0.6809 GB, free: 3.332 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.3597, allocations: 0 / 0.6809 GB, free: 3.332 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 7.609e-05/0.3598, allocations: 39.11 kB / 0.6809 GB, free: 3.332 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.3601, allocations: 71.19 kB / 0.681 GB, free: 3.316 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.3618, allocations: 2.375 MB / 0.6833 GB, free: 1.781 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.808e-05/0.3619, allocations: 137.3 kB / 0.6834 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.042e-05/0.362, allocations: 28.39 kB / 0.6835 GB, free: 1.691 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.362, allocations: 77.83 kB / 0.6835 GB, free: 1.684 MB / 0.5573 GB Notification: Performance of SimCode: time 7.52e-07/0.362, allocations: 0 / 0.6835 GB, free: 1.684 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.38, allocations: 6.69 MB / 0.6901 GB, free: 16.32 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.166/7.546, allocations: 3.25 kB / 0.6901 GB, free: 16.32 MB / 0.573 GB " [Timeout remaining time 652] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 10.113887869752944] Failed to read output from testmodel.py, exit status != 0: 7.631258838810027 7.644521985 7.288067792 Calling exit ...