Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.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.0008024/0.0008024, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.0008927/0.0008927, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.8942/0.8942, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.6434/0.6434, allocations: 116 MB / 375.2 MB, free: 4.195 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.Idealized.Tests.Inversion.Inversion1,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Inversion_Inversion1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Tests.Inversion.Inversion1,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Inversion_Inversion1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 0.5533 GB, free: 13.32 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.766e-05, allocations: 6.219 kB / 0.5533 GB, free: 13.31 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Tests.Inversion.Inversion1): time 0.3949/0.395, allocations: 164.1 MB / 0.7135 GB, free: 12.13 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.002734/0.3977, allocations: 2.334 MB / 0.7158 GB, free: 10.27 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00037/0.3981, allocations: 42.53 kB / 0.7159 GB, free: 10.25 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.0007021/0.3988, allocations: 293.6 kB / 0.7161 GB, free: 10.01 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.3999, allocations: 0.7025 MB / 0.7168 GB, free: 9.449 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.4017, allocations: 1.031 MB / 0.7178 GB, free: 8.691 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0007147/0.4024, allocations: 0.9853 MB / 0.7188 GB, free: 8.09 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.4026, allocations: 97.83 kB / 0.7189 GB, free: 8.031 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009744/0.4036, allocations: 0.7964 MB / 0.7197 GB, free: 7.531 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.4038, allocations: 287.2 kB / 0.7199 GB, free: 7.391 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.4038, allocations: 34.78 kB / 0.72 GB, free: 7.391 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000887/0.4047, allocations: 0.6376 MB / 0.7206 GB, free: 7.105 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 7.872e-05/0.4048, allocations: 107.3 kB / 0.7207 GB, free: 7.016 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.4049, allocations: 177.1 kB / 0.7209 GB, free: 6.941 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0009828/0.4059, allocations: 1.084 MB / 0.7219 GB, free: 6.281 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4059, allocations: 4 kB / 0.7219 GB, free: 6.277 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4059, allocations: 0 / 0.7219 GB, free: 6.277 MB / 0.573 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.4059, allocations: 1.969 kB / 0.7219 GB, free: 6.277 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0009895/0.4069, allocations: 0.8895 MB / 0.7228 GB, free: 5.574 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.407, allocations: 10.66 kB / 0.7228 GB, free: 5.574 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.324e-05/0.407, allocations: 82.66 kB / 0.7229 GB, free: 5.5 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.4072, allocations: 89.98 kB / 0.723 GB, free: 5.453 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005766/0.4078, allocations: 460 kB / 0.7234 GB, free: 5.086 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.4078, allocations: 28.88 kB / 0.7234 GB, free: 5.074 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.821e-05/0.4079, allocations: 38.5 kB / 0.7235 GB, free: 5.062 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.4083, allocations: 448 kB / 0.7239 GB, free: 4.766 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4083, allocations: 4 kB / 0.7239 GB, free: 4.762 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.4083, allocations: 22.66 kB / 0.7239 GB, free: 4.742 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.4083, allocations: 10.38 kB / 0.7239 GB, free: 4.742 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002859/0.4086, allocations: 257.4 kB / 0.7242 GB, free: 4.629 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.4099, allocations: 1.336 MB / 0.7255 GB, free: 3.57 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.4102, allocations: 185 kB / 0.7257 GB, free: 3.469 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.304e-05/0.4103, allocations: 63 kB / 0.7257 GB, free: 3.43 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.4103, allocations: 8.469 kB / 0.7257 GB, free: 3.43 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.4104, allocations: 36.78 kB / 0.7258 GB, free: 3.387 MB / 0.573 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.4104, allocations: 0 / 0.7258 GB, free: 3.387 MB / 0.573 GB Notification: Performance of matching and sorting (n=15): time 0.000501/0.4109, allocations: 308.8 kB / 0.7261 GB, free: 3.227 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.4109, allocations: 79.3 kB / 0.7261 GB, free: 3.133 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.4112, allocations: 490.5 kB / 0.7266 GB, free: 2.836 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.4112, allocations: 29.08 kB / 0.7266 GB, free: 2.805 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.4114, allocations: 304 kB / 0.7269 GB, free: 2.535 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.4114, allocations: 59.2 kB / 0.727 GB, free: 2.484 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.4115, allocations: 69.86 kB / 0.7271 GB, free: 2.441 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.4116, allocations: 361.5 kB / 0.7274 GB, free: 2.09 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.05e-05/0.4116, allocations: 55.62 kB / 0.7274 GB, free: 2.066 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.226e-05/0.4117, allocations: 112 kB / 0.7276 GB, free: 1.977 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001796/0.4119, allocations: 188.8 kB / 0.7277 GB, free: 1.844 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4119, allocations: 0 / 0.7277 GB, free: 1.844 MB / 0.573 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003366/0.4122, allocations: 304.6 kB / 0.728 GB, free: 1.688 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.4123, allocations: 8.938 kB / 0.728 GB, free: 1.684 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4123, allocations: 2.938 kB / 0.728 GB, free: 1.684 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.4124, allocations: 50.92 kB / 0.7281 GB, free: 1.652 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.4126, allocations: 105.5 kB / 0.7282 GB, free: 1.625 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.4142, allocations: 3.196 MB / 0.7313 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.4143, allocations: 31.61 kB / 0.7313 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.4144, allocations: 29.12 kB / 0.7314 GB, free: 14.34 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.4145, allocations: 171.4 kB / 0.7315 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.4146, allocations: 51.7 kB / 0.7316 GB, free: 14.16 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000705/0.4153, allocations: 0.6189 MB / 0.7322 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4153, allocations: 0 / 0.7322 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.4153, allocations: 3.094 kB / 0.7322 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.4153, allocations: 96 / 0.7322 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007629/0.4161, allocations: 0.796 MB / 0.733 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4161, allocations: 2.656 kB / 0.733 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.4162, allocations: 67.98 kB / 0.733 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.725e-05/0.4163, allocations: 39.2 kB / 0.7331 GB, free: 13.15 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.4163, allocations: 14.52 kB / 0.7331 GB, free: 13.15 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.4177, allocations: 3.19 MB / 0.7362 GB, free: 9.891 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4177, allocations: 3.938 kB / 0.7362 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.418, allocations: 408.4 kB / 0.7366 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.4181, allocations: 66.05 kB / 0.7367 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.4181, allocations: 14.64 kB / 0.7367 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.4182, allocations: 2.719 kB / 0.7367 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.4182, allocations: 25.41 kB / 0.7367 GB, free: 9.492 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.4183, allocations: 22.73 kB / 0.7367 GB, free: 9.488 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0002534/0.4185, allocations: 349.3 kB / 0.737 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.4185, allocations: 0 / 0.737 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004754/0.419, allocations: 174 kB / 0.7372 GB, free: 9.242 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007615/0.4198, allocations: 1.126 MB / 0.7383 GB, free: 8.309 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004907/0.4202, allocations: 320.2 kB / 0.7386 GB, free: 8.113 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4202, allocations: 0 / 0.7386 GB, free: 8.113 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.4205, allocations: 227.1 kB / 0.7388 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/0.4211, allocations: 207 kB / 0.739 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.4244, allocations: 3.714 MB / 0.7427 GB, free: 5.273 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.4246, allocations: 250 kB / 0.7429 GB, free: 5.102 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0004861/0.4251, allocations: 390.9 kB / 0.7433 GB, free: 4.918 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002503/0.4253, allocations: 235.1 kB / 0.7435 GB, free: 4.738 MB / 0.5886 GB Notification: Performance of SimCode: time 1.333e-06/0.4253, allocations: 6.906 kB / 0.7435 GB, free: 4.734 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.4544, allocations: 16.2 MB / 0.7593 GB, free: 9.996 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.339/8.793, allocations: 8 kB / 0.7593 GB, free: 9.988 MB / 0.6042 GB " [Timeout remaining time 651] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Idealized_Tests_Inversion_Inversion1.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Tests.Inversion.Inversion1.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 11.443756642751396] Failed to read output from testmodel.py, exit status != 0: 8.888615456409752 8.900250319 8.491695678 Calling exit ...