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.0008134/0.0008136, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005157/0.005158, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1721/0.1721, allocations: 15.27 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002852, allocations: 8 kB / 372.2 MB, free: 3.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2365, allocations: 54.62 MB / 426.8 MB, free: 40.53 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.03938/0.2759, allocations: 53.07 MB / 479.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3213/0.5972, allocations: 119.1 MB / 0.585 GB, free: 5.441 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005726/0.603, allocations: 140.5 kB / 0.5851 GB, free: 5.441 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005461/0.6085, allocations: 2.172 MB / 0.5872 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02355/0.632, allocations: 8.821 MB / 0.5958 GB, free: 5.359 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03417/0.6662, allocations: 13.57 MB / 0.6091 GB, free: 4.379 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01252/0.6788, allocations: 10.08 MB / 0.6189 GB, free: 1.332 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00601/0.6848, allocations: 4.515 MB / 0.6233 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008166/0.693, allocations: 5.008 MB / 0.6282 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009432/0.7025, allocations: 5.486 MB / 0.6336 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001659/0.7041, allocations: 475.2 kB / 0.634 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03771/0.7419, allocations: 13.38 MB / 0.6471 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.7454, allocations: 1.699 MB / 0.6488 GB, free: 9.691 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006189/0.7516, allocations: 4.095 MB / 0.6528 GB, free: 7.168 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04675/0.7983, allocations: 22.47 MB / 0.6747 GB, free: 4.141 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.7984, allocations: 3.984 kB / 0.6747 GB, free: 4.137 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7984, allocations: 0 / 0.6747 GB, free: 4.137 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001975/0.7986, allocations: 0 / 0.6747 GB, free: 4.137 MB / 478.1 MB 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.01726/0.8159, allocations: 8.611 MB / 0.6831 GB, free: 11.53 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.8159, allocations: 8.031 kB / 0.6831 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00127/0.8172, allocations: 0.9072 MB / 0.684 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008279/0.8255, allocations: 1.91 MB / 0.6859 GB, free: 8.691 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00497/0.8305, allocations: 3.291 MB / 0.6891 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004048/0.8309, allocations: 0.5513 MB / 0.6896 GB, free: 4.836 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.8321, allocations: 0.7344 MB / 0.6904 GB, free: 4.102 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/0.8463, allocations: 9.186 MB / 0.6993 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.8464, allocations: 3.938 kB / 0.6993 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007484/0.8472, allocations: 288 kB / 0.6996 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.8473, allocations: 176 kB / 0.6998 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/0.8667, allocations: 12.65 MB / 0.7121 GB, free: 13.67 MB / 0.5137 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.04826/0.915, allocations: 29.81 MB / 0.7412 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03213/0.9471, allocations: 20.42 MB / 0.7612 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007237/0.9544, allocations: 4.715 MB / 0.7658 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3653/1.32, allocations: 35.7 MB / 0.8006 GB, free: 226.8 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/1.32, allocations: 93.34 kB / 0.8007 GB, free: 226.7 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00199/1.322, allocations: 0.5789 MB / 0.8013 GB, free: 226.3 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 6.833e-06/1.322, allocations: 2.625 kB / 0.8013 GB, free: 226.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.1031/1.425, allocations: 35.89 MB / 0.8363 GB, free: 213.4 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/1.425, allocations: 132 kB / 0.8365 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/1.428, allocations: 3.38 MB / 0.8398 GB, free: 212.1 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007289/1.429, allocations: 149.4 kB / 0.8399 GB, free: 211.9 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001325/1.43, allocations: 3.144 MB / 0.843 GB, free: 209.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001682/1.432, allocations: 2.583 MB / 0.8455 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007255/1.433, allocations: 0.7072 MB / 0.8462 GB, free: 207.1 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.451e-05/1.433, allocations: 304.7 kB / 0.8465 GB, free: 206.8 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004092/1.437, allocations: 2.857 MB / 0.8493 GB, free: 205.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/1.442, allocations: 5.732 MB / 0.8549 GB, free: 201 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/1.453, allocations: 9.487 MB / 0.8641 GB, free: 194.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.205e-05/1.453, allocations: 26.25 kB / 0.8642 GB, free: 194.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.01979/1.473, allocations: 10.73 MB / 0.8746 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/1.473, allocations: 46.75 kB / 0.8747 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.91e-05/1.473, allocations: 92 kB / 0.8748 GB, free: 186.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008986/1.482, allocations: 1.849 MB / 0.8766 GB, free: 185.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008952/1.491, allocations: 2.317 MB / 0.8788 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/1.506, allocations: 11.83 MB / 0.8904 GB, free: 171.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006136/1.512, allocations: 463.4 kB / 0.8908 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007972/1.513, allocations: 0.5116 MB / 0.8913 GB, free: 170.1 MB / 0.5763 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.002295/1.515, allocations: 1.206 MB / 0.8925 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000826/1.516, allocations: 0.5748 MB / 0.8931 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02023/1.536, allocations: 10.16 MB / 0.903 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/1.536, allocations: 80 kB / 0.9031 GB, free: 158.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/1.536, allocations: 4 kB / 0.9031 GB, free: 158.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.904e-05/1.536, allocations: 39.84 kB / 0.9031 GB, free: 158.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02541/1.562, allocations: 16.28 MB / 0.919 GB, free: 141.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/1.562, allocations: 8.062 kB / 0.919 GB, free: 141.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00724/1.569, allocations: 1.521 MB / 0.9205 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008135/1.577, allocations: 1.674 MB / 0.9221 GB, free: 138.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006442/1.578, allocations: 259.9 kB / 0.9224 GB, free: 138.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.591, allocations: 11.1 MB / 0.9332 GB, free: 126.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.591, allocations: 4 kB / 0.9332 GB, free: 126.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/1.611, allocations: 12.97 MB / 0.9459 GB, free: 113.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/1.613, allocations: 1.25 MB / 0.9471 GB, free: 112.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007325/1.614, allocations: 156 kB / 0.9473 GB, free: 112 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/1.617, allocations: 291.5 kB / 0.9476 GB, free: 111.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008686/1.618, allocations: 0.5795 MB / 0.9481 GB, free: 111.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004659/1.619, allocations: 315.4 kB / 0.9484 GB, free: 110.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002135/1.621, allocations: 2.039 MB / 0.9504 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.4e-07/1.621, allocations: 0 / 0.9504 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01075/1.632, allocations: 5 MB / 0.9553 GB, free: 104.4 MB / 0.5763 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.02808/1.66, allocations: 19 MB / 0.9738 GB, free: 86.52 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01148/1.671, allocations: 8.978 MB / 0.9826 GB, free: 77.47 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.671, allocations: 0 / 0.9826 GB, free: 77.47 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005529/1.677, allocations: 4.893 MB / 0.9874 GB, free: 72.52 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006399/1.683, allocations: 1.093 MB / 0.9885 GB, free: 71.45 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.271/1.954, allocations: 79.26 MB / 1.066 GB, free: 212.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002123/1.956, allocations: 3.176 MB / 1.069 GB, free: 211.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007691/1.964, allocations: 1.672 MB / 1.071 GB, free: 211.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004361/1.968, allocations: 3.726 MB / 1.074 GB, free: 210.2 MB / 0.5763 GB Notification: Performance of SimCode: time 2.074e-06/1.968, allocations: 0 / 1.074 GB, free: 210.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4359/2.404, allocations: 212.2 MB / 1.282 GB, free: 198.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001315/2.404, allocations: 223.9 kB / 1.282 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.023/11.43, allocations: 1.75 kB / 1.282 GB, free: 198.6 MB / 0.5763 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane.fmu > Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.pipe 2>&1)