Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001387/0.001387, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001661/0.001661, allocations: 210.5 kB / 22.24 MB, free: 5.121 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.603/1.603, allocations: 230.6 MB / 256 MB, free: 7.789 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.1585/0.1585, allocations: 23.88 MB / 336.3 MB, free: 10.97 MB / 270.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.Processes.Tests.TestMembrane,fileNamePrefix="Chemical_Chemical_Processes_Tests_TestMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Processes.Tests.TestMembrane,fileNamePrefix="Chemical_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.002095/0.002095, allocations: 71.88 kB / 471.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4291/0.4312, allocations: 59.86 MB / 0.5185 GB, free: 9.52 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328: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 2.0.0/Boundaries.mo:1328:7-1328: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 2.0.0/Boundaries.mo:1343:7-1343: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 2.0.0/Boundaries.mo:1343:7-1343: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.08045/0.5116, allocations: 28.49 MB / 0.5464 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01587/0.5275, allocations: 8.162 MB / 0.5543 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.5301, allocations: 23.88 kB / 0.5543 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.5339, allocations: 0.9739 MB / 0.5553 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003702/0.5376, allocations: 0.8094 MB / 0.5561 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003768/0.5414, allocations: 0.956 MB / 0.557 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004148/0.5455, allocations: 2.006 MB / 0.559 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000763/0.5463, allocations: 423.2 kB / 0.5594 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/0.5476, allocations: 0.8019 MB / 0.5602 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.5489, allocations: 0.8284 MB / 0.561 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003276/0.5492, allocations: 220 kB / 0.5612 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003666/0.5528, allocations: 1.152 MB / 0.5623 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007289/0.5536, allocations: 0.6551 MB / 0.5629 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.5547, allocations: 0.9076 MB / 0.5638 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007757/0.5624, allocations: 4.033 MB / 0.5678 GB, free: 7.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.5624, allocations: 0 / 0.5678 GB, free: 7.441 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5624, allocations: 0 / 0.5678 GB, free: 7.441 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.29e-05/0.5625, allocations: 4 kB / 0.5678 GB, free: 7.438 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: 618 * Number of variables: 618 Notification: Performance of Generate backend data structure: time 0.005213/0.5677, allocations: 2.569 MB / 0.5703 GB, free: 4.824 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.5678, allocations: 12.03 kB / 0.5703 GB, free: 4.812 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004177/0.5682, allocations: 321.9 kB / 0.5706 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002028/0.5702, allocations: 0.5379 MB / 0.5711 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.5723, allocations: 1.074 MB / 0.5722 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004361/0.5728, allocations: 367.2 kB / 0.5725 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.5731, allocations: 192.4 kB / 0.5727 GB, free: 2.273 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.5848, allocations: 8.339 MB / 0.5809 GB, free: 9.906 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.384e-05/0.5848, allocations: 3.984 kB / 0.5809 GB, free: 9.902 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/0.585, allocations: 79.97 kB / 0.5809 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004171/0.5854, allocations: 344.6 kB / 0.5813 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/0.6032, allocations: 14.41 MB / 0.5953 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0338/0.637, allocations: 19.69 MB / 0.6146 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005706/0.6427, allocations: 3.439 MB / 0.6179 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004478/0.6472, allocations: 2.791 MB / 0.6207 GB, free: 1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001712/0.6489, allocations: 0.5829 MB / 0.6212 GB, free: 424 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.6489, allocations: 47.56 kB / 0.6213 GB, free: 368 kB / 462.1 MB Notification: Performance of pre-optimization done (n=94): time 2.955e-06/0.6489, allocations: 0 / 0.6213 GB, free: 368 kB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.04323/0.6922, allocations: 16.75 MB / 0.6376 GB, free: 15.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009859/0.702, allocations: 6.471 MB / 0.6439 GB, free: 8.809 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004158/0.7062, allocations: 2.939 MB / 0.6468 GB, free: 5.855 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000417/0.7066, allocations: 45.7 kB / 0.6469 GB, free: 5.805 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009886/0.7076, allocations: 0.931 MB / 0.6478 GB, free: 4.867 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006439/0.7082, allocations: 428.3 kB / 0.6482 GB, free: 4.445 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009172/0.7092, allocations: 406.8 kB / 0.6486 GB, free: 4.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.7093, allocations: 353.9 kB / 0.6489 GB, free: 3.688 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004965/0.7143, allocations: 3.434 MB / 0.6523 GB, free: 260 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005124/0.7194, allocations: 3.618 MB / 0.6558 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02743/0.7469, allocations: 10.27 MB / 0.6658 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.7469, allocations: 4 kB / 0.6658 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01361/0.7605, allocations: 7.547 MB / 0.6732 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.7605, allocations: 12 kB / 0.6732 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.7605, allocations: 7.938 kB / 0.6732 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.7619, allocations: 0.8045 MB / 0.674 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005066/0.767, allocations: 0.8155 MB / 0.6748 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/0.7834, allocations: 13.47 MB / 0.6879 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.7851, allocations: 64.17 kB / 0.688 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000525/0.7856, allocations: 295.8 kB / 0.6883 GB, free: 10.57 MB / 0.5294 GB 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: 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 (135): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001383/0.787, allocations: 0.5951 MB / 0.6889 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/0.7877, allocations: 254.3 kB / 0.6891 GB, free: 9.719 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009996/0.7976, allocations: 3.746 MB / 0.6928 GB, free: 5.887 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.7977, allocations: 15.94 kB / 0.6928 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.7977, allocations: 4 kB / 0.6928 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.7977, allocations: 7.969 kB / 0.6928 GB, free: 5.859 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.8091, allocations: 5.579 MB / 0.6982 GB, free: 132 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.8091, allocations: 8 kB / 0.6983 GB, free: 124 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002866/0.8119, allocations: 328.2 kB / 0.6986 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.8139, allocations: 367.9 kB / 0.6989 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.081e-05/0.814, allocations: 31.92 kB / 0.6989 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.8245, allocations: 8.278 MB / 0.707 GB, free: 6.527 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005853/0.8304, allocations: 3.694 MB / 0.7106 GB, free: 2.574 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007227/0.8376, allocations: 2.722 MB / 0.7133 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009844/0.8386, allocations: 370.6 kB / 0.7137 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004154/0.839, allocations: 24 kB / 0.7137 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.8401, allocations: 51.95 kB / 0.7137 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.8404, allocations: 124.6 kB / 0.7138 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.44e-05/0.8405, allocations: 47.95 kB / 0.7139 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005315/0.8458, allocations: 3.673 MB / 0.7175 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8458, allocations: 0 / 0.7175 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002585/0.8484, allocations: 0.7652 MB / 0.7182 GB, free: 10.69 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 3 ($STATESET2.x,$STATESET1.x,d1.rear.n_flow) * Number of discrete variables: 2 ($cse26,$cse19) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 2 systems {(3,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008101/0.8565, allocations: 3.558 MB / 0.7217 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007438/0.8639, allocations: 4.321 MB / 0.7259 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/0.8639, allocations: 0 / 0.7259 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003214/0.8672, allocations: 1.356 MB / 0.7272 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/0.8707, allocations: 0.6451 MB / 0.7279 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3305/1.201, allocations: 48.95 MB / 0.7757 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/1.202, allocations: 1.053 MB / 0.7767 GB, free: 155 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002003/1.204, allocations: 0.5585 MB / 0.7773 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/1.206, allocations: 1.018 MB / 0.7782 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.833e-06/1.206, allocations: 2.625 kB / 0.7782 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.185/1.391, allocations: 93.87 MB / 0.8699 GB, free: 62.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.2/19.59, allocations: 3.234 kB / 0.8699 GB, free: 62.02 MB / 0.5606 GB " [Timeout remaining time 640] (rm -f Chemical_Chemical.Processes.Tests.TestMembrane.pipe ; mkfifo Chemical_Chemical.Processes.Tests.TestMembrane.pipe ; head -c 1048576 < Chemical_Chemical.Processes.Tests.TestMembrane.pipe >> ../files/Chemical_Chemical.Processes.Tests.TestMembrane.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Processes_Tests_TestMembrane.fmu > Chemical_Chemical.Processes.Tests.TestMembrane.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.74205807596445] Failed to read output from testmodel.py, exit status != 0: 19.76707881502807 19.778716363 19.213781324 Calling exit ...