Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.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.001305/0.001305, allocations: 103.8 kB / 16.45 MB, free: 6.449 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.001345/0.001345, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.367/1.367, allocations: 230.6 MB / 252.8 MB, free: 9.141 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.1331/0.1331, allocations: 23.89 MB / 332.7 MB, free: 12.34 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.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ElectrochemicalCell,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_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.001959/0.001959, allocations: 71.89 kB / 466 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3092, allocations: 59.83 MB / 0.5135 GB, free: 8.812 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.ElectrochemicalCell): time 0.0411/0.3503, allocations: 31.02 MB / 0.5438 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03614/0.3864, allocations: 28.85 MB / 0.572 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.3883, allocations: 31.75 kB / 0.572 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.39, allocations: 0.6559 MB / 0.5727 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006471/0.3965, allocations: 2.204 MB / 0.5748 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01086/0.4074, allocations: 3.879 MB / 0.5786 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004302/0.4117, allocations: 2.852 MB / 0.5814 GB, free: 5.684 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.4134, allocations: 1.376 MB / 0.5827 GB, free: 4.258 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.415, allocations: 1.348 MB / 0.5841 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.4169, allocations: 1.51 MB / 0.5855 GB, free: 1.391 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003548/0.4172, allocations: 260 kB / 0.5858 GB, free: 1.137 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009145/0.4264, allocations: 3.144 MB / 0.5889 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006218/0.427, allocations: 0.6037 MB / 0.5894 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.4285, allocations: 1.303 MB / 0.5907 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.4415, allocations: 6.202 MB / 0.5968 GB, free: 5.848 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4415, allocations: 0 / 0.5968 GB, free: 5.848 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4415, allocations: 0 / 0.5968 GB, free: 5.848 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.4416, allocations: 3.938 kB / 0.5968 GB, free: 5.844 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.005773/0.4474, allocations: 3.167 MB / 0.5999 GB, free: 2.605 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4474, allocations: 8.031 kB / 0.5999 GB, free: 2.598 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003656/0.4478, allocations: 304.3 kB / 0.6002 GB, free: 2.289 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002208/0.45, allocations: 0.5609 MB / 0.6007 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.4521, allocations: 1.315 MB / 0.602 GB, free: 372 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.4523, allocations: 231.9 kB / 0.6022 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003581/0.4526, allocations: 224 kB / 0.6024 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/0.4568, allocations: 2.671 MB / 0.605 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.4568, allocations: 4 kB / 0.605 GB, free: 13.13 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002132/0.457, allocations: 88 kB / 0.6051 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.624e-05/0.4571, allocations: 60 kB / 0.6052 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005066/0.4622, allocations: 3.306 MB / 0.6084 GB, free: 9.68 MB / 462.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.01333/0.4755, allocations: 8.679 MB / 0.6169 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.4783, allocations: 1.896 MB / 0.6187 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.4797, allocations: 0.8582 MB / 0.6196 GB, free: 13.79 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.4914, allocations: 7.907 MB / 0.6273 GB, free: 5.035 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.4914, allocations: 55.81 kB / 0.6274 GB, free: 4.973 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.485e-06/0.4914, allocations: 0 / 0.6274 GB, free: 4.973 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03016/0.5216, allocations: 8.258 MB / 0.6354 GB, free: 12.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.5217, allocations: 103.1 kB / 0.6355 GB, free: 12.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.5234, allocations: 1.362 MB / 0.6368 GB, free: 11.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.5235, allocations: 53.7 kB / 0.6369 GB, free: 11.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007788/0.5243, allocations: 1.077 MB / 0.638 GB, free: 9.977 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005944/0.5249, allocations: 0.6624 MB / 0.6386 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007095/0.5256, allocations: 477.1 kB / 0.6391 GB, free: 8.836 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5257, allocations: 301.1 kB / 0.6393 GB, free: 8.539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/0.5272, allocations: 0.8093 MB / 0.6401 GB, free: 7.727 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/0.5293, allocations: 1.654 MB / 0.6417 GB, free: 5.684 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003694/0.533, allocations: 2.61 MB / 0.6443 GB, free: 2.695 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.533, allocations: 8 kB / 0.6443 GB, free: 2.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006712/0.5397, allocations: 3.046 MB / 0.6473 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.5397, allocations: 16 kB / 0.6473 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.371e-05/0.5398, allocations: 32.28 kB / 0.6473 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003074/0.5428, allocations: 0.5182 MB / 0.6478 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003557/0.5464, allocations: 0.8036 MB / 0.6486 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009487/0.5559, allocations: 8.041 MB / 0.6565 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.5576, allocations: 100.2 kB / 0.6566 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00025/0.5578, allocations: 143.9 kB / 0.6567 GB, free: 5.34 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000894/0.5587, allocations: 456.8 kB / 0.6571 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003734/0.5591, allocations: 174.9 kB / 0.6573 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006711/0.5658, allocations: 2.567 MB / 0.6598 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.5658, allocations: 24 kB / 0.6598 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5658, allocations: 0 / 0.6598 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/0.5659, allocations: 7.969 kB / 0.6598 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009678/0.5755, allocations: 4.77 MB / 0.6645 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.5755, allocations: 12 kB / 0.6645 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.5771, allocations: 415.4 kB / 0.6649 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003179/0.5803, allocations: 0.5432 MB / 0.6654 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/0.5805, allocations: 83.95 kB / 0.6655 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008584/0.5891, allocations: 7.844 MB / 0.6732 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-05/0.5891, allocations: 15.94 kB / 0.6732 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007207/0.5963, allocations: 3.462 MB / 0.6766 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004796/0.5968, allocations: 263.8 kB / 0.6768 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.597, allocations: 59.98 kB / 0.6769 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009478/0.5979, allocations: 48 kB / 0.6769 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003109/0.5983, allocations: 188.8 kB / 0.6771 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.5984, allocations: 91.97 kB / 0.6772 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001194/0.5996, allocations: 0.8889 MB / 0.6781 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.5996, allocations: 0 / 0.6781 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003563/0.6032, allocations: 1.212 MB / 0.6792 GB, free: 13.13 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009646/0.6128, allocations: 5.246 MB / 0.6844 GB, free: 7.684 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004775/0.6176, allocations: 2.357 MB / 0.6867 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.6176, allocations: 4 kB / 0.6867 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.6198, allocations: 1.369 MB / 0.688 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.6217, allocations: 353.4 kB / 0.6883 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02849/0.6502, allocations: 16.96 MB / 0.7049 GB, free: 1.23 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.6514, allocations: 1.436 MB / 0.7063 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001484/0.6529, allocations: 466.3 kB / 0.7068 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/0.6542, allocations: 0.9639 MB / 0.7077 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of SimCode: time 7.62e-07/0.6542, allocations: 0 / 0.7077 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3121/0.9663, allocations: 58.67 MB / 0.765 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.6/18.57, allocations: 5.703 kB / 0.765 GB, free: 156.8 MB / 0.5606 GB " [Timeout remaining time 641] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ElectrochemicalCell.fmu > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.21053652698174] Failed to read output from testmodel.py, exit status != 0: 18.695518729975447 18.704170936 18.260546385 Calling exit ...