Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Processes.Tests.TestMembrane.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.001901/0.001901, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.002881/0.002881, allocations: 220 kB / 22.24 MB, free: 5.109 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.497/1.497, allocations: 230.6 MB / 256 MB, free: 7.816 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.1478/0.1478, allocations: 23.99 MB / 336.4 MB, free: 10.89 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.Processes.Tests.TestMembrane,fileNamePrefix="Chemical_master_Chemical_Processes_Tests_TestMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Processes.Tests.TestMembrane,fileNamePrefix="Chemical_master_Chemical_Processes_Tests_TestMembrane",fmuType="me",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.002203/0.002203, allocations: 63.89 kB / 471.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3247, allocations: 59.89 MB / 0.5187 GB, free: 9.512 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1343:7-1343: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/Boundaries.mo:1343:7-1343: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1361:7-1361:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1361:7-1361:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Processes.Tests.TestMembrane): time 0.07391/0.3986, allocations: 28.64 MB / 0.5467 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.4141, allocations: 8.42 MB / 0.5549 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.4162, allocations: 39.75 kB / 0.5549 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003323/0.4195, allocations: 0.9245 MB / 0.5558 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003046/0.4226, allocations: 0.8524 MB / 0.5567 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003314/0.4259, allocations: 1.006 MB / 0.5577 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003272/0.4292, allocations: 2.021 MB / 0.5596 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007267/0.4299, allocations: 414.9 kB / 0.56 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.431, allocations: 0.8409 MB / 0.5609 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001445/0.4325, allocations: 0.9797 MB / 0.5618 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.4328, allocations: 208 kB / 0.562 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.4357, allocations: 1.128 MB / 0.5631 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005436/0.4363, allocations: 0.5969 MB / 0.5637 GB, free: 11.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008779/0.4372, allocations: 0.8664 MB / 0.5645 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005183/0.4423, allocations: 3.908 MB / 0.5684 GB, free: 6.855 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4423, allocations: 0 / 0.5684 GB, free: 6.855 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4423, allocations: 0 / 0.5684 GB, free: 6.855 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.397e-05/0.4424, allocations: 0 / 0.5684 GB, free: 6.855 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: 625 * Number of variables: 625 Notification: Performance of Generate backend data structure: time 0.003953/0.4463, allocations: 2.542 MB / 0.5708 GB, free: 4.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.4464, allocations: 12.03 kB / 0.5708 GB, free: 4.258 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003581/0.4467, allocations: 326.1 kB / 0.5712 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.4482, allocations: 0.4911 MB / 0.5716 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.4498, allocations: 0.9246 MB / 0.5725 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002718/0.4501, allocations: 271.4 kB / 0.5728 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.4503, allocations: 204.2 kB / 0.573 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008648/0.459, allocations: 7.423 MB / 0.5802 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.042e-05/0.459, allocations: 3.984 kB / 0.5802 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.4592, allocations: 79.98 kB / 0.5803 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003752/0.4596, allocations: 328.7 kB / 0.5806 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/0.4743, allocations: 13.39 MB / 0.5937 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01915/0.4934, allocations: 11.11 MB / 0.6046 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.4952, allocations: 0.7649 MB / 0.6053 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009956/0.4962, allocations: 483.6 kB / 0.6058 GB, free: 212 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007181/0.5033, allocations: 3.62 MB / 0.6093 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.5034, allocations: 39.22 kB / 0.6093 GB, free: 12.51 MB / 462.1 MB Notification: Performance of pre-optimization done (n=69): time 2.545e-06/0.5034, allocations: 0 / 0.6093 GB, free: 12.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=76): time 0.01143/0.5148, allocations: 3.767 MB / 0.613 GB, free: 8.648 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.5149, allocations: 64.06 kB / 0.6131 GB, free: 8.574 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.5168, allocations: 1.459 MB / 0.6145 GB, free: 7.105 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.881e-05/0.5169, allocations: 45.64 kB / 0.6146 GB, free: 7.055 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009003/0.5178, allocations: 1.13 MB / 0.6157 GB, free: 5.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.5181, allocations: 281.6 kB / 0.6159 GB, free: 5.633 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004652/0.5186, allocations: 318.7 kB / 0.6162 GB, free: 5.316 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.5188, allocations: 353.9 kB / 0.6166 GB, free: 4.965 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009832/0.5197, allocations: 442.4 kB / 0.617 GB, free: 4.531 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.5211, allocations: 0.9176 MB / 0.6179 GB, free: 3.391 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01785/0.5389, allocations: 4.203 MB / 0.622 GB, free: 14.95 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.5389, allocations: 4 kB / 0.622 GB, free: 14.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.004294/0.5432, allocations: 1.776 MB / 0.6237 GB, free: 13.16 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.5432, allocations: 12 kB / 0.6237 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.5433, allocations: 20 kB / 0.6238 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000516/0.5438, allocations: 194.6 kB / 0.6239 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/0.5466, allocations: 0.5579 MB / 0.6245 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004511/0.5511, allocations: 4.314 MB / 0.6287 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.5523, allocations: 59.97 kB / 0.6288 GB, free: 7.648 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002923/0.5526, allocations: 188 kB / 0.6289 GB, free: 7.465 MB / 478.1 MB Warning: Assuming fixed start value for the following 1 variables: d1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 2 (s1.substanceDefinitionVar.SelfClustering,s1.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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): 3 systems {(1,1,100.0%), (1,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001285/0.5539, allocations: 0.6147 MB / 0.6295 GB, free: 6.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/0.5543, allocations: 166.9 kB / 0.6297 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004699/0.559, allocations: 1.883 MB / 0.6315 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.559, allocations: 11.98 kB / 0.6315 GB, free: 4.727 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.559, allocations: 0 / 0.6315 GB, free: 4.727 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.559, allocations: 7.984 kB / 0.6316 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005886/0.5649, allocations: 2.663 MB / 0.6342 GB, free: 1.984 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5649, allocations: 0 / 0.6342 GB, free: 1.984 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/0.5672, allocations: 327.8 kB / 0.6345 GB, free: 1.664 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004795/0.5676, allocations: 178.5 kB / 0.6346 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.5677, allocations: 15.98 kB / 0.6347 GB, free: 1.465 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004669/0.5724, allocations: 4.41 MB / 0.639 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5724, allocations: 4.25 kB / 0.639 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003943/0.5763, allocations: 1.468 MB / 0.6404 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003665/0.5767, allocations: 158.9 kB / 0.6405 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.5769, allocations: 15.94 kB / 0.6406 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000714/0.5776, allocations: 39.97 kB / 0.6406 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.5777, allocations: 56.53 kB / 0.6407 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.096e-05/0.5778, allocations: 27.97 kB / 0.6407 GB, free: 10.91 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001715/0.5795, allocations: 1.163 MB / 0.6418 GB, free: 9.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5795, allocations: 0 / 0.6418 GB, free: 9.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001628/0.5811, allocations: 427.7 kB / 0.6422 GB, free: 9.332 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (s1.logm,p1.logm,d1.rear.n_flow) * 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 (61): * Single equations (assignments): 58 * 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): 3 systems {(1,4,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004626/0.5858, allocations: 2.265 MB / 0.6444 GB, free: 7.012 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003213/0.589, allocations: 1.359 MB / 0.6458 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.589, allocations: 0 / 0.6458 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.5906, allocations: 0.7063 MB / 0.6465 GB, free: 4.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.5925, allocations: 417.9 kB / 0.6469 GB, free: 4.469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/0.6176, allocations: 14.12 MB / 0.6606 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.6188, allocations: 1.016 MB / 0.6616 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001583/0.6204, allocations: 0.495 MB / 0.6621 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/0.6218, allocations: 0.9249 MB / 0.663 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of SimCode: time 1.073e-06/0.6218, allocations: 0 / 0.663 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09727/0.7191, allocations: 46.43 MB / 0.7084 GB, free: 5.043 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.43, allocations: 7.984 kB / 0.7084 GB, free: 5.035 MB / 0.545 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Processes.Tests.TestMembrane.pipe ; mkfifo Chemical_master_Chemical.Processes.Tests.TestMembrane.pipe ; head -c 1048576 < Chemical_master_Chemical.Processes.Tests.TestMembrane.pipe >> ../files/Chemical_master_Chemical.Processes.Tests.TestMembrane.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Processes.Tests.TestMembrane_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_master_Chemical_Processes_Tests_TestMembrane.fmu > Chemical_master_Chemical.Processes.Tests.TestMembrane.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.42040142416954] Failed to read output from testmodel.py, exit status != 0: 14.571476925630122 14.588021359 14.142415601 Calling exit ...