Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 220 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1339/0.1339, allocations: 23.91 MB / 337.1 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003116/0.003116, allocations: 63.91 kB / 472 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3417, allocations: 59.87 MB / 0.5194 GB, free: 9.547 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.AcidBase.CarbonDioxideInBlood): time 0.08342/0.4252, allocations: 33.04 MB / 0.5516 GB, free: 7.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05797/0.4831, allocations: 41.72 MB / 0.5924 GB, free: 14.99 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003862/0.487, allocations: 51.56 kB / 0.5924 GB, free: 14.94 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.4907, allocations: 0.9187 MB / 0.5933 GB, free: 14.01 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01279/0.5035, allocations: 3.709 MB / 0.5969 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01969/0.5232, allocations: 6.497 MB / 0.6033 GB, free: 3.742 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007275/0.5305, allocations: 4.547 MB / 0.6077 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003885/0.5343, allocations: 2.238 MB / 0.6099 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004196/0.5385, allocations: 2.291 MB / 0.6121 GB, free: 10.58 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006085/0.5446, allocations: 2.613 MB / 0.6147 GB, free: 7.961 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002028/0.5467, allocations: 420 kB / 0.6151 GB, free: 7.551 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01783/0.5645, allocations: 5.156 MB / 0.6201 GB, free: 2.387 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001932/0.5664, allocations: 0.9971 MB / 0.6211 GB, free: 1.387 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003981/0.5704, allocations: 1.732 MB / 0.6228 GB, free: 15.64 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02519/0.5956, allocations: 10.19 MB / 0.6328 GB, free: 5.418 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.5956, allocations: 3.938 kB / 0.6328 GB, free: 5.414 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5956, allocations: 0 / 0.6328 GB, free: 5.414 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0002206/0.5958, allocations: 0 / 0.6328 GB, free: 5.414 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01346/0.6093, allocations: 4.765 MB / 0.6374 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.6093, allocations: 8.031 kB / 0.6374 GB, free: 0.582 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001009/0.6094, allocations: 82.48 kB / 0.6375 GB, free: 0.5 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001167/0.6106, allocations: 430.7 kB / 0.6379 GB, free: 68 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004755/0.6153, allocations: 0.8449 MB / 0.6387 GB, free: 15.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004156/0.6195, allocations: 1.612 MB / 0.6403 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/0.6199, allocations: 345.7 kB / 0.6406 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/0.621, allocations: 347.9 kB / 0.641 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.6319, allocations: 4.539 MB / 0.6454 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.617e-05/0.632, allocations: 0 / 0.6454 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005512/0.6325, allocations: 128 kB / 0.6455 GB, free: 8.125 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-05/0.6326, allocations: 76 kB / 0.6456 GB, free: 8.051 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.6442, allocations: 6.235 MB / 0.6517 GB, free: 1.805 MB / 494.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.02937/0.6736, allocations: 12.03 MB / 0.6634 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.6839, allocations: 5.305 MB / 0.6686 GB, free: 352 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00396/0.6878, allocations: 2.056 MB / 0.6706 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02093/0.7088, allocations: 9.118 MB / 0.6795 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/0.7088, allocations: 68.73 kB / 0.6796 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002081/0.7109, allocations: 469.7 kB / 0.68 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 7.364e-06/0.7109, allocations: 0 / 0.68 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=387): time 0.09569/0.8066, allocations: 23.35 MB / 0.7028 GB, free: 13.07 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/0.8067, allocations: 90.45 kB / 0.7029 GB, free: 12.96 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.8091, allocations: 1.72 MB / 0.7046 GB, free: 11.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006054/0.8098, allocations: 89.7 kB / 0.7047 GB, free: 11.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.8109, allocations: 1.348 MB / 0.706 GB, free: 9.742 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001641/0.8125, allocations: 1.375 MB / 0.7074 GB, free: 8.355 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.814, allocations: 0.7759 MB / 0.7081 GB, free: 7.566 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.8141, allocations: 313.1 kB / 0.7084 GB, free: 7.258 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003505/0.8176, allocations: 1.839 MB / 0.7102 GB, free: 5.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004587/0.8222, allocations: 2.85 MB / 0.713 GB, free: 2.129 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00907/0.8313, allocations: 4.964 MB / 0.7178 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.234e-05/0.8313, allocations: 8 kB / 0.7178 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.02164/0.8529, allocations: 6.841 MB / 0.7245 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.078e-05/0.853, allocations: 20 kB / 0.7245 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.522e-05/0.853, allocations: 28.25 kB / 0.7246 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01221/0.8653, allocations: 2.299 MB / 0.7268 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003983/0.8692, allocations: 0.8932 MB / 0.7277 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2277/1.097, allocations: 17.54 MB / 0.7448 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/1.1, allocations: 139.1 kB / 0.7449 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000704/1.101, allocations: 229.5 kB / 0.7452 GB, free: 162 MB / 0.5606 GB 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.001517/1.102, allocations: 0.6111 MB / 0.7458 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007466/1.103, allocations: 290.1 kB / 0.746 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01815/1.121, allocations: 6.577 MB / 0.7525 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.313e-05/1.121, allocations: 45.27 kB / 0.7525 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.59e-05/1.121, allocations: 6.25 kB / 0.7525 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001078/1.121, allocations: 20.2 kB / 0.7525 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02363/1.145, allocations: 10.1 MB / 0.7624 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/1.145, allocations: 4.594 kB / 0.7624 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003231/1.148, allocations: 0.6519 MB / 0.763 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009472/1.158, allocations: 2.026 MB / 0.765 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008059/1.159, allocations: 137.5 kB / 0.7651 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/1.178, allocations: 16.17 MB / 0.7809 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/1.178, allocations: 14.66 kB / 0.781 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01888/1.197, allocations: 8.516 MB / 0.7893 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/1.199, allocations: 0.6456 MB / 0.7899 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005755/1.199, allocations: 82.88 kB / 0.79 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/1.201, allocations: 94.59 kB / 0.7901 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007891/1.202, allocations: 352.6 kB / 0.7904 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003448/1.203, allocations: 159.4 kB / 0.7906 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00128/1.204, allocations: 1.127 MB / 0.7917 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.204, allocations: 0 / 0.7917 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0072/1.211, allocations: 2.209 MB / 0.7938 GB, free: 134.4 MB / 0.5606 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.02328/1.234, allocations: 11.23 MB / 0.8048 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.011/1.245, allocations: 5.601 MB / 0.8102 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/1.245, allocations: 0 / 0.8102 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005964/1.251, allocations: 3.345 MB / 0.8135 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/1.254, allocations: 0.5504 MB / 0.8141 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06315/1.318, allocations: 31.31 MB / 0.8446 GB, free: 81.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/1.319, allocations: 1.333 MB / 0.8459 GB, free: 80.45 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002744/1.321, allocations: 0.665 MB / 0.8466 GB, free: 79.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002049/1.324, allocations: 1.553 MB / 0.8481 GB, free: 78.43 MB / 0.5606 GB Notification: Performance of SimCode: time 1.283e-06/1.324, allocations: 0 / 0.8481 GB, free: 78.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3936/1.717, allocations: 116.3 MB / 0.9616 GB, free: 189.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 52.41/54.13, allocations: 20.03 kB / 0.9617 GB, free: 189.8 MB / 0.5919 GB " [Timeout remaining time 606] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 57.02461666997988] Failed to read output from testmodel.py, exit status != 0: 54.37323505501263 54.396729944 53.795640298 Calling exit ...