Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.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.00129/0.00129, allocations: 107 kB / 16.45 MB, free: 6.453 MB / 14.72 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.001521/0.001521, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 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.499/1.499, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1521/0.1521, allocations: 23.88 MB / 332.7 MB, free: 12.32 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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(Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_Dev_RedCellMembrane",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: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 71.91 kB / 466.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3366, allocations: 59.83 MB / 0.5136 GB, free: 8.852 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane): time 0.06888/0.4054, allocations: 51.07 MB / 0.5634 GB, free: 7.309 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1575/0.563, allocations: 121.3 MB / 0.6819 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007038/0.57, allocations: 99.25 kB / 0.682 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.007855/0.5779, allocations: 2.408 MB / 0.6843 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.03047/0.6083, allocations: 10.18 MB / 0.6943 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.04158/0.6499, allocations: 15.62 MB / 0.7095 GB, free: 1.949 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01692/0.6668, allocations: 10.53 MB / 0.7198 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007298/0.6741, allocations: 4.702 MB / 0.7244 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.316/0.9901, allocations: 5.423 MB / 0.7297 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01199/1.002, allocations: 5.97 MB / 0.7355 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.004959/1.007, allocations: 0.8862 MB / 0.7364 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04882/1.056, allocations: 13.91 MB / 0.75 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.005038/1.061, allocations: 2.137 MB / 0.7521 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00762/1.069, allocations: 4.55 MB / 0.7565 GB, free: 24.54 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.05238/1.121, allocations: 24.95 MB / 0.7809 GB, free: 22.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/1.121, allocations: 0 / 0.7809 GB, free: 22.31 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.124e-06/1.121, allocations: 0 / 0.7809 GB, free: 22.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0005247/1.121, allocations: 0 / 0.7809 GB, free: 22.31 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1818 * Number of variables: 1818 Notification: Performance of Generate backend data structure: time 0.0318/1.153, allocations: 10.72 MB / 0.7913 GB, free: 17.77 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/1.153, allocations: 13.09 kB / 0.7913 GB, free: 17.77 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003117/1.156, allocations: 0.9073 MB / 0.7922 GB, free: 17.69 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0113/1.168, allocations: 1.947 MB / 0.7941 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009028/1.177, allocations: 3.616 MB / 0.7977 GB, free: 16.37 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006873/1.177, allocations: 0.5528 MB / 0.7982 GB, free: 16.32 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003282/1.181, allocations: 0.7385 MB / 0.7989 GB, free: 16.3 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/1.201, allocations: 9.211 MB / 0.8079 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001522/1.201, allocations: 3.469 kB / 0.8079 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/1.202, allocations: 289.7 kB / 0.8082 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-05/1.202, allocations: 172.6 kB / 0.8084 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02243/1.225, allocations: 12.7 MB / 0.8208 GB, free: 15.72 MB / 0.5762 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06718/1.292, allocations: 30.32 MB / 0.8504 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04075/1.333, allocations: 19.83 MB / 0.8697 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009295/1.342, allocations: 4.091 MB / 0.8737 GB, free: 8.742 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06479/1.407, allocations: 36.64 MB / 0.9095 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.469e-05/1.407, allocations: 87.12 kB / 0.9096 GB, free: 444 kB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002851/1.41, allocations: 0.6547 MB / 0.9102 GB, free: 15.78 MB / 0.67 GB Notification: Performance of pre-optimization done (n=581): time 1.349e-05/1.41, allocations: 3.938 kB / 0.9102 GB, free: 15.78 MB / 0.67 GB Notification: Performance of matching and sorting (n=757): time 0.1349/1.545, allocations: 35.58 MB / 0.945 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/1.545, allocations: 129.3 kB / 0.9451 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008063/1.553, allocations: 3.384 MB / 0.9484 GB, free: 8.879 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.001869/1.555, allocations: 149.7 kB / 0.9486 GB, free: 8.727 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.00307/1.558, allocations: 3.253 MB / 0.9517 GB, free: 5.48 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.004547/1.562, allocations: 2.715 MB / 0.9544 GB, free: 2.801 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004622/1.567, allocations: 1.702 MB / 0.9561 GB, free: 1.086 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.567, allocations: 305.1 kB / 0.9564 GB, free: 0.7852 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006205/1.573, allocations: 2.86 MB / 0.9591 GB, free: 13.92 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009131/1.582, allocations: 5.742 MB / 0.9648 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2763/1.859, allocations: 9.485 MB / 0.974 GB, free: 295.8 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.816e-05/1.859, allocations: 25.56 kB / 0.974 GB, free: 295.8 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02776/1.887, allocations: 10.7 MB / 0.9845 GB, free: 294.6 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/1.887, allocations: 43.78 kB / 0.9845 GB, free: 294.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001507/1.887, allocations: 90.94 kB / 0.9846 GB, free: 294.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0101/1.897, allocations: 1.812 MB / 0.9864 GB, free: 294.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01179/1.909, allocations: 2.315 MB / 0.9887 GB, free: 294 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01764/1.926, allocations: 12.83 MB / 1.001 GB, free: 283.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00686/1.933, allocations: 291 kB / 1.001 GB, free: 283.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001943/1.935, allocations: 0.5137 MB / 1.002 GB, free: 283.6 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * 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 (1143): * Single equations (assignments): 1137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,20,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,27), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.004251/1.939, allocations: 1.209 MB / 1.003 GB, free: 282.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/1.941, allocations: 0.6031 MB / 1.004 GB, free: 282.8 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02414/1.965, allocations: 10.1 MB / 1.014 GB, free: 278.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.174e-05/1.966, allocations: 78.38 kB / 1.014 GB, free: 278.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/1.966, allocations: 5.422 kB / 1.014 GB, free: 278.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001714/1.966, allocations: 37.88 kB / 1.014 GB, free: 278.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03145/1.997, allocations: 16.33 MB / 1.03 GB, free: 272.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/1.997, allocations: 2.531 kB / 1.03 GB, free: 272.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007387/2.005, allocations: 1.526 MB / 1.031 GB, free: 272.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00807/2.013, allocations: 1.597 MB / 1.033 GB, free: 271.7 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001156/2.014, allocations: 268.8 kB / 1.033 GB, free: 271.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01458/2.028, allocations: 12.09 MB / 1.045 GB, free: 261.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/2.028, allocations: 7.812 kB / 1.045 GB, free: 261.6 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0281/2.056, allocations: 12.95 MB / 1.057 GB, free: 256 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003827/2.06, allocations: 1.348 MB / 1.059 GB, free: 255 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002166/2.062, allocations: 147.9 kB / 1.059 GB, free: 254.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004573/2.067, allocations: 155.7 kB / 1.059 GB, free: 254.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001464/2.069, allocations: 0.5763 MB / 1.06 GB, free: 254.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001023/2.07, allocations: 316 kB / 1.06 GB, free: 254.1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.003843/2.073, allocations: 2.041 MB / 1.062 GB, free: 252.4 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/2.073, allocations: 0 / 1.062 GB, free: 252.4 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.01607/2.089, allocations: 5.107 MB / 1.067 GB, free: 248.3 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 34 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,HCO3.logn,H2O.logn,HCO3_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,albumin.logn,permeableUncharged.logn,permeableUncharged_E.logn,chargedImpermeable_E.logn,Lac_E.logn,Lac.logn,H_E.logn,H.logn,CO2.logn,CO2_E.logn,O2.logn,O2_E.logn,K.logn,Na.logn,Na_E.logn,K_E.logn,H2PO4_E.logn,ADP_E.logn,ATP_E.logn,HPO4_E.logn,globulins.logn,Ca.logn,Mg.logn,DPG.logn,GSH.logn) * 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 (761): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,20,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(4,33), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03994/2.129, allocations: 19.15 MB / 1.086 GB, free: 230.2 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01759/2.147, allocations: 8.397 MB / 1.094 GB, free: 221.8 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/2.147, allocations: 6.844 kB / 1.094 GB, free: 221.8 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.009063/2.156, allocations: 4.472 MB / 1.098 GB, free: 217.3 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007379/2.163, allocations: 1.186 MB / 1.099 GB, free: 216.2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1069/2.27, allocations: 60.1 MB / 1.158 GB, free: 151.8 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002378/2.273, allocations: 3.172 MB / 1.161 GB, free: 148.6 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.006834/2.28, allocations: 1.682 MB / 1.163 GB, free: 147.1 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005172/2.285, allocations: 3.724 MB / 1.166 GB, free: 143.4 MB / 0.7169 GB Notification: Performance of SimCode: time 1.924e-06/2.285, allocations: 0 / 1.166 GB, free: 143.4 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5825/2.867, allocations: 219.5 MB / 1.381 GB, free: 260.9 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 45.88/48.75, allocations: 10.58 kB / 1.381 GB, free: 260.9 MB / 0.7169 GB " [Timeout remaining time 611] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane_res.csv --start-time 0 --stop-time 1e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-12 Chemical_master_Chemical_Obsolete_Examples_AcidBase_Dev_RedCellMembrane.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 102.17092455504462] Failed to read output from testmodel.py, exit status != 0: 48.974161074031144 48.985571089 47.862000061 Calling exit ...