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/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.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",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.006143/0.006143, allocations: 105 kB / 15.74 MB, free: 6.492 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.001393/0.001393, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1971/0.1971, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 67.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2607, allocations: 53.6 MB / 478.3 MB, free: 25.44 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.CarbonDioxideInBlood): time 0.03606/0.2968, allocations: 33.8 MB / 0.5001 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05151/0.3483, allocations: 47.41 MB / 0.5464 GB, free: 1.312 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002684/0.3511, allocations: 35.81 kB / 0.5465 GB, free: 1.277 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003244/0.3543, allocations: 1.016 MB / 0.5474 GB, free: 260 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01112/0.3655, allocations: 3.713 MB / 0.5511 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01777/0.3833, allocations: 6.368 MB / 0.5573 GB, free: 6.109 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006725/0.39, allocations: 4.543 MB / 0.5617 GB, free: 1.547 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003712/0.3938, allocations: 2.655 MB / 0.5643 GB, free: 14.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003371/0.3972, allocations: 2.233 MB / 0.5665 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.4012, allocations: 2.562 MB / 0.569 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001311/0.4025, allocations: 416 kB / 0.5694 GB, free: 9.617 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01519/0.4177, allocations: 5.285 MB / 0.5746 GB, free: 4.324 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001548/0.4193, allocations: 0.9815 MB / 0.5755 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003224/0.4226, allocations: 2.019 MB / 0.5775 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0206/0.4432, allocations: 9.896 MB / 0.5872 GB, free: 7.383 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4432, allocations: 4 kB / 0.5872 GB, free: 7.379 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4432, allocations: 0 / 0.5872 GB, free: 7.379 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001638/0.4434, allocations: 0 / 0.5872 GB, free: 7.379 MB / 462.1 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.01118/0.4546, allocations: 4.758 MB / 0.5918 GB, free: 2.555 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4547, allocations: 8.031 kB / 0.5918 GB, free: 2.547 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008592/0.4555, allocations: 430.7 kB / 0.5922 GB, free: 2.113 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004148/0.4597, allocations: 0.8274 MB / 0.593 GB, free: 1.281 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.4632, allocations: 1.663 MB / 0.5947 GB, free: 15.56 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.4636, allocations: 294.3 kB / 0.5949 GB, free: 15.26 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009957/0.4646, allocations: 324.2 kB / 0.5952 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009033/0.4737, allocations: 4.488 MB / 0.5996 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.054e-05/0.4738, allocations: 4 kB / 0.5996 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005659/0.4743, allocations: 128 kB / 0.5998 GB, free: 10.26 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.217e-05/0.4744, allocations: 76 kB / 0.5998 GB, free: 10.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.4848, allocations: 6.095 MB / 0.6058 GB, free: 4.078 MB / 478.1 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.2225/0.7073, allocations: 13.97 MB / 0.6194 GB, free: 107.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00942/0.7168, allocations: 6.326 MB / 0.6256 GB, free: 104.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003577/0.7204, allocations: 2.238 MB / 0.6278 GB, free: 103.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01966/0.7401, allocations: 14.78 MB / 0.6422 GB, free: 92.47 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.7402, allocations: 58.05 kB / 0.6423 GB, free: 92.41 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001556/0.7417, allocations: 387.6 kB / 0.6426 GB, free: 92.17 MB / 478.1 MB Notification: Performance of pre-optimization done (n=284): time 9.037e-06/0.7418, allocations: 0 / 0.6426 GB, free: 92.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=387): time 0.08665/0.8284, allocations: 23.84 MB / 0.6659 GB, free: 78.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.8285, allocations: 98.45 kB / 0.666 GB, free: 78.12 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.8304, allocations: 1.7 MB / 0.6677 GB, free: 76.37 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005675/0.831, allocations: 93.7 kB / 0.6678 GB, free: 76.27 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/0.8315, allocations: 1.303 MB / 0.669 GB, free: 74.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.8326, allocations: 1.314 MB / 0.6703 GB, free: 73.66 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00141/0.834, allocations: 0.7796 MB / 0.6711 GB, free: 72.87 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.8341, allocations: 301.1 kB / 0.6714 GB, free: 72.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/0.8367, allocations: 1.816 MB / 0.6731 GB, free: 70.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003097/0.8399, allocations: 2.83 MB / 0.6759 GB, free: 67.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006382/0.8463, allocations: 4.937 MB / 0.6807 GB, free: 62.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.519e-05/0.8463, allocations: 8 kB / 0.6807 GB, free: 62.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01847/0.8648, allocations: 6.805 MB / 0.6874 GB, free: 55.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.8649, allocations: 18.69 kB / 0.6874 GB, free: 55.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.998e-05/0.8649, allocations: 32 kB / 0.6874 GB, free: 55.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01063/0.8756, allocations: 2.277 MB / 0.6896 GB, free: 53.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003397/0.879, allocations: 0.8958 MB / 0.6905 GB, free: 52.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0222/0.9012, allocations: 18.39 MB / 0.7085 GB, free: 32.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003435/0.9047, allocations: 142.6 kB / 0.7086 GB, free: 32.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008088/0.9055, allocations: 234.5 kB / 0.7088 GB, free: 32.55 MB / 478.1 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.001835/0.9074, allocations: 0.6086 MB / 0.7094 GB, free: 31.94 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000942/0.9083, allocations: 272.5 kB / 0.7097 GB, free: 31.67 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01756/0.9259, allocations: 6.58 MB / 0.7161 GB, free: 25.17 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.033e-05/0.926, allocations: 40 kB / 0.7162 GB, free: 25.13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/0.926, allocations: 10.69 kB / 0.7162 GB, free: 25.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/0.9261, allocations: 23.91 kB / 0.7162 GB, free: 25.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02351/0.9497, allocations: 10.64 MB / 0.7266 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/0.9497, allocations: 9.312 kB / 0.7266 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/0.9526, allocations: 0.6514 MB / 0.7272 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009368/0.962, allocations: 2.016 MB / 0.7292 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006998/0.9628, allocations: 135.9 kB / 0.7293 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0206/0.9834, allocations: 17.04 MB / 0.746 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/0.9834, allocations: 8.031 kB / 0.746 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02191/1.005, allocations: 8.467 MB / 0.7542 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/1.007, allocations: 0.6962 MB / 0.7549 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008308/1.008, allocations: 86.61 kB / 0.755 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002429/1.011, allocations: 95.97 kB / 0.7551 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009428/1.012, allocations: 339.4 kB / 0.7554 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000468/1.012, allocations: 155.9 kB / 0.7556 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001741/1.014, allocations: 1.121 MB / 0.7567 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.71e-07/1.014, allocations: 0 / 0.7567 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007081/1.021, allocations: 2.175 MB / 0.7588 GB, free: 12.65 MB / 0.4981 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.02599/1.047, allocations: 11.12 MB / 0.7696 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0117/1.059, allocations: 5.844 MB / 0.7754 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.059, allocations: 4 kB / 0.7754 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006821/1.066, allocations: 3.549 MB / 0.7788 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00346/1.069, allocations: 0.5507 MB / 0.7794 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07159/1.141, allocations: 31.06 MB / 0.8097 GB, free: 7.629 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/1.143, allocations: 1.881 MB / 0.8115 GB, free: 5.715 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003281/1.146, allocations: 0.6711 MB / 0.8122 GB, free: 5.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002709/1.149, allocations: 1.549 MB / 0.8137 GB, free: 3.52 MB / 0.545 GB Notification: Performance of SimCode: time 9.91e-07/1.149, allocations: 0 / 0.8137 GB, free: 3.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3742/1.523, allocations: 113.1 MB / 0.9241 GB, free: 101.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 48.32/49.84, allocations: 7.75 kB / 0.9241 GB, free: 101.1 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)