Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004897/0.004897, allocations: 102.5 kB / 15.74 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 194.7 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2078/0.2078, allocations: 15.33 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 63.91 kB / 424.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2472, allocations: 53.61 MB / 478.4 MB, free: 25.61 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Dev.RedCellMembrane): time 0.05158/0.2988, allocations: 50.1 MB / 0.5161 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3824/0.6812, allocations: 120.7 MB / 0.634 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006482/0.6878, allocations: 73.22 kB / 0.6341 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007768/0.6956, allocations: 2.388 MB / 0.6364 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02652/0.7221, allocations: 10.11 MB / 0.6463 GB, free: 13.26 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04023/0.7624, allocations: 15.49 MB / 0.6614 GB, free: 7.648 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01714/0.7796, allocations: 10.53 MB / 0.6717 GB, free: 4.496 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007234/0.7869, allocations: 5.508 MB / 0.6771 GB, free: 1.426 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00796/0.7948, allocations: 5.345 MB / 0.6823 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009951/0.8048, allocations: 5.884 MB / 0.688 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003141/0.808, allocations: 0.8828 MB / 0.6889 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04456/0.8526, allocations: 13.73 MB / 0.7023 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.003587/0.8562, allocations: 2.123 MB / 0.7044 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.007977/0.8642, allocations: 4.538 MB / 0.7088 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.06127/0.9255, allocations: 24.34 MB / 0.7326 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.9255, allocations: 4 kB / 0.7326 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9255, allocations: 0 / 0.7326 GB, free: 228 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0002842/0.9258, allocations: 0 / 0.7326 GB, free: 228 kB / 0.5137 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.02397/0.9498, allocations: 10.75 MB / 0.7431 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.9499, allocations: 8.031 kB / 0.7431 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001372/0.9512, allocations: 0.9033 MB / 0.744 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.9616, allocations: 1.957 MB / 0.7459 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009618/0.9712, allocations: 3.571 MB / 0.7494 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005885/0.9718, allocations: 0.5513 MB / 0.7499 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002073/0.9739, allocations: 0.7385 MB / 0.7506 GB, free: 13.74 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/0.993, allocations: 9.182 MB / 0.7596 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.9932, allocations: 7.938 kB / 0.7596 GB, free: 4.426 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009384/0.9941, allocations: 284 kB / 0.7599 GB, free: 4.148 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.9943, allocations: 172 kB / 0.76 GB, free: 3.98 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02442/1.019, allocations: 12.65 MB / 0.7724 GB, free: 7.312 MB / 0.5606 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.06102/1.08, allocations: 30.15 MB / 0.8018 GB, free: 8.625 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03771/1.118, allocations: 20.42 MB / 0.8218 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008545/1.126, allocations: 4.704 MB / 0.8264 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4687/1.595, allocations: 36.48 MB / 0.862 GB, free: 233.1 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/1.595, allocations: 99.28 kB / 0.8621 GB, free: 233 MB / 0.6232 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002005/1.597, allocations: 0.6056 MB / 0.8627 GB, free: 232.8 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=581): time 1.052e-05/1.597, allocations: 0 / 0.8627 GB, free: 232.8 MB / 0.6232 GB Notification: Performance of matching and sorting (n=757): time 0.1073/1.704, allocations: 35.64 MB / 0.8975 GB, free: 219.3 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/1.704, allocations: 134.2 kB / 0.8976 GB, free: 219.3 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003794/1.708, allocations: 3.385 MB / 0.9009 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001036/1.709, allocations: 151.4 kB / 0.9011 GB, free: 217.4 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001493/1.711, allocations: 3.246 MB / 0.9042 GB, free: 214.9 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002002/1.713, allocations: 2.714 MB / 0.9069 GB, free: 212.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001936/1.715, allocations: 1.7 MB / 0.9085 GB, free: 211.9 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.025e-05/1.715, allocations: 302.7 kB / 0.9088 GB, free: 211.6 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004099/1.719, allocations: 2.865 MB / 0.9116 GB, free: 209.4 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00547/1.724, allocations: 5.734 MB / 0.9172 GB, free: 202.5 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.735, allocations: 9.492 MB / 0.9265 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-05/1.736, allocations: 24 kB / 0.9265 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02096/1.757, allocations: 10.74 MB / 0.937 GB, free: 181.1 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 6.005e-05/1.757, allocations: 44 kB / 0.937 GB, free: 181.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.176e-05/1.757, allocations: 92 kB / 0.9371 GB, free: 181 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008855/1.766, allocations: 1.817 MB / 0.9389 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009524/1.775, allocations: 2.316 MB / 0.9412 GB, free: 176.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/1.79, allocations: 12.81 MB / 0.9537 GB, free: 163.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.797, allocations: 300 kB / 0.954 GB, free: 163.1 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.798, allocations: 0.517 MB / 0.9545 GB, free: 162.6 MB / 0.6232 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.002748/1.801, allocations: 1.202 MB / 0.9557 GB, free: 161.4 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/1.802, allocations: 0.6015 MB / 0.9562 GB, free: 160.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02045/1.823, allocations: 10.13 MB / 0.9661 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.934e-05/1.823, allocations: 80 kB / 0.9662 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/1.823, allocations: 4 kB / 0.9662 GB, free: 150.7 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001225/1.823, allocations: 43.78 kB / 0.9662 GB, free: 150.6 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03064/1.853, allocations: 16.31 MB / 0.9822 GB, free: 134.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-05/1.854, allocations: 7.938 kB / 0.9822 GB, free: 134.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0077/1.861, allocations: 1.536 MB / 0.9837 GB, free: 132.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008155/1.869, allocations: 1.601 MB / 0.9852 GB, free: 131.2 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001429/1.871, allocations: 263.8 kB / 0.9855 GB, free: 130.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/1.885, allocations: 12.09 MB / 0.9973 GB, free: 118.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.885, allocations: 4 kB / 0.9973 GB, free: 118.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02226/1.907, allocations: 12.98 MB / 1.01 GB, free: 105 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002736/1.91, allocations: 1.33 MB / 1.011 GB, free: 103.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009361/1.911, allocations: 152 kB / 1.011 GB, free: 103.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00322/1.914, allocations: 148 kB / 1.012 GB, free: 103.4 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009278/1.915, allocations: 0.5834 MB / 1.012 GB, free: 102.8 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005088/1.915, allocations: 311.9 kB / 1.012 GB, free: 102.5 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.002352/1.918, allocations: 2.039 MB / 1.014 GB, free: 100.4 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.11e-07/1.918, allocations: 4 kB / 1.014 GB, free: 100.4 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01244/1.93, allocations: 5.106 MB / 1.019 GB, free: 95.53 MB / 0.6232 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.03309/1.963, allocations: 19.08 MB / 1.038 GB, free: 76.96 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.01362/1.977, allocations: 9.011 MB / 1.047 GB, free: 67.89 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/1.977, allocations: 0 / 1.047 GB, free: 67.89 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.006505/1.983, allocations: 4.891 MB / 1.052 GB, free: 62.93 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005219/1.989, allocations: 1.189 MB / 1.053 GB, free: 61.82 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3269/2.316, allocations: 60.16 MB / 1.112 GB, free: 225.6 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004405/2.32, allocations: 3.18 MB / 1.115 GB, free: 224.8 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.007452/2.327, allocations: 1.667 MB / 1.116 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00559/2.333, allocations: 3.722 MB / 1.12 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of SimCode: time 8.42e-07/2.333, allocations: 0 / 1.12 GB, free: 224.7 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2963/2.629, allocations: 215.5 MB / 1.33 GB, free: 45.46 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 45.68/48.31, allocations: 7.984 kB / 1.33 GB, free: 45.45 MB / 0.6232 GB (rm -f Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.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_Chemical_Examples_AcidBase_Dev_RedCellMembrane.fmu > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)