Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.06853/0.06853, allocations: 11.16 MB / 30.25 MB, free: 5.086 MB / 24.77 MB " [Timeout remaining time 180] 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.001008/0.001008, allocations: 85.94 kB / 37.83 MB, free: 7.473 MB / 33.03 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.001471/0.001471, allocations: 164.7 kB / 45.51 MB, free: 10.91 MB / 44.04 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.9231/0.9231, allocations: 177.2 MB / 230.2 MB, free: 6.562 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.21/0.21, allocations: 17.61 MB / 308.7 MB, free: 1.746 MB / 266.7 MB " [Timeout remaining time 180] Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 453.1 MB, free: 6.012 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.487e-05, allocations: 2.281 kB / 453.1 MB, free: 6.008 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.2046/0.2046, allocations: 31.06 MB / 484.2 MB, free: 32.96 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007956/0.2125, allocations: 15.65 MB / 499.8 MB, free: 22.39 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/0.2128, allocations: 11.31 kB / 499.8 MB, free: 22.39 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.2132, allocations: 123.8 kB / 500 MB, free: 22.31 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.2159, allocations: 1.83 MB / 0.49 GB, free: 21.27 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002007/0.2179, allocations: 1.375 MB / 0.4914 GB, free: 20.49 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.2183, allocations: 0.5761 MB / 0.4919 GB, free: 20.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.2188, allocations: 0.6595 MB / 0.4926 GB, free: 19.93 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.2201, allocations: 1.369 MB / 0.4939 GB, free: 19.37 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000429/0.2205, allocations: 0.5628 MB / 0.4945 GB, free: 19.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.2206, allocations: 76.56 kB / 0.4945 GB, free: 19.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002185/0.2228, allocations: 1.929 MB / 0.4964 GB, free: 18.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.2229, allocations: 285.3 kB / 0.4967 GB, free: 18.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.2231, allocations: 267.5 kB / 0.497 GB, free: 18.4 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.2251, allocations: 2.996 MB / 0.4999 GB, free: 17.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2251, allocations: 0 / 0.4999 GB, free: 17.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2251, allocations: 0 / 0.4999 GB, free: 17.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2252, allocations: 1.094 kB / 0.4999 GB, free: 17.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001187/0.2263, allocations: 0.9486 MB / 0.5008 GB, free: 16.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2264, allocations: 9.469 kB / 0.5008 GB, free: 16.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.2265, allocations: 57.78 kB / 0.5009 GB, free: 16.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.2266, allocations: 41.81 kB / 0.5009 GB, free: 16.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.227, allocations: 364.4 kB / 0.5013 GB, free: 16.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.227, allocations: 18 kB / 0.5013 GB, free: 16.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.484e-05/0.2271, allocations: 22.38 kB / 0.5013 GB, free: 16.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.2278, allocations: 0.7124 MB / 0.502 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2279, allocations: 1.188 kB / 0.502 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.2279, allocations: 9.125 kB / 0.502 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.2279, allocations: 5.969 kB / 0.502 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.2291, allocations: 1.075 MB / 0.5031 GB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.2309, allocations: 1.283 MB / 0.5043 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.2314, allocations: 337.1 kB / 0.5046 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004327/0.2318, allocations: 297.7 kB / 0.5049 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000238/0.2321, allocations: 39.88 kB / 0.505 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.2321, allocations: 34.56 kB / 0.505 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007997/0.2329, allocations: 268.7 kB / 0.5052 GB, free: 14.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.635e-06/0.2329, allocations: 0 / 0.5052 GB, free: 14.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.005466/0.2383, allocations: 2.027 MB / 0.5072 GB, free: 14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2384, allocations: 55 kB / 0.5073 GB, free: 13.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.2388, allocations: 370.8 kB / 0.5076 GB, free: 13.76 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.2388, allocations: 29.7 kB / 0.5077 GB, free: 13.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.17e-05/0.2389, allocations: 159.6 kB / 0.5078 GB, free: 13.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.472e-05/0.239, allocations: 112.1 kB / 0.5079 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.2391, allocations: 89.86 kB / 0.508 GB, free: 13.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.533e-05/0.2392, allocations: 351.8 kB / 0.5083 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.2395, allocations: 229 kB / 0.5086 GB, free: 13.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.2397, allocations: 229.9 kB / 0.5088 GB, free: 12.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.2403, allocations: 0.509 MB / 0.5093 GB, free: 12.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2403, allocations: 1.875 kB / 0.5093 GB, free: 12.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001373/0.2417, allocations: 0.919 MB / 0.5102 GB, free: 12.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2417, allocations: 5.281 kB / 0.5102 GB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2417, allocations: 7.938 kB / 0.5102 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02492/0.2667, allocations: 4.241 MB / 0.5143 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.41e-05/0.2667, allocations: 4.141 kB / 0.5143 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.2687, allocations: 1.511 MB / 0.5158 GB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.2689, allocations: 6.406 kB / 0.5158 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.269, allocations: 34.2 kB / 0.5158 GB, free: 11.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(13,17)} Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.2692, allocations: 157.2 kB / 0.516 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.054e-05/0.2693, allocations: 36.62 kB / 0.516 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/0.2706, allocations: 1.056 MB / 0.5171 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.006e-06/0.2706, allocations: 4.75 kB / 0.5171 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2706, allocations: 0.5625 kB / 0.5171 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2706, allocations: 5.422 kB / 0.5171 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.2723, allocations: 1.64 MB / 0.5187 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.2723, allocations: 4 kB / 0.5187 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.816e-05/0.2723, allocations: 3.375 kB / 0.5187 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.2736, allocations: 0.7794 MB / 0.5194 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.2736, allocations: 7.953 kB / 0.5195 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.275, allocations: 1.555 MB / 0.521 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.275, allocations: 1.969 kB / 0.521 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000853/0.2759, allocations: 0.9549 MB / 0.5219 GB, free: 8.047 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.276, allocations: 81.58 kB / 0.522 GB, free: 8.008 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.276, allocations: 12.81 kB / 0.522 GB, free: 8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.2762, allocations: 13.12 kB / 0.522 GB, free: 7.988 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.2762, allocations: 21.3 kB / 0.522 GB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.2763, allocations: 13.44 kB / 0.522 GB, free: 7.984 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001759/0.2764, allocations: 267.8 kB / 0.5223 GB, free: 7.852 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2764, allocations: 0 / 0.5223 GB, free: 7.852 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001487/0.2779, allocations: 0.5912 MB / 0.5229 GB, free: 7.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(13,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00247/0.2804, allocations: 2.52 MB / 0.5253 GB, free: 6.312 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.2817, allocations: 0.7085 MB / 0.526 GB, free: 6.098 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2817, allocations: 4 kB / 0.526 GB, free: 6.094 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006436/0.2823, allocations: 444.3 kB / 0.5265 GB, free: 5.965 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007969/0.2831, allocations: 293.6 kB / 0.5267 GB, free: 5.848 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.2877, allocations: 5.246 MB / 0.5319 GB, free: 1.078 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.2878, allocations: 201 kB / 0.532 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.2879, allocations: 39.31 kB / 0.5321 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.924e-05/0.288, allocations: 112.5 kB / 0.5322 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of SimCode: time 9.01e-07/0.288, allocations: 0 / 0.5322 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/0.326, allocations: 31.31 MB / 0.5628 GB, free: 1.711 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.398/8.724, allocations: 7.188 kB / 0.5628 GB, free: 1.707 MB / 442.7 MB " [Timeout remaining time 651] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.882011565379798] Failed to read output from testmodel.py, exit status != 0: 8.824046909809113 8.833215837 8.606024944 Calling exit ...