Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001326/0.001326, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001495/0.001495, allocations: 215 kB / 22.25 MB, free: 5.082 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 8.035 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.1353/0.1353, allocations: 23.86 MB / 336.3 MB, free: 11.23 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.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,fileNamePrefix="Chemical_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.002095/0.002095, allocations: 71.89 kB / 471.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.289, allocations: 59.86 MB / 0.5186 GB, free: 9.648 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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/Obsolete.mo:14337:7-14337: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.03825/0.3273, allocations: 29.08 MB / 0.547 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02578/0.3531, allocations: 19.53 MB / 0.5661 GB, free: 8.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.3548, allocations: 27.81 kB / 0.5661 GB, free: 8.883 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.3565, allocations: 0.5067 MB / 0.5666 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004074/0.3606, allocations: 1.235 MB / 0.5678 GB, free: 7.434 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008282/0.3689, allocations: 2.891 MB / 0.5706 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.3726, allocations: 2.094 MB / 0.5726 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.374, allocations: 1.08 MB / 0.5737 GB, free: 1.613 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.3752, allocations: 0.931 MB / 0.5746 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001595/0.3768, allocations: 1.07 MB / 0.5757 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003135/0.3771, allocations: 200 kB / 0.5758 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006309/0.3834, allocations: 2.087 MB / 0.5779 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006121/0.384, allocations: 470.6 kB / 0.5783 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001274/0.3853, allocations: 0.9878 MB / 0.5793 GB, free: 11.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009161/0.3945, allocations: 4.354 MB / 0.5835 GB, free: 7.496 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3945, allocations: 0 / 0.5835 GB, free: 7.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3945, allocations: 0 / 0.5835 GB, free: 7.496 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.324e-05/0.3945, allocations: 0 / 0.5835 GB, free: 7.496 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.004862/0.3994, allocations: 2.339 MB / 0.5858 GB, free: 5.113 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3994, allocations: 8.031 kB / 0.5858 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003111/0.3998, allocations: 240.8 kB / 0.5861 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001692/0.4014, allocations: 447 kB / 0.5865 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.4034, allocations: 1.015 MB / 0.5875 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.4036, allocations: 238.2 kB / 0.5877 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/0.4039, allocations: 164 kB / 0.5879 GB, free: 2.957 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003611/0.4075, allocations: 2.241 MB / 0.5901 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.432e-05/0.4076, allocations: 3.938 kB / 0.5901 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.4077, allocations: 68 kB / 0.5901 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.4078, allocations: 47.94 kB / 0.5902 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004302/0.4121, allocations: 2.715 MB / 0.5928 GB, free: 13.8 MB / 446.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.01208/0.4242, allocations: 7.219 MB / 0.5999 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.426, allocations: 0.9868 MB / 0.6008 GB, free: 5.305 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009108/0.4269, allocations: 0.5174 MB / 0.6013 GB, free: 4.773 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007241/0.4342, allocations: 3.157 MB / 0.6044 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.4342, allocations: 39.22 kB / 0.6045 GB, free: 1.547 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000496/0.4347, allocations: 115 kB / 0.6046 GB, free: 1.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.535e-06/0.4347, allocations: 0 / 0.6046 GB, free: 1.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01901/0.4537, allocations: 4.566 MB / 0.609 GB, free: 12.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.4538, allocations: 111.8 kB / 0.6091 GB, free: 12.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/0.4558, allocations: 1.501 MB / 0.6106 GB, free: 11.15 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001358/0.4559, allocations: 45.64 kB / 0.6107 GB, free: 11.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007368/0.4566, allocations: 0.9202 MB / 0.6115 GB, free: 10.17 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.457, allocations: 369 kB / 0.6119 GB, free: 9.805 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005278/0.4575, allocations: 363.3 kB / 0.6122 GB, free: 9.441 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4577, allocations: 301.1 kB / 0.6125 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.4587, allocations: 0.6286 MB / 0.6131 GB, free: 8.516 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.4604, allocations: 1.337 MB / 0.6145 GB, free: 6.848 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002735/0.4632, allocations: 1.944 MB / 0.6164 GB, free: 4.574 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.4632, allocations: 4 kB / 0.6164 GB, free: 4.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005977/0.4692, allocations: 2.383 MB / 0.6187 GB, free: 2.164 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.4692, allocations: 22.59 kB / 0.6187 GB, free: 2.145 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/0.4692, allocations: 28 kB / 0.6187 GB, free: 2.117 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002714/0.472, allocations: 378.8 kB / 0.6191 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002713/0.4747, allocations: 0.5617 MB / 0.6196 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009648/0.4843, allocations: 7.496 MB / 0.627 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4858, allocations: 92.03 kB / 0.627 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.486, allocations: 104 kB / 0.6271 GB, free: 8.973 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.0007488/0.4868, allocations: 373.5 kB / 0.6275 GB, free: 8.598 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.4871, allocations: 131.2 kB / 0.6276 GB, free: 8.469 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00495/0.4921, allocations: 1.519 MB / 0.6291 GB, free: 6.926 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.4921, allocations: 8 kB / 0.6291 GB, free: 6.918 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4921, allocations: 4 kB / 0.6291 GB, free: 6.914 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.4921, allocations: 7.969 kB / 0.6291 GB, free: 6.906 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00732/0.4994, allocations: 2.982 MB / 0.632 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.4994, allocations: 8 kB / 0.6321 GB, free: 3.766 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008996/0.5003, allocations: 216.4 kB / 0.6323 GB, free: 3.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002881/0.5032, allocations: 412.7 kB / 0.6327 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.5033, allocations: 39.98 kB / 0.6327 GB, free: 3.094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00882/0.5121, allocations: 7.295 MB / 0.6398 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/0.5122, allocations: 11.94 kB / 0.6398 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005339/0.5175, allocations: 2.16 MB / 0.6419 GB, free: 8.988 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.5178, allocations: 127.2 kB / 0.6421 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/0.518, allocations: 35.92 kB / 0.6421 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/0.5187, allocations: 32 kB / 0.6421 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.519, allocations: 112.4 kB / 0.6422 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.352e-05/0.5191, allocations: 47.98 kB / 0.6423 GB, free: 8.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.5204, allocations: 1.033 MB / 0.6433 GB, free: 7.602 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5204, allocations: 4 kB / 0.6433 GB, free: 7.598 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002657/0.5231, allocations: 0.8299 MB / 0.6441 GB, free: 6.766 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.007291/0.5303, allocations: 3.516 MB / 0.6475 GB, free: 3.109 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003641/0.534, allocations: 1.695 MB / 0.6492 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.534, allocations: 0 / 0.6492 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.5355, allocations: 0.9727 MB / 0.6501 GB, free: 380 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.537, allocations: 226.8 kB / 0.6504 GB, free: 156 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/0.5624, allocations: 13.47 MB / 0.6635 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.5635, allocations: 1.219 MB / 0.6647 GB, free: 408 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00118/0.5647, allocations: 330.5 kB / 0.665 GB, free: 72 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.5658, allocations: 0.6633 MB / 0.6657 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of SimCode: time 9.52e-07/0.5658, allocations: 0 / 0.6657 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/0.6668, allocations: 42.33 MB / 0.707 GB, free: 5.281 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.88/28.55, allocations: 3.562 kB / 0.707 GB, free: 5.281 MB / 0.545 GB " [Timeout remaining time 631] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_H2O_ElectrochemicalCell.fmu > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 31.350366924889386] Failed to read output from testmodel.py, exit status != 0: 28.694221201119944 28.719440816 28.320255998 Calling exit ...