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.005687/0.005687, allocations: 103 kB / 15.74 MB, free: 6.496 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.001358/0.001358, allocations: 192.9 kB / 16.68 MB, free: 6.375 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1954/0.1954, allocations: 15.31 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2334, allocations: 53.61 MB / 478.3 MB, free: 25.68 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.03133/0.2648, allocations: 26.94 MB / 0.4934 GB, free: 7.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.2836, allocations: 18.18 MB / 0.5112 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.2847, allocations: 19.88 kB / 0.5112 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.286, allocations: 468.5 kB / 0.5116 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002272/0.2883, allocations: 0.834 MB / 0.5124 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006741/0.2951, allocations: 2.791 MB / 0.5152 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002211/0.2973, allocations: 1.63 MB / 0.5168 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.2984, allocations: 0.9258 MB / 0.5177 GB, free: 14.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007778/0.2992, allocations: 0.7089 MB / 0.5184 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009773/0.3002, allocations: 0.7977 MB / 0.5191 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.3004, allocations: 144 kB / 0.5193 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004735/0.3051, allocations: 1.747 MB / 0.521 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003854/0.3056, allocations: 370.8 kB / 0.5213 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000782/0.3063, allocations: 0.7427 MB / 0.5221 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006073/0.3124, allocations: 3.478 MB / 0.5255 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.3124, allocations: 0 / 0.5255 GB, free: 6.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3125, allocations: 0 / 0.5255 GB, free: 6.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.3125, allocations: 0 / 0.5255 GB, free: 6.809 MB / 398.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.003232/0.3157, allocations: 1.98 MB / 0.5274 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3158, allocations: 12.03 kB / 0.5274 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002256/0.316, allocations: 177.8 kB / 0.5276 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001522/0.3175, allocations: 393.1 kB / 0.5279 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.3192, allocations: 0.9853 MB / 0.5289 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.3194, allocations: 149.9 kB / 0.5291 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/0.3196, allocations: 116 kB / 0.5292 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.3222, allocations: 1.645 MB / 0.5308 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.3223, allocations: 4 kB / 0.5308 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.3224, allocations: 48 kB / 0.5308 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-05/0.3224, allocations: 32 kB / 0.5308 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00318/0.3256, allocations: 2.104 MB / 0.5329 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008123/0.3338, allocations: 5.418 MB / 0.5382 GB, free: 9.371 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.3352, allocations: 0.7251 MB / 0.5389 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.3358, allocations: 352.4 kB / 0.5392 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007674/0.3435, allocations: 5.042 MB / 0.5442 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.3435, allocations: 42.55 kB / 0.5442 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002996/0.3438, allocations: 87.2 kB / 0.5443 GB, free: 2.508 MB / 414.1 MB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/0.3438, allocations: 0 / 0.5443 GB, free: 2.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.001474/0.3453, allocations: 0.7544 MB / 0.545 GB, free: 1.703 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.3454, allocations: 106.8 kB / 0.5451 GB, free: 1.574 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/0.3469, allocations: 1.199 MB / 0.5463 GB, free: 368 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.3469, allocations: 29.7 kB / 0.5463 GB, free: 332 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/0.3475, allocations: 0.7984 MB / 0.5471 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3477, allocations: 146.9 kB / 0.5472 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003509/0.348, allocations: 270.7 kB / 0.5475 GB, free: 15.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3482, allocations: 349.9 kB / 0.5478 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005359/0.3487, allocations: 322.4 kB / 0.5481 GB, free: 14.44 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.3499, allocations: 1.046 MB / 0.5492 GB, free: 13.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.3516, allocations: 1.403 MB / 0.5505 GB, free: 11.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.3516, allocations: 8 kB / 0.5505 GB, free: 11.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00235/0.354, allocations: 1.444 MB / 0.552 GB, free: 9.793 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.354, allocations: 24 kB / 0.552 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.3541, allocations: 24 kB / 0.552 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006199/0.3547, allocations: 145.6 kB / 0.5521 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.3559, allocations: 383.4 kB / 0.5525 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/0.3592, allocations: 4.065 MB / 0.5565 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000843/0.3601, allocations: 71.95 kB / 0.5565 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.3602, allocations: 91.98 kB / 0.5566 GB, free: 4.656 MB / 430.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.0004741/0.3607, allocations: 309.2 kB / 0.5569 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.3609, allocations: 107.3 kB / 0.557 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.3626, allocations: 0.8545 MB / 0.5579 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3626, allocations: 8 kB / 0.5579 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3626, allocations: 0 / 0.5579 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3627, allocations: 11.92 kB / 0.5579 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.3648, allocations: 1.259 MB / 0.5591 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3648, allocations: 4 kB / 0.5591 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.3651, allocations: 55.91 kB / 0.5592 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007641/0.3658, allocations: 179.2 kB / 0.5593 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.3659, allocations: 12 kB / 0.5593 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.3691, allocations: 3.959 MB / 0.5632 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3691, allocations: 0 / 0.5632 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.3704, allocations: 0.8643 MB / 0.5641 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002049/0.3706, allocations: 168.5 kB / 0.5642 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3707, allocations: 15.95 kB / 0.5642 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.3711, allocations: 8 kB / 0.5642 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/0.3712, allocations: 39.95 kB / 0.5643 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.3713, allocations: 16 kB / 0.5643 GB, free: 12.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.3725, allocations: 0.881 MB / 0.5652 GB, free: 11.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3725, allocations: 0 / 0.5652 GB, free: 11.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001938/0.3744, allocations: 0.6306 MB / 0.5658 GB, free: 10.71 MB / 446.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.002896/0.3773, allocations: 2.053 MB / 0.5678 GB, free: 8.602 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.379, allocations: 0.7943 MB / 0.5686 GB, free: 7.812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3791, allocations: 384 / 0.5686 GB, free: 7.812 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005456/0.3796, allocations: 393 kB / 0.5689 GB, free: 7.402 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.3807, allocations: 181.9 kB / 0.5691 GB, free: 7.234 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.3934, allocations: 9.638 MB / 0.5785 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007537/0.3942, allocations: 1.059 MB / 0.5795 GB, free: 11.58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008255/0.395, allocations: 279.5 kB / 0.5798 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006475/0.3957, allocations: 499.2 kB / 0.5803 GB, free: 10.82 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3957, allocations: 0 / 0.5803 GB, free: 10.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2559/0.6516, allocations: 29.12 MB / 0.6087 GB, free: 116.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.97/22.62, allocations: 4.031 kB / 0.6087 GB, free: 116.8 MB / 478.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)