Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.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.001256/0.001256, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001428/0.001428, allocations: 220.4 kB / 22.25 MB, free: 5.105 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.369/1.369, allocations: 230.6 MB / 256 MB, free: 7.805 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.1323/0.1323, allocations: 23.92 MB / 336.4 MB, free: 10.93 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.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",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.001895/0.001895, allocations: 67.91 kB / 471.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3481, allocations: 59.88 MB / 0.5186 GB, free: 9.496 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.H2O_ElectrochemicalCell): time 0.08202/0.4301, allocations: 28.17 MB / 0.5461 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02502/0.4552, allocations: 17.14 MB / 0.5629 GB, free: 11.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001928/0.4571, allocations: 27.81 kB / 0.5629 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002044/0.4591, allocations: 459.5 kB / 0.5633 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005119/0.4643, allocations: 1.212 MB / 0.5645 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009526/0.4738, allocations: 2.885 MB / 0.5673 GB, free: 7.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003792/0.4776, allocations: 2.098 MB / 0.5694 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.4795, allocations: 1.08 MB / 0.5704 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.4812, allocations: 0.9349 MB / 0.5713 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002055/0.4832, allocations: 1.066 MB / 0.5724 GB, free: 2.723 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000626/0.4839, allocations: 200 kB / 0.5726 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006222/0.4901, allocations: 2.001 MB / 0.5745 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007641/0.4909, allocations: 482.6 kB / 0.575 GB, free: 52 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.492, allocations: 0.821 MB / 0.5758 GB, free: 15.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009546/0.5016, allocations: 4.35 MB / 0.58 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.5016, allocations: 0 / 0.58 GB, free: 10.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5016, allocations: 0 / 0.58 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.497e-05/0.5016, allocations: 3.984 kB / 0.58 GB, free: 10.86 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004456/0.5061, allocations: 2.32 MB / 0.5823 GB, free: 8.492 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.5061, allocations: 8.031 kB / 0.5823 GB, free: 8.484 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002996/0.5064, allocations: 248.8 kB / 0.5825 GB, free: 8.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.5081, allocations: 446.8 kB / 0.583 GB, free: 7.793 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.5101, allocations: 1.015 MB / 0.584 GB, free: 6.746 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/0.5103, allocations: 242.2 kB / 0.5842 GB, free: 6.484 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.5106, allocations: 168 kB / 0.5844 GB, free: 6.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003492/0.5141, allocations: 2.237 MB / 0.5865 GB, free: 4.016 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.5141, allocations: 0 / 0.5865 GB, free: 4.016 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.5143, allocations: 72 kB / 0.5866 GB, free: 3.945 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.669e-05/0.5143, allocations: 40 kB / 0.5866 GB, free: 3.906 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004025/0.5183, allocations: 2.692 MB / 0.5893 GB, free: 1.207 MB / 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.01131/0.5296, allocations: 6.333 MB / 0.5955 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.5314, allocations: 0.9754 MB / 0.5964 GB, free: 9.719 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008248/0.5322, allocations: 0.5174 MB / 0.5969 GB, free: 9.188 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006934/0.5391, allocations: 2.986 MB / 0.5998 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.5392, allocations: 39.22 kB / 0.5999 GB, free: 6.133 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005228/0.5397, allocations: 115 kB / 0.6 GB, free: 6.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 3.547e-06/0.5397, allocations: 0 / 0.6 GB, free: 6.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01626/0.556, allocations: 4.574 MB / 0.6044 GB, free: 1.387 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/0.5561, allocations: 111.8 kB / 0.6046 GB, free: 1.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.5579, allocations: 1.544 MB / 0.6061 GB, free: 15.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.558, allocations: 41.7 kB / 0.6061 GB, free: 15.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.5587, allocations: 0.9239 MB / 0.607 GB, free: 14.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.559, allocations: 361 kB / 0.6073 GB, free: 14.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004941/0.5595, allocations: 355.3 kB / 0.6077 GB, free: 13.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.5596, allocations: 305.1 kB / 0.608 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009792/0.5606, allocations: 0.6325 MB / 0.6086 GB, free: 13.06 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.5622, allocations: 1.353 MB / 0.6099 GB, free: 11.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/0.5648, allocations: 1.925 MB / 0.6118 GB, free: 9.121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.5648, allocations: 12 kB / 0.6118 GB, free: 9.109 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005165/0.5699, allocations: 2.383 MB / 0.6141 GB, free: 6.703 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.57, allocations: 27.97 kB / 0.6142 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.926e-05/0.57, allocations: 24 kB / 0.6142 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/0.5722, allocations: 382.9 kB / 0.6145 GB, free: 6.266 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/0.5746, allocations: 0.5578 MB / 0.6151 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00865/0.5833, allocations: 7.461 MB / 0.6224 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.5846, allocations: 84.11 kB / 0.6225 GB, free: 13.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.5847, allocations: 108.2 kB / 0.6226 GB, free: 13.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * 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): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006522/0.5854, allocations: 375.9 kB / 0.6229 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/0.5857, allocations: 131.2 kB / 0.623 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/0.5898, allocations: 1.527 MB / 0.6245 GB, free: 11.49 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5898, allocations: 12 kB / 0.6245 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5898, allocations: 0 / 0.6245 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.5899, allocations: 11.98 kB / 0.6246 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00641/0.5963, allocations: 2.815 MB / 0.6273 GB, free: 8.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5963, allocations: 11.94 kB / 0.6273 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.5971, allocations: 215.7 kB / 0.6275 GB, free: 8.277 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00236/0.5995, allocations: 412.7 kB / 0.6279 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.381e-05/0.5995, allocations: 39.98 kB / 0.628 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007961/0.6075, allocations: 7.267 MB / 0.6351 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.6075, allocations: 11.94 kB / 0.6351 GB, free: 20 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004703/0.6122, allocations: 2.157 MB / 0.6372 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003643/0.6126, allocations: 127.2 kB / 0.6373 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.6127, allocations: 28 kB / 0.6373 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006155/0.6134, allocations: 27.98 kB / 0.6373 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.6136, allocations: 116.2 kB / 0.6375 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.349e-05/0.6136, allocations: 51.98 kB / 0.6375 GB, free: 13.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001268/0.6149, allocations: 1.036 MB / 0.6385 GB, free: 12.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6149, allocations: 0 / 0.6385 GB, free: 12.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002614/0.6175, allocations: 0.826 MB / 0.6393 GB, free: 11.53 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006517/0.624, allocations: 3.507 MB / 0.6428 GB, free: 7.879 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003347/0.6274, allocations: 1.703 MB / 0.6444 GB, free: 6.156 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.6274, allocations: 0 / 0.6444 GB, free: 6.156 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.6288, allocations: 0.9612 MB / 0.6454 GB, free: 5.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.6302, allocations: 230.1 kB / 0.6456 GB, free: 4.922 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.652, allocations: 13.48 MB / 0.6587 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007395/0.6528, allocations: 0.6487 MB / 0.6594 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001004/0.6538, allocations: 314.5 kB / 0.6597 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008983/0.6547, allocations: 0.6671 MB / 0.6603 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of SimCode: time 9.52e-07/0.6547, allocations: 0 / 0.6603 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09581/0.7505, allocations: 42.88 MB / 0.7022 GB, free: 10.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.9, allocations: 0 / 0.7022 GB, free: 10.16 MB / 0.545 GB " [Timeout remaining time 645] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell_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_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.531816167000216] Failed to read output from testmodel.py, exit status != 0: 15.042580220993841 15.057237721 14.552499316 Calling exit ...