Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.0842/0.0842, allocations: 15.29 MB / 31.09 MB, free: 3.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 194.6 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 264 MB, free: 4.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009045/0.0009044, allocations: 114.4 kB / 318.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009855/0.0009855, allocations: 52.75 kB / 382.7 MB, free: 48.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07792/0.07892, allocations: 53.61 MB / 436.3 MB, free: 1.027 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721: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.0-master/package.mo:4721:7-4721: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.CarbonDioxideInBlood): time 0.0347/0.1137, allocations: 33.05 MB / 469.4 MB, free: 52 kB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04496/0.1586, allocations: 46.93 MB / 0.5042 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002789/0.1615, allocations: 71.5 kB / 0.5043 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1866/0.3481, allocations: 0.9171 MB / 0.5052 GB, free: 16.78 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009011/0.3571, allocations: 3.17 MB / 0.5083 GB, free: 16.75 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01812/0.3753, allocations: 5.578 MB / 0.5137 GB, free: 16.72 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006667/0.3819, allocations: 4.392 MB / 0.518 GB, free: 16.61 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004328/0.3863, allocations: 2.311 MB / 0.5203 GB, free: 16.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004277/0.3906, allocations: 2.182 MB / 0.5224 GB, free: 16.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005107/0.3957, allocations: 2.505 MB / 0.5248 GB, free: 16.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001611/0.3974, allocations: 280.4 kB / 0.5251 GB, free: 16.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01856/0.4159, allocations: 5.047 MB / 0.53 GB, free: 15.56 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002074/0.4181, allocations: 0.8612 MB / 0.5309 GB, free: 15.44 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003935/0.422, allocations: 1.901 MB / 0.5327 GB, free: 14.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0229/0.4449, allocations: 9.137 MB / 0.5416 GB, free: 12.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.445, allocations: 2.656 kB / 0.5417 GB, free: 12.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.445, allocations: 0 / 0.5417 GB, free: 12.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002014/0.4452, allocations: 0 / 0.5417 GB, free: 12.4 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01067/0.4559, allocations: 4.733 MB / 0.5463 GB, free: 9.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.4559, allocations: 9.812 kB / 0.5463 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003241/0.4592, allocations: 0.837 MB / 0.5471 GB, free: 9.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00247/0.4617, allocations: 1.606 MB / 0.5487 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.4619, allocations: 295.6 kB / 0.549 GB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005033/0.4624, allocations: 326.2 kB / 0.5493 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005654/0.468, allocations: 4.477 MB / 0.5536 GB, free: 4.605 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.72e-05/0.4681, allocations: 4 kB / 0.5536 GB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002793/0.4684, allocations: 124 kB / 0.5538 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.4684, allocations: 76 kB / 0.5538 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007489/0.4759, allocations: 6.111 MB / 0.5598 GB, free: 14.29 MB / 394.7 MB 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.02466/0.5006, allocations: 14 MB / 0.5735 GB, free: 148 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00901/0.5097, allocations: 6.317 MB / 0.5796 GB, free: 9.691 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/0.5131, allocations: 2.239 MB / 0.5818 GB, free: 7.449 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/0.5352, allocations: 14.8 MB / 0.5963 GB, free: 7.473 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.5353, allocations: 65.83 kB / 0.5963 GB, free: 7.398 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001621/0.5369, allocations: 371.2 kB / 0.5967 GB, free: 7.043 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 5.219e-06/0.537, allocations: 0 / 0.5967 GB, free: 7.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=387): time 0.08349/0.6204, allocations: 23.83 MB / 0.62 GB, free: 15.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.6205, allocations: 90.45 kB / 0.6201 GB, free: 15.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/0.6226, allocations: 1.708 MB / 0.6217 GB, free: 13.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000519/0.6231, allocations: 85.7 kB / 0.6218 GB, free: 13.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008001/0.624, allocations: 1.309 MB / 0.6231 GB, free: 12.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/0.6252, allocations: 1.313 MB / 0.6244 GB, free: 10.71 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.6263, allocations: 0.7796 MB / 0.6251 GB, free: 9.922 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.6264, allocations: 301.1 kB / 0.6254 GB, free: 9.625 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/0.6292, allocations: 1.819 MB / 0.6272 GB, free: 7.801 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003399/0.6326, allocations: 2.828 MB / 0.6299 GB, free: 4.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006709/0.6394, allocations: 4.936 MB / 0.6348 GB, free: 15.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/0.6394, allocations: 8 kB / 0.6348 GB, free: 15.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01803/0.6574, allocations: 6.811 MB / 0.6414 GB, free: 8.352 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.6575, allocations: 16 kB / 0.6414 GB, free: 8.336 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.612e-05/0.6575, allocations: 36.25 kB / 0.6415 GB, free: 8.301 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/0.668, allocations: 2.277 MB / 0.6437 GB, free: 6.008 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/0.6715, allocations: 0.8961 MB / 0.6446 GB, free: 5.113 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02401/0.6955, allocations: 16.99 MB / 0.6612 GB, free: 3.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.6988, allocations: 223.5 kB / 0.6614 GB, free: 2.941 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004201/0.6993, allocations: 227.9 kB / 0.6616 GB, free: 2.719 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001223/0.7005, allocations: 0.6022 MB / 0.6622 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005816/0.7011, allocations: 268.6 kB / 0.6624 GB, free: 1.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/0.7177, allocations: 6.591 MB / 0.6689 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.291e-05/0.7178, allocations: 40 kB / 0.6689 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.7178, allocations: 8 kB / 0.6689 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-05/0.7179, allocations: 19.92 kB / 0.6689 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/0.7401, allocations: 10.65 MB / 0.6793 GB, free: 468 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.7402, allocations: 8.125 kB / 0.6794 GB, free: 460 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/0.7431, allocations: 0.6553 MB / 0.68 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009561/0.7527, allocations: 2.073 MB / 0.682 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006245/0.7534, allocations: 127.9 kB / 0.6821 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1975/0.9509, allocations: 15.67 MB / 0.6974 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.9509, allocations: 12.38 kB / 0.6974 GB, free: 187.6 MB / 0.5105 GB Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0688/1.02, allocations: 31.93 MB / 0.7286 GB, free: 177.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.021, allocations: 0.6967 MB / 0.7293 GB, free: 176.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/1.021, allocations: 77.47 kB / 0.7294 GB, free: 176.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/1.023, allocations: 153.1 kB / 0.7295 GB, free: 176.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007438/1.024, allocations: 336 kB / 0.7298 GB, free: 176.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002762/1.024, allocations: 166 kB / 0.73 GB, free: 176.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001269/1.026, allocations: 1.108 MB / 0.7311 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/1.026, allocations: 1.031 kB / 0.7311 GB, free: 176.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007785/1.033, allocations: 2.562 MB / 0.7336 GB, free: 175.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003821/1.037, allocations: 2.142 MB / 0.7357 GB, free: 175.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008435/1.046, allocations: 5.831 MB / 0.7414 GB, free: 172.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.046, allocations: 0 / 0.7414 GB, free: 172.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004845/1.051, allocations: 3.534 MB / 0.7448 GB, free: 170.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/1.053, allocations: 0.5197 MB / 0.7453 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.066, allocations: 10.83 MB / 0.7559 GB, free: 161.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/1.067, allocations: 1.996 MB / 0.7579 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003275/1.07, allocations: 0.7188 MB / 0.7586 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/1.071, allocations: 478 kB / 0.759 GB, free: 158.2 MB / 0.5105 GB Notification: Performance of SimCode: time 5.01e-07/1.071, allocations: 0 / 0.759 GB, free: 158.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.105/1.176, allocations: 92.82 MB / 0.8497 GB, free: 66.07 MB / 0.5105 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)