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.001069/0.001069, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001355/0.001355, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.275/1.275, allocations: 222.9 MB / 239.9 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1766/0.1766, allocations: 15.31 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.00124, allocations: 55.91 kB / 369.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09549, allocations: 53.62 MB / 423.6 MB, free: 14.59 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.2102/0.3057, allocations: 53.96 MB / 477.5 MB, free: 29.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1073/0.413, allocations: 119.1 MB / 0.5827 GB, free: 2.855 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006181/0.4193, allocations: 150.9 kB / 0.5828 GB, free: 2.707 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006327/0.4256, allocations: 2.178 MB / 0.5849 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02602/0.4516, allocations: 9.104 MB / 0.5938 GB, free: 7.355 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2309/0.6825, allocations: 13.85 MB / 0.6074 GB, free: 10.49 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.6931, allocations: 10.51 MB / 0.6176 GB, free: 10.46 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005435/0.6986, allocations: 5.505 MB / 0.623 GB, free: 10.06 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007383/0.706, allocations: 5.618 MB / 0.6285 GB, free: 10.06 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01017/0.7161, allocations: 6.027 MB / 0.6344 GB, free: 9.496 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004068/0.7202, allocations: 0.8876 MB / 0.6352 GB, free: 9.496 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0391/0.7594, allocations: 14.07 MB / 0.649 GB, free: 9.496 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003915/0.7633, allocations: 2.165 MB / 0.6511 GB, free: 9.223 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007996/0.7713, allocations: 4.595 MB / 0.6556 GB, free: 8.113 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04402/0.8154, allocations: 23.08 MB / 0.6781 GB, free: 14.8 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.8154, allocations: 0 / 0.6781 GB, free: 14.8 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.8154, allocations: 0 / 0.6781 GB, free: 14.8 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003713/0.8158, allocations: 0 / 0.6781 GB, free: 14.8 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.02701/0.8428, allocations: 10.45 MB / 0.6883 GB, free: 4.379 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.8429, allocations: 8.031 kB / 0.6883 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001851/0.8447, allocations: 0.9081 MB / 0.6892 GB, free: 3.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009464/0.8542, allocations: 1.907 MB / 0.6911 GB, free: 1.543 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005656/0.8599, allocations: 3.451 MB / 0.6945 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004187/0.8603, allocations: 0.5539 MB / 0.695 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.8617, allocations: 0.7344 MB / 0.6957 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.8765, allocations: 9.175 MB / 0.7047 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/0.8766, allocations: 9.719 kB / 0.7047 GB, free: 3.668 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007133/0.8773, allocations: 288 kB / 0.705 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.8775, allocations: 174.6 kB / 0.7051 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01822/0.8957, allocations: 12.66 MB / 0.7175 GB, free: 6.574 MB / 0.4981 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.04559/0.9413, allocations: 30.14 MB / 0.7469 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03101/0.9723, allocations: 20.42 MB / 0.7668 GB, free: 3.234 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006762/0.9791, allocations: 4.712 MB / 0.7715 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3545/1.334, allocations: 36.54 MB / 0.8071 GB, free: 226.6 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/1.334, allocations: 91.69 kB / 0.8072 GB, free: 226.6 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002948/1.337, allocations: 0.5782 MB / 0.8078 GB, free: 226.5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=581): time 1.306e-05/1.337, allocations: 0 / 0.8078 GB, free: 226.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=757): time 0.112/1.449, allocations: 35.51 MB / 0.8425 GB, free: 213.9 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/1.449, allocations: 128.2 kB / 0.8426 GB, free: 213.8 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/1.453, allocations: 3.377 MB / 0.8459 GB, free: 212.6 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007288/1.454, allocations: 152 kB / 0.846 GB, free: 212.4 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001674/1.456, allocations: 3.147 MB / 0.8491 GB, free: 210 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002314/1.458, allocations: 2.583 MB / 0.8516 GB, free: 208 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00286/1.461, allocations: 1.696 MB / 0.8533 GB, free: 207.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.277e-05/1.461, allocations: 301.9 kB / 0.8536 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.466, allocations: 2.862 MB / 0.8564 GB, free: 205.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005673/1.471, allocations: 5.734 MB / 0.862 GB, free: 201.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/1.483, allocations: 9.491 MB / 0.8712 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-05/1.483, allocations: 29.84 kB / 0.8713 GB, free: 194.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.02297/1.506, allocations: 10.7 MB / 0.8817 GB, free: 190.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.831e-05/1.506, allocations: 45.38 kB / 0.8818 GB, free: 190.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.926e-05/1.507, allocations: 91.94 kB / 0.8818 GB, free: 190.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008519/1.515, allocations: 1.819 MB / 0.8836 GB, free: 190.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00849/1.524, allocations: 2.321 MB / 0.8859 GB, free: 188.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/1.538, allocations: 12.8 MB / 0.8984 GB, free: 175.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006874/1.545, allocations: 467.8 kB / 0.8988 GB, free: 175 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.547, allocations: 0.5146 MB / 0.8993 GB, free: 174.5 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.003709/1.551, allocations: 1.205 MB / 0.9005 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001881/1.552, allocations: 0.5709 MB / 0.9011 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02152/1.574, allocations: 10.12 MB / 0.911 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.861e-05/1.574, allocations: 82.02 kB / 0.911 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.376e-05/1.574, allocations: 6.594 kB / 0.911 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.057e-05/1.574, allocations: 42.56 kB / 0.9111 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.602, allocations: 16.34 MB / 0.927 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.173e-05/1.602, allocations: 6.688 kB / 0.927 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007352/1.609, allocations: 1.531 MB / 0.9285 GB, free: 148 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007918/1.617, allocations: 1.604 MB / 0.9301 GB, free: 146.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/1.619, allocations: 270 kB / 0.9304 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/1.632, allocations: 12.06 MB / 0.9421 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.632, allocations: 7.938 kB / 0.9421 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02242/1.654, allocations: 12.94 MB / 0.9548 GB, free: 120.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002624/1.657, allocations: 1.301 MB / 0.956 GB, free: 118.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.658, allocations: 152 kB / 0.9562 GB, free: 118.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003906/1.662, allocations: 287.5 kB / 0.9565 GB, free: 118.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009674/1.663, allocations: 0.5835 MB / 0.957 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005956/1.663, allocations: 315.9 kB / 0.9573 GB, free: 117.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002819/1.666, allocations: 2.039 MB / 0.9593 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.1e-07/1.666, allocations: 4 kB / 0.9593 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01325/1.68, allocations: 4.994 MB / 0.9642 GB, free: 111.2 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.03473/1.714, allocations: 18.98 MB / 0.9827 GB, free: 93.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.05074/1.765, allocations: 9.783 MB / 0.9923 GB, free: 83.55 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.765, allocations: 4 kB / 0.9923 GB, free: 83.54 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007424/1.773, allocations: 4.882 MB / 0.9971 GB, free: 78.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006704/1.779, allocations: 1.187 MB / 0.9982 GB, free: 77.48 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2815/2.061, allocations: 79.02 MB / 1.075 GB, free: 209.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/2.063, allocations: 3.178 MB / 1.078 GB, free: 208.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007391/2.07, allocations: 1.668 MB / 1.08 GB, free: 208.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004268/2.075, allocations: 3.723 MB / 1.084 GB, free: 208.7 MB / 0.5763 GB Notification: Performance of SimCode: time 1.192e-06/2.075, allocations: 0.75 kB / 1.084 GB, free: 208.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.426/2.501, allocations: 218.6 MB / 1.297 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/2.501, allocations: 226.2 kB / 1.297 GB, free: 200.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.273/11.77, allocations: 2.156 kB / 1.297 GB, free: 200.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)