Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.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.001257/0.001257, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.001449/0.001449, allocations: 219.5 kB / 23.04 MB, free: 5.074 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 8 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.1398/0.1398, allocations: 23.88 MB / 337.1 MB, free: 11.15 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.AcidBaseBufferTest,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_AcidBaseBufferTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_AcidBaseBufferTest",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.0021/0.0021, allocations: 67.89 kB / 472 MB, free: 7.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3118, allocations: 59.87 MB / 0.5194 GB, free: 9.539 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:12638:6-12638:65: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:12638:6-12638:65: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.AcidBaseBufferTest): time 0.03597/0.3478, allocations: 25.17 MB / 0.544 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.3611, allocations: 10.18 MB / 0.5539 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006277/0.3617, allocations: 7.938 kB / 0.5539 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007379/0.3625, allocations: 237.9 kB / 0.5541 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.3641, allocations: 0.5853 MB / 0.5547 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003945/0.368, allocations: 1.468 MB / 0.5562 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001566/0.3696, allocations: 0.9515 MB / 0.5571 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006662/0.3702, allocations: 432.8 kB / 0.5575 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006023/0.3708, allocations: 430.8 kB / 0.5579 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007515/0.3716, allocations: 472.8 kB / 0.5584 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.3717, allocations: 84 kB / 0.5584 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003125/0.3748, allocations: 1.055 MB / 0.5595 GB, free: 240 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.3751, allocations: 193.8 kB / 0.5597 GB, free: 80 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000613/0.3757, allocations: 429.1 kB / 0.5601 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004475/0.3801, allocations: 2.062 MB / 0.5621 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3802, allocations: 0 / 0.5621 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3802, allocations: 4 kB / 0.5621 GB, free: 14.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.781e-05/0.3802, allocations: 0 / 0.5621 GB, free: 14.04 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.003033/0.3832, allocations: 1.166 MB / 0.5632 GB, free: 12.94 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3833, allocations: 8.031 kB / 0.5632 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.285e-05/0.3833, allocations: 18.75 kB / 0.5632 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.3835, allocations: 106.4 kB / 0.5633 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009827/0.3845, allocations: 216.5 kB / 0.5636 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009104/0.3854, allocations: 433.3 kB / 0.564 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.637e-05/0.3854, allocations: 46.38 kB / 0.564 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.3856, allocations: 77.08 kB / 0.5641 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.3876, allocations: 1.114 MB / 0.5652 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.3876, allocations: 0 / 0.5652 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.084e-05/0.3877, allocations: 28 kB / 0.5652 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.3877, allocations: 19.98 kB / 0.5652 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002499/0.3902, allocations: 1.558 MB / 0.5667 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006337/0.3965, allocations: 3.005 MB / 0.5697 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.3982, allocations: 0.9069 MB / 0.5706 GB, free: 5.523 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005694/0.3988, allocations: 366.7 kB / 0.5709 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00395/0.4027, allocations: 1.833 MB / 0.5727 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.4028, allocations: 39 kB / 0.5727 GB, free: 3.262 MB / 414.1 MB Notification: Performance of pre-optimization done (n=51): time 2.515e-06/0.4028, allocations: 0 / 0.5727 GB, free: 3.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=68): time 0.01534/0.4181, allocations: 3.384 MB / 0.576 GB, free: 15.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.4182, allocations: 60.06 kB / 0.5761 GB, free: 15.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009689/0.4192, allocations: 0.7126 MB / 0.5768 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-05/0.4192, allocations: 33.7 kB / 0.5768 GB, free: 15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.4195, allocations: 352.5 kB / 0.5772 GB, free: 14.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.4198, allocations: 253.8 kB / 0.5774 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.4201, allocations: 158.5 kB / 0.5776 GB, free: 14.24 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.4203, allocations: 370.7 kB / 0.5779 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007296/0.421, allocations: 457.8 kB / 0.5783 GB, free: 13.42 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009059/0.4219, allocations: 0.6081 MB / 0.5789 GB, free: 12.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.4235, allocations: 1.001 MB / 0.5799 GB, free: 11.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.4235, allocations: 0 / 0.5799 GB, free: 11.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004109/0.4276, allocations: 1.433 MB / 0.5813 GB, free: 10.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.4276, allocations: 8 kB / 0.5813 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4276, allocations: 4 kB / 0.5813 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002077/0.4297, allocations: 274.2 kB / 0.5816 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008217/0.4305, allocations: 199.7 kB / 0.5818 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00571/0.4362, allocations: 3.741 MB / 0.5854 GB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/0.4369, allocations: 31.98 kB / 0.5855 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4371, allocations: 36.14 kB / 0.5855 GB, free: 5.703 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004367/0.4375, allocations: 210.1 kB / 0.5857 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.4377, allocations: 63.58 kB / 0.5858 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/0.4415, allocations: 1.201 MB / 0.5869 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4415, allocations: 11.94 kB / 0.5869 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.4415, allocations: 4 kB / 0.5869 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.4415, allocations: 3.984 kB / 0.587 GB, free: 4.188 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005352/0.4469, allocations: 2.159 MB / 0.5891 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.4469, allocations: 0 / 0.5891 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005779/0.4475, allocations: 135.8 kB / 0.5892 GB, free: 1.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.4494, allocations: 266.3 kB / 0.5894 GB, free: 1.543 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/0.4495, allocations: 23.98 kB / 0.5895 GB, free: 1.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00526/0.4548, allocations: 3.712 MB / 0.5931 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4548, allocations: 0 / 0.5931 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/0.4591, allocations: 1.686 MB / 0.5947 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.4594, allocations: 119.6 kB / 0.5948 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.4595, allocations: 19.92 kB / 0.5949 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.46, allocations: 20 kB / 0.5949 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.4601, allocations: 52.55 kB / 0.5949 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-05/0.4602, allocations: 28 kB / 0.595 GB, free: 11.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006582/0.4609, allocations: 0.5147 MB / 0.5955 GB, free: 11.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4609, allocations: 4 kB / 0.5955 GB, free: 11.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001363/0.4622, allocations: 438.8 kB / 0.5959 GB, free: 10.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (simpleSolution.temperature,simpleSolution.mass,liquidWater.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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00577/0.468, allocations: 2.658 MB / 0.5985 GB, free: 7.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.4702, allocations: 1.171 MB / 0.5996 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4702, allocations: 0 / 0.5996 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.4713, allocations: 0.6573 MB / 0.6003 GB, free: 6.047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.4723, allocations: 156.7 kB / 0.6004 GB, free: 5.902 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01618/0.4885, allocations: 7.983 MB / 0.6082 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.4893, allocations: 0.911 MB / 0.6091 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006553/0.4899, allocations: 133 kB / 0.6092 GB, free: 12.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005515/0.4905, allocations: 287.3 kB / 0.6095 GB, free: 12.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4905, allocations: 0 / 0.6095 GB, free: 12.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06595/0.5564, allocations: 25.19 MB / 0.6341 GB, free: 3.277 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.51, allocations: 22.08 kB / 0.6341 GB, free: 3.262 MB / 478.1 MB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_AcidBaseBufferTest_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_AcidBaseBufferTest.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.379192067077383] Failed to read output from testmodel.py, exit status != 0: 16.70111336710397 16.727509432 16.343731665 Calling exit ...