Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 103.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 249.9 MB, free: 13.64 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08797/0.08797, allocations: 15.54 MB / 320.6 MB, free: 9.617 MB / 254.1 MB [Timeout remaining time 90] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.88 kB / 448.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1059, allocations: 56.55 MB / 0.4934 GB, free: 2.559 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.4058/0.5117, allocations: 27.39 MB / 0.5201 GB, free: 6.195 MB / 382.2 MB Notification: Performance of NFInst.instExpressions: time 0.01967/0.5314, allocations: 18.22 MB / 0.5379 GB, free: 13.02 MB / 398.2 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.5324, allocations: 19.72 kB / 0.5379 GB, free: 13.01 MB / 398.2 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.5339, allocations: 477.7 kB / 0.5384 GB, free: 12.75 MB / 398.2 MB Notification: Performance of NFTyping.typeBindings: time 0.003534/0.5374, allocations: 0.8361 MB / 0.5392 GB, free: 12.23 MB / 398.2 MB Notification: Performance of NFTyping.typeClassSections: time 0.01047/0.5479, allocations: 2.822 MB / 0.5419 GB, free: 10.56 MB / 398.2 MB Notification: Performance of NFFlatten.flatten: time 0.003249/0.5511, allocations: 1.632 MB / 0.5435 GB, free: 9.754 MB / 398.2 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.5525, allocations: 0.7688 MB / 0.5443 GB, free: 9.379 MB / 398.2 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.5537, allocations: 0.7039 MB / 0.545 GB, free: 9.102 MB / 398.2 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.555, allocations: 0.8158 MB / 0.5458 GB, free: 8.75 MB / 398.2 MB Notification: Performance of NFPackage.collectConstants: time 0.0002469/0.5552, allocations: 146 kB / 0.5459 GB, free: 8.746 MB / 398.2 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00726/0.5625, allocations: 1.778 MB / 0.5476 GB, free: 8.297 MB / 398.2 MB Notification: Performance of NFScalarize.scalarize: time 0.0007319/0.5632, allocations: 358 kB / 0.548 GB, free: 8.078 MB / 398.2 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.5646, allocations: 0.7474 MB / 0.5487 GB, free: 7.633 MB / 398.2 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.5747, allocations: 3.488 MB / 0.5521 GB, free: 5.703 MB / 398.2 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.5747, allocations: 0 / 0.5521 GB, free: 5.703 MB / 398.2 MB Notification: Performance of FrontEnd: time 1.674e-06/0.5747, allocations: 0 / 0.5521 GB, free: 5.703 MB / 398.2 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.5748, allocations: 3.781 kB / 0.5521 GB, free: 5.703 MB / 398.2 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003622/0.5784, allocations: 1.967 MB / 0.554 GB, free: 4.258 MB / 398.2 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.5784, allocations: 14.8 kB / 0.5541 GB, free: 4.254 MB / 398.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00159/0.58, allocations: 389.9 kB / 0.5544 GB, free: 4.066 MB / 398.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.5817, allocations: 0.9831 MB / 0.5554 GB, free: 3.312 MB / 398.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.5819, allocations: 152.3 kB / 0.5555 GB, free: 3.199 MB / 398.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.5821, allocations: 115.4 kB / 0.5556 GB, free: 3.164 MB / 398.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00243/0.5845, allocations: 1.647 MB / 0.5573 GB, free: 2.125 MB / 398.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.5845, allocations: 7.531 kB / 0.5573 GB, free: 2.121 MB / 398.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.5847, allocations: 46.78 kB / 0.5573 GB, free: 2.086 MB / 398.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.5847, allocations: 28.53 kB / 0.5573 GB, free: 2.086 MB / 398.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002778/0.5875, allocations: 2.103 MB / 0.5594 GB, free: 1.164 MB / 398.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00771/0.5952, allocations: 5.445 MB / 0.5647 GB, free: 12.96 MB / 414.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.5965, allocations: 0.6871 MB / 0.5654 GB, free: 12.59 MB / 414.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.597, allocations: 338.9 kB / 0.5657 GB, free: 12.41 MB / 414.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007718/0.6047, allocations: 5.035 MB / 0.5706 GB, free: 7.926 MB / 414.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.6048, allocations: 41.48 kB / 0.5707 GB, free: 7.879 MB / 414.2 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003818/0.6051, allocations: 87.77 kB / 0.5707 GB, free: 7.809 MB / 414.2 MB Notification: Performance of pre-optimization done (n=34): time 2.334e-06/0.6051, allocations: 0 / 0.5707 GB, free: 7.809 MB / 414.2 MB Notification: Performance of matching and sorting (n=34): time 0.001444/0.6066, allocations: 0.7596 MB / 0.5715 GB, free: 7.309 MB / 414.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.6067, allocations: 106.4 kB / 0.5716 GB, free: 7.184 MB / 414.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.6081, allocations: 1.201 MB / 0.5728 GB, free: 6.492 MB / 414.2 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.6081, allocations: 29.7 kB / 0.5728 GB, free: 6.457 MB / 414.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006032/0.6087, allocations: 0.797 MB / 0.5736 GB, free: 5.738 MB / 414.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.6088, allocations: 145 kB / 0.5737 GB, free: 5.613 MB / 414.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/0.6092, allocations: 273.3 kB / 0.574 GB, free: 5.461 MB / 414.2 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.6093, allocations: 356.6 kB / 0.5743 GB, free: 5.117 MB / 414.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004869/0.6098, allocations: 318.7 kB / 0.5746 GB, free: 4.973 MB / 414.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.611, allocations: 1.047 MB / 0.5756 GB, free: 3.703 MB / 414.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.6128, allocations: 1.399 MB / 0.577 GB, free: 1.938 MB / 414.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/0.6128, allocations: 11.94 kB / 0.577 GB, free: 1.926 MB / 414.2 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002512/0.6153, allocations: 1.444 MB / 0.5784 GB, free: 480 kB / 414.2 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.6153, allocations: 16 kB / 0.5784 GB, free: 464 kB / 414.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.6154, allocations: 27.94 kB / 0.5785 GB, free: 436 kB / 414.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006829/0.616, allocations: 157.5 kB / 0.5786 GB, free: 272 kB / 414.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.6172, allocations: 375.5 kB / 0.579 GB, free: 15.9 MB / 430.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003528/0.6208, allocations: 4.061 MB / 0.5829 GB, free: 11.5 MB / 430.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009963/0.6217, allocations: 80 kB / 0.583 GB, free: 11.42 MB / 430.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.6219, allocations: 91.98 kB / 0.5831 GB, free: 11.33 MB / 430.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005403/0.6224, allocations: 305.1 kB / 0.5834 GB, free: 11.02 MB / 430.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.6227, allocations: 107.3 kB / 0.5835 GB, free: 10.91 MB / 430.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.6244, allocations: 0.8494 MB / 0.5843 GB, free: 10.02 MB / 430.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.6244, allocations: 8 kB / 0.5843 GB, free: 10.01 MB / 430.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-06/0.6244, allocations: 0 / 0.5843 GB, free: 10.01 MB / 430.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.6244, allocations: 3.984 kB / 0.5843 GB, free: 10 MB / 430.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.6266, allocations: 1.274 MB / 0.5856 GB, free: 8.648 MB / 430.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.6266, allocations: 0 / 0.5856 GB, free: 8.648 MB / 430.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.6269, allocations: 51.97 kB / 0.5856 GB, free: 8.598 MB / 430.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007693/0.6277, allocations: 183.2 kB / 0.5858 GB, free: 8.406 MB / 430.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.6277, allocations: 16 kB / 0.5858 GB, free: 8.391 MB / 430.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/0.631, allocations: 3.943 MB / 0.5897 GB, free: 4.102 MB / 430.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.631, allocations: 7.938 kB / 0.5897 GB, free: 4.094 MB / 430.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.6324, allocations: 0.858 MB / 0.5905 GB, free: 3.188 MB / 430.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002985/0.6327, allocations: 176.4 kB / 0.5907 GB, free: 2.996 MB / 430.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.6328, allocations: 11.95 kB / 0.5907 GB, free: 2.984 MB / 430.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.6332, allocations: 8 kB / 0.5907 GB, free: 2.977 MB / 430.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.6333, allocations: 43.89 kB / 0.5907 GB, free: 2.934 MB / 430.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.6333, allocations: 20 kB / 0.5908 GB, free: 2.914 MB / 430.2 MB Notification: Performance of sorting global known variables: time 0.001177/0.6345, allocations: 0.8771 MB / 0.5916 GB, free: 2.031 MB / 430.2 MB Notification: Performance of sort global known variables: time 7e-08/0.6345, allocations: 0 / 0.5916 GB, free: 2.031 MB / 430.2 MB Notification: Performance of remove unused functions: time 0.002142/0.6366, allocations: 0.6268 MB / 0.5922 GB, free: 1.402 MB / 430.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/0.6382, allocations: 0.739 MB / 0.5929 GB, free: 0.6484 MB / 430.2 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.64, allocations: 0.7665 MB / 0.5937 GB, free: 15.89 MB / 446.2 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.64, allocations: 0 / 0.5937 GB, free: 15.89 MB / 446.2 MB Notification: Performance of simCode: created simulation system equations: time 0.0005574/0.6406, allocations: 390.1 kB / 0.5941 GB, free: 15.48 MB / 446.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.6417, allocations: 185.1 kB / 0.5942 GB, free: 15.31 MB / 446.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.645, allocations: 1.878 MB / 0.5961 GB, free: 13.37 MB / 446.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007539/0.6458, allocations: 1.063 MB / 0.5971 GB, free: 12.28 MB / 446.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/0.6462, allocations: 187.3 kB / 0.5973 GB, free: 12.1 MB / 446.2 MB Notification: Performance of SimCode: time 1.342e-06/0.6462, allocations: 0 / 0.5973 GB, free: 12.1 MB / 446.2 MB Notification: Performance of Templates: time 0.0462/0.6924, allocations: 36.96 MB / 0.6334 GB, free: 7.168 MB / 478.2 MB [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 480]