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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") translateModel(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 105.7 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 187 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07388/0.07388, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 64.12 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08471/0.08584, allocations: 53.61 MB / 479.5 MB, free: 5.785 MB / 350.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.03162/0.1175, allocations: 26.52 MB / 0.4941 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2391/0.3566, allocations: 18.16 MB / 0.5119 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009475/0.3576, allocations: 17.56 kB / 0.5119 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.3589, allocations: 470.5 kB / 0.5123 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.3614, allocations: 0.835 MB / 0.5131 GB, free: 18.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008254/0.3697, allocations: 2.795 MB / 0.5159 GB, free: 17.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002957/0.3727, allocations: 1.63 MB / 0.5175 GB, free: 16.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.3742, allocations: 0.9183 MB / 0.5184 GB, free: 16.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.3753, allocations: 0.7184 MB / 0.5191 GB, free: 16.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.3765, allocations: 0.798 MB / 0.5198 GB, free: 16.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003181/0.3768, allocations: 140.2 kB / 0.52 GB, free: 16.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006988/0.3838, allocations: 1.761 MB / 0.5217 GB, free: 16.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007162/0.3845, allocations: 359.5 kB / 0.522 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001892/0.3864, allocations: 0.7476 MB / 0.5228 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.3967, allocations: 3.468 MB / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.3968, allocations: 3.781 kB / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3968, allocations: 0 / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.977e-05/0.3969, allocations: 0 / 0.5262 GB, free: 14.16 MB / 382.1 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.005752/0.4026, allocations: 1.924 MB / 0.528 GB, free: 12.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.4027, allocations: 10.28 kB / 0.528 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.4049, allocations: 391.6 kB / 0.5284 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.4071, allocations: 0.964 MB / 0.5294 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/0.4074, allocations: 151.1 kB / 0.5295 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003662/0.4077, allocations: 122 kB / 0.5296 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.4103, allocations: 1.648 MB / 0.5312 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.4103, allocations: 2.188 kB / 0.5312 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.4105, allocations: 52.56 kB / 0.5313 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.4105, allocations: 31.91 kB / 0.5313 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.4133, allocations: 2.103 MB / 0.5334 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006884/0.4202, allocations: 5.402 MB / 0.5386 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.4214, allocations: 0.7303 MB / 0.5394 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005113/0.4219, allocations: 356.8 kB / 0.5397 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006279/0.4282, allocations: 5.038 MB / 0.5446 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.4282, allocations: 34.56 kB / 0.5447 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004013/0.4286, allocations: 78.91 kB / 0.5447 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.625e-06/0.4287, allocations: 0 / 0.5447 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001198/0.4299, allocations: 0.7525 MB / 0.5455 GB, free: 68 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.4299, allocations: 106.8 kB / 0.5456 GB, free: 15.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.4313, allocations: 1.197 MB / 0.5467 GB, free: 14.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.4313, allocations: 33.7 kB / 0.5468 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000485/0.4318, allocations: 0.7773 MB / 0.5475 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.4319, allocations: 133.2 kB / 0.5476 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.4323, allocations: 270.5 kB / 0.5479 GB, free: 13.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4324, allocations: 356.5 kB / 0.5482 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.4329, allocations: 322.4 kB / 0.5486 GB, free: 12.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009522/0.4338, allocations: 1.035 MB / 0.5496 GB, free: 11.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.4353, allocations: 1.408 MB / 0.5509 GB, free: 9.746 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.4353, allocations: 10.66 kB / 0.551 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002114/0.4375, allocations: 1.438 MB / 0.5524 GB, free: 8.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.4375, allocations: 23.31 kB / 0.5524 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.4375, allocations: 28 kB / 0.5524 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006588/0.4382, allocations: 160 kB / 0.5526 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.4393, allocations: 378 kB / 0.5529 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.4422, allocations: 4.063 MB / 0.5569 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.4433, allocations: 78.39 kB / 0.557 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.4434, allocations: 91.98 kB / 0.557 GB, free: 3.184 MB / 398.1 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.0005084/0.4439, allocations: 307.8 kB / 0.5573 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.4442, allocations: 98.78 kB / 0.5574 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.4458, allocations: 0.8529 MB / 0.5583 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4458, allocations: 4 kB / 0.5583 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.4458, allocations: 4 kB / 0.5583 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4458, allocations: 3.984 kB / 0.5583 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.4478, allocations: 1.257 MB / 0.5595 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4478, allocations: 7.938 kB / 0.5595 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.4481, allocations: 58.59 kB / 0.5596 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007475/0.4489, allocations: 177.7 kB / 0.5597 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.4489, allocations: 14.69 kB / 0.5598 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002601/0.4515, allocations: 3.943 MB / 0.5636 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4515, allocations: 0 / 0.5636 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.4528, allocations: 0.8612 MB / 0.5644 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003296/0.4531, allocations: 171.8 kB / 0.5646 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.4533, allocations: 10.66 kB / 0.5646 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.4537, allocations: 10.62 kB / 0.5646 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.4538, allocations: 35.89 kB / 0.5647 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-05/0.4538, allocations: 20 kB / 0.5647 GB, free: 10.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.4549, allocations: 0.8875 MB / 0.5655 GB, free: 10.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4549, allocations: 0 / 0.5655 GB, free: 10.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002151/0.4571, allocations: 0.6123 MB / 0.5661 GB, free: 9.402 MB / 414.1 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.001403/0.4585, allocations: 0.7337 MB / 0.5669 GB, free: 8.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.4601, allocations: 0.7913 MB / 0.5676 GB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4601, allocations: 3.938 kB / 0.5676 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.4606, allocations: 391.6 kB / 0.568 GB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.4616, allocations: 166.7 kB / 0.5682 GB, free: 7.453 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002655/0.4643, allocations: 1.84 MB / 0.57 GB, free: 5.629 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.4649, allocations: 1.059 MB / 0.571 GB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003635/0.4653, allocations: 187.7 kB / 0.5712 GB, free: 4.379 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4653, allocations: 0 / 0.5712 GB, free: 4.379 MB / 414.1 MB Notification: Performance of Templates: time 0.03873/0.504, allocations: 37.06 MB / 0.6074 GB, free: 15.87 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.makefile (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)