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.1026/0.1026, allocations: 15.56 MB / 34.41 MB, free: 4.508 MB / 26.18 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.001337/0.001337, allocations: 103.6 kB / 41.99 MB, free: 6.191 MB / 34.91 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.00149/0.00149, allocations: 212.7 kB / 49.67 MB, free: 10.04 MB / 34.91 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 1.584/1.584, allocations: 230.6 MB / 287.9 MB, free: 6.516 MB / 206.1 MB " [Timeout remaining time 178] 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.1479/0.1479, allocations: 23.73 MB / 372.4 MB, free: 3.078 MB / 286.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Physiolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Physiolibrary requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Warning: Requested package Chemical of version 1.4.0, but this package was already loaded with version 1.4.1. There are no conversion annotations and 1.4.0 is older than 1.4.1, so the libraries are probably incompatible. Notification: Performance of FrontEnd - loaded program: time 0.003792/0.003792, allocations: 127.8 kB / 0.5047 GB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2961, allocations: 63.86 MB / 0.567 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03943/0.3355, allocations: 31.11 MB / 0.5974 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01973/0.3552, allocations: 15.68 MB / 0.6127 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003158/0.3555, allocations: 11.88 kB / 0.6127 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004924/0.356, allocations: 115.1 kB / 0.6128 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004935/0.361, allocations: 1.777 MB / 0.6146 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003653/0.3646, allocations: 1.328 MB / 0.6159 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008621/0.3655, allocations: 0.5563 MB / 0.6164 GB, free: 11.71 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009264/0.3664, allocations: 0.6626 MB / 0.6171 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002704/0.3691, allocations: 1.25 MB / 0.6183 GB, free: 9.789 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.3702, allocations: 0.5962 MB / 0.6189 GB, free: 9.191 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002308/0.3704, allocations: 72 kB / 0.6189 GB, free: 9.121 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004927/0.3754, allocations: 1.91 MB / 0.6208 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004238/0.3758, allocations: 267.3 kB / 0.6211 GB, free: 6.945 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005198/0.3763, allocations: 295.1 kB / 0.6213 GB, free: 6.656 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005586/0.3819, allocations: 2.744 MB / 0.624 GB, free: 3.902 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3819, allocations: 0 / 0.624 GB, free: 3.902 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3819, allocations: 0 / 0.624 GB, free: 3.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.267e-05/0.3819, allocations: 0 / 0.624 GB, free: 3.902 MB / 446.1 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.002546/0.3845, allocations: 0.9411 MB / 0.6249 GB, free: 2.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3845, allocations: 12.03 kB / 0.625 GB, free: 2.918 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.957e-05/0.3846, allocations: 54.55 kB / 0.625 GB, free: 2.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.3848, allocations: 39.77 kB / 0.625 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.3856, allocations: 372.9 kB / 0.6254 GB, free: 2.422 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.3856, allocations: 20.44 kB / 0.6254 GB, free: 2.402 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.834e-05/0.3857, allocations: 24 kB / 0.6254 GB, free: 2.379 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.387, allocations: 0.7064 MB / 0.6261 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.387, allocations: 0 / 0.6261 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.953e-05/0.3871, allocations: 8 kB / 0.6261 GB, free: 1.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3871, allocations: 4 kB / 0.6261 GB, free: 1.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.389, allocations: 1.079 MB / 0.6272 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.392, allocations: 1.292 MB / 0.6285 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007322/0.3927, allocations: 330.6 kB / 0.6288 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.3933, allocations: 292.7 kB / 0.6291 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002016/0.3935, allocations: 35.97 kB / 0.6291 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.3935, allocations: 38.5 kB / 0.6291 GB, free: 14.53 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001305/0.3948, allocations: 275.6 kB / 0.6294 GB, free: 14.26 MB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 2.374e-06/0.3948, allocations: 0 / 0.6294 GB, free: 14.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.00942/0.4042, allocations: 2.025 MB / 0.6314 GB, free: 12.22 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.4043, allocations: 63.34 kB / 0.6314 GB, free: 12.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004801/0.4048, allocations: 364.5 kB / 0.6318 GB, free: 11.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.4048, allocations: 29.7 kB / 0.6318 GB, free: 11.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.405, allocations: 156.7 kB / 0.632 GB, free: 11.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.4051, allocations: 111 kB / 0.6321 GB, free: 11.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.4052, allocations: 85.61 kB / 0.6321 GB, free: 11.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.4054, allocations: 350.8 kB / 0.6325 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/0.4058, allocations: 231.9 kB / 0.6327 GB, free: 10.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004234/0.4063, allocations: 231.9 kB / 0.6329 GB, free: 10.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009276/0.4072, allocations: 0.5099 MB / 0.6334 GB, free: 10.08 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4072, allocations: 0 / 0.6334 GB, free: 10.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002282/0.4095, allocations: 0.9157 MB / 0.6343 GB, free: 9.156 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.4095, allocations: 11.92 kB / 0.6343 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4095, allocations: 0 / 0.6343 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05009/0.4596, allocations: 4.207 MB / 0.6384 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.958e-05/0.4596, allocations: 4 kB / 0.6384 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003571/0.4632, allocations: 1.512 MB / 0.6399 GB, free: 3.387 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.4636, allocations: 12 kB / 0.6399 GB, free: 3.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.642e-05/0.4636, allocations: 31.89 kB / 0.6399 GB, free: 3.344 MB / 462.1 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.0002805/0.4639, allocations: 157.8 kB / 0.6401 GB, free: 3.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.4641, allocations: 35.77 kB / 0.6401 GB, free: 3.145 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/0.4662, allocations: 1.064 MB / 0.6412 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.4662, allocations: 7.984 kB / 0.6412 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4663, allocations: 0 / 0.6412 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.4663, allocations: 0 / 0.6412 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.4691, allocations: 1.63 MB / 0.6428 GB, free: 380 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.4691, allocations: 0 / 0.6428 GB, free: 380 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.871e-05/0.4691, allocations: 7.938 kB / 0.6428 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.4713, allocations: 0.783 MB / 0.6435 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.4713, allocations: 11.94 kB / 0.6436 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.474, allocations: 1.554 MB / 0.6451 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.474, allocations: 0 / 0.6451 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.4755, allocations: 0.9501 MB / 0.646 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/0.4758, allocations: 79.69 kB / 0.6461 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.558e-05/0.4759, allocations: 12 kB / 0.6461 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.4762, allocations: 7.938 kB / 0.6461 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4763, allocations: 27.89 kB / 0.6461 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.4763, allocations: 12 kB / 0.6461 GB, free: 12.88 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00033/0.4766, allocations: 267 kB / 0.6464 GB, free: 12.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4766, allocations: 0 / 0.6464 GB, free: 12.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001582/0.4782, allocations: 0.5991 MB / 0.647 GB, free: 12.02 MB / 478.1 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.004249/0.4825, allocations: 2.493 MB / 0.6494 GB, free: 9.492 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.485, allocations: 0.7009 MB / 0.6501 GB, free: 8.789 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.485, allocations: 0 / 0.6501 GB, free: 8.789 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.4862, allocations: 460.2 kB / 0.6505 GB, free: 8.344 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.4876, allocations: 287 kB / 0.6508 GB, free: 8.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008991/0.4966, allocations: 5.233 MB / 0.6559 GB, free: 2.758 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.4968, allocations: 197 kB / 0.6561 GB, free: 2.547 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.497, allocations: 43.25 kB / 0.6561 GB, free: 2.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.4972, allocations: 119.3 kB / 0.6563 GB, free: 2.387 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4972, allocations: 0 / 0.6563 GB, free: 2.387 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06713/0.5643, allocations: 31.13 MB / 0.6867 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.2, allocations: 7.188 kB / 0.6867 GB, free: 3.543 MB / 0.4981 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration_fmu --startTime=0 --stopTime=1800 --stepSize=0.72 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.170539460144937] Failed to read output from testmodel.py, exit status != 0: 14.330553761683404 14.347826796 13.962412372 Calling exit ...