Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.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.001343/0.001343, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.001472/0.001472, allocations: 211 kB / 20.13 MB, free: 2.969 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.464/1.464, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1406/0.1406, allocations: 23.86 MB / 333.4 MB, free: 1.188 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInWater",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInWater",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.001984/0.001984, allocations: 72.55 kB / 466.7 MB, free: 30.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09787, allocations: 59.82 MB / 0.5142 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater): time 0.009374/0.1072, allocations: 7.62 MB / 0.5216 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02909/0.1363, allocations: 23.45 MB / 0.5445 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.1375, allocations: 23.81 kB / 0.5445 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.1389, allocations: 492.4 kB / 0.545 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005318/0.1442, allocations: 1.956 MB / 0.5469 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007582/0.1518, allocations: 2.94 MB / 0.5498 GB, free: 8.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003249/0.155, allocations: 2.126 MB / 0.5519 GB, free: 6.293 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.1566, allocations: 1.056 MB / 0.5529 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.158, allocations: 1.087 MB / 0.554 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.1598, allocations: 1.238 MB / 0.5552 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003328/0.1601, allocations: 192 kB / 0.5554 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006997/0.1671, allocations: 2.555 MB / 0.5578 GB, free: 128 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005544/0.1676, allocations: 474.6 kB / 0.5583 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.1687, allocations: 0.949 MB / 0.5592 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009195/0.1779, allocations: 4.841 MB / 0.564 GB, free: 9.848 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1779, allocations: 0 / 0.564 GB, free: 9.848 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1779, allocations: 3.938 kB / 0.564 GB, free: 9.844 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.066e-05/0.178, allocations: 7.938 kB / 0.564 GB, free: 9.836 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.004802/0.1828, allocations: 2.448 MB / 0.5664 GB, free: 7.324 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1828, allocations: 12.03 kB / 0.5664 GB, free: 7.312 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.277e-05/0.1828, allocations: 39.08 kB / 0.5664 GB, free: 7.273 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002716/0.1831, allocations: 203.5 kB / 0.5666 GB, free: 7.062 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001801/0.1849, allocations: 403.2 kB / 0.567 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.1864, allocations: 0.9172 MB / 0.5679 GB, free: 5.711 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.1866, allocations: 162.9 kB / 0.568 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.1868, allocations: 155.9 kB / 0.5682 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003502/0.1903, allocations: 2.048 MB / 0.5702 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.1904, allocations: 0 / 0.5702 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.1906, allocations: 56 kB / 0.5702 GB, free: 3.246 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.1906, allocations: 36 kB / 0.5703 GB, free: 3.211 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004471/0.1951, allocations: 2.72 MB / 0.5729 GB, free: 496 kB / 430.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.01134/0.2064, allocations: 6.572 MB / 0.5793 GB, free: 9.684 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005633/0.212, allocations: 3.233 MB / 0.5825 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.2134, allocations: 0.8012 MB / 0.5833 GB, free: 5.555 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2166/0.43, allocations: 7.255 MB / 0.5904 GB, free: 66.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.4301, allocations: 44.58 kB / 0.5904 GB, free: 66.77 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000917/0.431, allocations: 201.6 kB / 0.5906 GB, free: 66.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=117): time 3.527e-06/0.431, allocations: 0 / 0.5906 GB, free: 66.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=140): time 0.01969/0.4507, allocations: 5.419 MB / 0.5959 GB, free: 64.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.4507, allocations: 65.34 kB / 0.596 GB, free: 64.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.452, allocations: 1.032 MB / 0.597 GB, free: 64.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.543e-05/0.4521, allocations: 50.39 kB / 0.597 GB, free: 64.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/0.4524, allocations: 0.6987 MB / 0.5977 GB, free: 63.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.4527, allocations: 0.499 MB / 0.5982 GB, free: 63.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005457/0.4533, allocations: 334.9 kB / 0.5985 GB, free: 63.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.558e-05/0.4533, allocations: 304.9 kB / 0.5988 GB, free: 62.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.4544, allocations: 0.6504 MB / 0.5994 GB, free: 62.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.4557, allocations: 1.112 MB / 0.6005 GB, free: 61.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/0.458, allocations: 1.798 MB / 0.6023 GB, free: 60.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.4581, allocations: 4.438 kB / 0.6023 GB, free: 60.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006583/0.4646, allocations: 2.409 MB / 0.6046 GB, free: 59.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.4647, allocations: 14.78 kB / 0.6046 GB, free: 59.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/0.4647, allocations: 18.22 kB / 0.6047 GB, free: 59.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002779/0.4675, allocations: 488.3 kB / 0.6051 GB, free: 59.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.4689, allocations: 424.2 kB / 0.6055 GB, free: 59.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/0.4734, allocations: 3.876 MB / 0.6093 GB, free: 56.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.4746, allocations: 50.03 kB / 0.6094 GB, free: 56.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.4747, allocations: 96.12 kB / 0.6095 GB, free: 56.14 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005478/0.4753, allocations: 336.8 kB / 0.6098 GB, free: 55.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.4755, allocations: 128.4 kB / 0.6099 GB, free: 55.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005879/0.4814, allocations: 2.136 MB / 0.612 GB, free: 55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4814, allocations: 15.72 kB / 0.612 GB, free: 55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4814, allocations: 0 / 0.612 GB, free: 55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4814, allocations: 7.875 kB / 0.612 GB, free: 55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006893/0.4883, allocations: 3.55 MB / 0.6155 GB, free: 53.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-06/0.4883, allocations: 0 / 0.6155 GB, free: 53.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.4893, allocations: 265.7 kB / 0.6157 GB, free: 53.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.4918, allocations: 473.9 kB / 0.6162 GB, free: 53.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.416e-05/0.4919, allocations: 43.75 kB / 0.6162 GB, free: 52.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003924/0.4958, allocations: 3.782 MB / 0.6199 GB, free: 49.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4958, allocations: 0 / 0.6199 GB, free: 49.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006126/0.502, allocations: 2.751 MB / 0.6226 GB, free: 47.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.5022, allocations: 197.1 kB / 0.6228 GB, free: 47.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.5024, allocations: 25.44 kB / 0.6228 GB, free: 47.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007409/0.5031, allocations: 31.69 kB / 0.6228 GB, free: 47.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/0.5034, allocations: 119.3 kB / 0.623 GB, free: 47.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.5035, allocations: 59 kB / 0.623 GB, free: 47.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000674/0.5042, allocations: 0.7091 MB / 0.6237 GB, free: 47.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5042, allocations: 0 / 0.6237 GB, free: 47.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002249/0.5064, allocations: 0.9507 MB / 0.6246 GB, free: 46.79 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.logn,OH.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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007747/0.5142, allocations: 4.326 MB / 0.6289 GB, free: 42.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0031/0.5173, allocations: 1.902 MB / 0.6307 GB, free: 40.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5173, allocations: 1.812 kB / 0.6307 GB, free: 40.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.5188, allocations: 1.061 MB / 0.6318 GB, free: 39.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.52, allocations: 264.2 kB / 0.632 GB, free: 39.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01936/0.5394, allocations: 12.31 MB / 0.644 GB, free: 26.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004867/0.5399, allocations: 1.194 MB / 0.6452 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.5409, allocations: 325.5 kB / 0.6455 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007207/0.5416, allocations: 0.6632 MB / 0.6461 GB, free: 24.24 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5416, allocations: 0 / 0.6461 GB, free: 24.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07864/0.6203, allocations: 46.21 MB / 0.6913 GB, free: 10.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.28/16.9, allocations: 14.27 kB / 0.6913 GB, free: 10.25 MB / 478.1 MB " [Timeout remaining time 643] (rm -f Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInWater_fmu --startTime=0 --stopTime=0.02 --stepSize=8e-06 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.71688671701122] Failed to read output from testmodel.py, exit status != 0: 17.08580450102454 17.106936793 16.925100964 Calling exit ...