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: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004643/0.004643, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001129/0.001129, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.334/1.334, allocations: 222.9 MB / 240.4 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.0775/0.0775, allocations: 15.29 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08618, allocations: 53.61 MB / 478.3 MB, free: 6.273 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.0368/0.123, allocations: 26.59 MB / 0.4931 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/0.3212, allocations: 18.16 MB / 0.5108 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007769/0.322, allocations: 16.62 kB / 0.5108 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.3231, allocations: 480.3 kB / 0.5113 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002186/0.3253, allocations: 0.8412 MB / 0.5121 GB, free: 17.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009005/0.3344, allocations: 2.816 MB / 0.5148 GB, free: 16.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.3372, allocations: 1.635 MB / 0.5164 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001586/0.3388, allocations: 0.9234 MB / 0.5173 GB, free: 16.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.34, allocations: 0.7051 MB / 0.518 GB, free: 16.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.3413, allocations: 0.8045 MB / 0.5188 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002948/0.3416, allocations: 143.7 kB / 0.5189 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006487/0.3481, allocations: 1.757 MB / 0.5207 GB, free: 15.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005953/0.3488, allocations: 361.3 kB / 0.521 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.35, allocations: 0.7413 MB / 0.5217 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009735/0.3597, allocations: 3.486 MB / 0.5251 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3598, allocations: 0 / 0.5251 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3598, allocations: 0 / 0.5251 GB, free: 13.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.082e-05/0.3598, allocations: 3.672 kB / 0.5251 GB, free: 13.77 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.004407/0.3643, allocations: 1.965 MB / 0.5271 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3643, allocations: 11.27 kB / 0.5271 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002487/0.3646, allocations: 180.1 kB / 0.5272 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.3666, allocations: 395.1 kB / 0.5276 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.3682, allocations: 0.9907 MB / 0.5286 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.3683, allocations: 153.9 kB / 0.5287 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.3685, allocations: 113.1 kB / 0.5288 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.3707, allocations: 1.654 MB / 0.5305 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.3707, allocations: 2.594 kB / 0.5305 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.3708, allocations: 45 kB / 0.5305 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.3709, allocations: 30.72 kB / 0.5305 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.3735, allocations: 2.108 MB / 0.5326 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006248/0.3798, allocations: 5.425 MB / 0.5379 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.3809, allocations: 0.7191 MB / 0.5386 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.3814, allocations: 367.1 kB / 0.5389 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005931/0.3874, allocations: 5.022 MB / 0.5438 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.55e-05/0.3874, allocations: 41.22 kB / 0.5439 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002684/0.3877, allocations: 83.14 kB / 0.544 GB, free: 408 kB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 2.415e-06/0.3877, allocations: 0 / 0.544 GB, free: 408 kB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.00129/0.389, allocations: 0.7608 MB / 0.5447 GB, free: 15.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.389, allocations: 110.8 kB / 0.5448 GB, free: 15.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.3903, allocations: 1.199 MB / 0.546 GB, free: 14.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.3904, allocations: 32.33 kB / 0.546 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004538/0.3908, allocations: 0.7933 MB / 0.5468 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.3909, allocations: 137.9 kB / 0.5469 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/0.3913, allocations: 274.7 kB / 0.5472 GB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3914, allocations: 349.9 kB / 0.5475 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004751/0.3919, allocations: 325.1 kB / 0.5478 GB, free: 12.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009105/0.3928, allocations: 1.043 MB / 0.5488 GB, free: 10.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.3942, allocations: 1.397 MB / 0.5502 GB, free: 9.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/0.3942, allocations: 10.62 kB / 0.5502 GB, free: 9.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002149/0.3964, allocations: 1.449 MB / 0.5516 GB, free: 7.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.3964, allocations: 19.09 kB / 0.5516 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.3965, allocations: 31.94 kB / 0.5517 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006367/0.3971, allocations: 152 kB / 0.5518 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.3982, allocations: 374.1 kB / 0.5522 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002869/0.4011, allocations: 4.072 MB / 0.5562 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008945/0.402, allocations: 73.2 kB / 0.5562 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.4022, allocations: 95.98 kB / 0.5563 GB, free: 2.684 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.0004577/0.4026, allocations: 316 kB / 0.5566 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.4028, allocations: 106 kB / 0.5567 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.4044, allocations: 0.8499 MB / 0.5575 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.4044, allocations: 4 kB / 0.5576 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.4045, allocations: 0 / 0.5576 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.4045, allocations: 3.984 kB / 0.5576 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.4066, allocations: 1.264 MB / 0.5588 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.4066, allocations: 3.984 kB / 0.5588 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.4069, allocations: 63.91 kB / 0.5589 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007682/0.4077, allocations: 176.8 kB / 0.559 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.4077, allocations: 12 kB / 0.559 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/0.4103, allocations: 3.95 MB / 0.5629 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4103, allocations: 6.719 kB / 0.5629 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4115, allocations: 0.8538 MB / 0.5637 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.4117, allocations: 176.4 kB / 0.5639 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.4119, allocations: 11.95 kB / 0.5639 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004083/0.4123, allocations: 14.62 kB / 0.5639 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.4124, allocations: 39.84 kB / 0.564 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.4124, allocations: 19.98 kB / 0.564 GB, free: 10.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001053/0.4135, allocations: 0.881 MB / 0.5648 GB, free: 9.488 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4135, allocations: 2.656 kB / 0.5648 GB, free: 9.488 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001951/0.4154, allocations: 0.6228 MB / 0.5655 GB, free: 8.863 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.002879/0.4183, allocations: 2.056 MB / 0.5675 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.4199, allocations: 0.794 MB / 0.5682 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4199, allocations: 0 / 0.5682 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005029/0.4204, allocations: 399.5 kB / 0.5686 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.4215, allocations: 169.3 kB / 0.5688 GB, free: 5.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.4344, allocations: 9.636 MB / 0.5782 GB, free: 11.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.435, allocations: 1.059 MB / 0.5792 GB, free: 10.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007952/0.4358, allocations: 277.1 kB / 0.5795 GB, free: 9.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005982/0.4364, allocations: 0.4928 MB / 0.58 GB, free: 9.426 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4364, allocations: 0 / 0.58 GB, free: 9.426 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05997/0.4964, allocations: 29.13 MB / 0.6084 GB, free: 12.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.72/22.22, allocations: 7.031 kB / 0.6084 GB, free: 12.83 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1)