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.001546/0.001546, allocations: 105.8 kB / 16.41 MB, free: 6.5 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.001752/0.001752, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08629/0.08629, allocations: 15.32 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 68.11 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1035, allocations: 53.61 MB / 479.5 MB, free: 5.781 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.03553/0.1391, allocations: 26.52 MB / 0.4941 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2651/0.4043, allocations: 18.16 MB / 0.5119 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009886/0.4053, allocations: 18.31 kB / 0.5119 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.4066, allocations: 470.4 kB / 0.5123 GB, free: 18.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.4089, allocations: 0.8372 MB / 0.5131 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008281/0.4172, allocations: 2.795 MB / 0.5159 GB, free: 17.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003008/0.4202, allocations: 1.626 MB / 0.5175 GB, free: 16.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.4221, allocations: 0.925 MB / 0.5184 GB, free: 16.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.4235, allocations: 0.709 MB / 0.5191 GB, free: 16.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.4251, allocations: 0.7973 MB / 0.5198 GB, free: 16.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005656/0.4257, allocations: 145.1 kB / 0.52 GB, free: 16.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006832/0.4326, allocations: 1.757 MB / 0.5217 GB, free: 16.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008253/0.4334, allocations: 360.6 kB / 0.522 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.4352, allocations: 0.7493 MB / 0.5228 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.4443, allocations: 3.468 MB / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4443, allocations: 0 / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4444, allocations: 1.344 kB / 0.5262 GB, free: 14.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.894e-05/0.4444, 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.003793/0.4482, allocations: 1.928 MB / 0.528 GB, free: 12.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4482, allocations: 10.52 kB / 0.528 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001793/0.45, allocations: 387.1 kB / 0.5284 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.4516, allocations: 0.9697 MB / 0.5294 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.4518, allocations: 146.4 kB / 0.5295 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.452, allocations: 121.6 kB / 0.5296 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/0.4543, allocations: 1.649 MB / 0.5312 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.4544, allocations: 7.547 kB / 0.5312 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.4545, allocations: 50.72 kB / 0.5313 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.4545, allocations: 30.09 kB / 0.5313 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.4574, allocations: 2.098 MB / 0.5334 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006373/0.4638, allocations: 5.411 MB / 0.5386 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.4649, allocations: 0.7247 MB / 0.5394 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004701/0.4654, allocations: 367.4 kB / 0.5397 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00581/0.4712, allocations: 5.026 MB / 0.5446 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.4713, allocations: 38.5 kB / 0.5446 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003211/0.4716, allocations: 74.91 kB / 0.5447 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/0.4716, allocations: 2.688 kB / 0.5447 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001118/0.4727, allocations: 0.7538 MB / 0.5455 GB, free: 48 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.4728, allocations: 109.5 kB / 0.5456 GB, free: 15.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/0.4741, allocations: 1.198 MB / 0.5467 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.4742, allocations: 29.7 kB / 0.5468 GB, free: 14.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004589/0.4746, allocations: 0.7734 MB / 0.5475 GB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.714e-05/0.4747, allocations: 133.5 kB / 0.5476 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.475, allocations: 277.1 kB / 0.5479 GB, free: 13.49 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4752, allocations: 353.9 kB / 0.5482 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/0.4756, allocations: 318.5 kB / 0.5486 GB, free: 12.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009238/0.4766, allocations: 1.046 MB / 0.5496 GB, free: 11.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.478, allocations: 1.401 MB / 0.5509 GB, free: 9.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.478, allocations: 8 kB / 0.5509 GB, free: 9.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002182/0.4802, allocations: 1.441 MB / 0.5524 GB, free: 8.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.4802, allocations: 22.75 kB / 0.5524 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.4802, allocations: 24 kB / 0.5524 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006344/0.4809, allocations: 156 kB / 0.5525 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.4819, allocations: 378.1 kB / 0.5529 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.4847, allocations: 4.072 MB / 0.5569 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.4858, allocations: 70.41 kB / 0.557 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.4859, allocations: 95.98 kB / 0.557 GB, free: 3.168 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.0005249/0.4864, allocations: 313.1 kB / 0.5573 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.4867, allocations: 105.4 kB / 0.5574 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.4882, allocations: 0.8433 MB / 0.5583 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4882, allocations: 6.812 kB / 0.5583 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.4882, allocations: 3.938 kB / 0.5583 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4882, allocations: 0 / 0.5583 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.4902, allocations: 1.264 MB / 0.5595 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4902, allocations: 3.938 kB / 0.5595 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.4905, allocations: 67.89 kB / 0.5596 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007229/0.4912, allocations: 172.4 kB / 0.5597 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.4912, allocations: 19.92 kB / 0.5598 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.4939, allocations: 3.931 MB / 0.5636 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4939, allocations: 6.719 kB / 0.5636 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.4951, allocations: 0.8584 MB / 0.5644 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.4954, allocations: 167.7 kB / 0.5646 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4956, allocations: 11.98 kB / 0.5646 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003613/0.4959, allocations: 14.66 kB / 0.5646 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.496, allocations: 35.91 kB / 0.5647 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.496, allocations: 19.92 kB / 0.5647 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001002/0.4971, allocations: 0.8875 MB / 0.5656 GB, free: 9.992 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4971, allocations: 0 / 0.5656 GB, free: 9.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002231/0.4993, allocations: 0.6123 MB / 0.5662 GB, free: 9.379 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.001512/0.5008, allocations: 0.7292 MB / 0.5669 GB, free: 8.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.5025, allocations: 0.7985 MB / 0.5676 GB, free: 7.984 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.5025, allocations: 3.938 kB / 0.5676 GB, free: 7.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.503, allocations: 395.5 kB / 0.568 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.5041, allocations: 168.1 kB / 0.5682 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.5068, allocations: 1.83 MB / 0.57 GB, free: 5.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005846/0.5074, allocations: 1.059 MB / 0.571 GB, free: 4.543 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.5078, allocations: 201.2 kB / 0.5712 GB, free: 4.352 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5078, allocations: 0 / 0.5712 GB, free: 4.352 MB / 414.1 MB Notification: Performance of Templates: time 0.03852/0.5464, allocations: 36.87 MB / 0.6072 GB, free: 36 kB / 446.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)