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.001131/0.001131, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001128, allocations: 196.5 kB / 16.53 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.431/2.431, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5132/0.5132, allocations: 15.31 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.91 kB / 370.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2339, allocations: 53.61 MB / 424.1 MB, free: 14.21 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.7263/0.9604, allocations: 26.51 MB / 450.6 MB, free: 39.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03634/0.9967, allocations: 18.16 MB / 468.7 MB, free: 30.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.9987, allocations: 19.34 kB / 468.7 MB, free: 30.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002337/1.001, allocations: 473.7 kB / 469.2 MB, free: 30.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004667/1.006, allocations: 0.8253 MB / 470 MB, free: 29.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01499/1.021, allocations: 2.798 MB / 472.8 MB, free: 28.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004534/1.025, allocations: 1.624 MB / 474.4 MB, free: 27.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003184/1.029, allocations: 0.9315 MB / 475.4 MB, free: 27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003297/1.032, allocations: 0.7025 MB / 476.1 MB, free: 26.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002586/1.035, allocations: 0.7999 MB / 476.9 MB, free: 26.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008336/1.035, allocations: 141.1 kB / 477 MB, free: 26.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01521/1.051, allocations: 1.761 MB / 478.8 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/1.052, allocations: 360.5 kB / 479.1 MB, free: 25.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002637/1.055, allocations: 0.7416 MB / 479.9 MB, free: 25.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01997/1.075, allocations: 3.444 MB / 483.3 MB, free: 23.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/1.075, allocations: 1.281 kB / 483.3 MB, free: 23.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/1.075, allocations: 0 / 483.3 MB, free: 23.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001017/1.075, allocations: 0 / 483.3 MB, free: 23.75 MB / 366.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.008659/1.084, allocations: 1.929 MB / 485.3 MB, free: 22.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.348e-05/1.084, allocations: 9.562 kB / 485.3 MB, free: 22.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005652/1.084, allocations: 178.2 kB / 485.4 MB, free: 22.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003939/1.088, allocations: 380.1 kB / 485.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004156/1.092, allocations: 0.9525 MB / 486.8 MB, free: 21.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/1.093, allocations: 153.1 kB / 486.9 MB, free: 21.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007226/1.093, allocations: 117.5 kB / 487 MB, free: 21.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006932/1.1, allocations: 1.647 MB / 488.7 MB, free: 20.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/1.101, allocations: 5.312 kB / 488.7 MB, free: 20.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003912/1.101, allocations: 51 kB / 488.7 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-05/1.101, allocations: 30.25 kB / 488.8 MB, free: 20.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006596/1.108, allocations: 2.101 MB / 490.9 MB, free: 20.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/1.123, allocations: 5.43 MB / 496.3 MB, free: 16.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/1.125, allocations: 0.7241 MB / 497 MB, free: 16.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/1.127, allocations: 357.8 kB / 497.4 MB, free: 16.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/1.139, allocations: 5.037 MB / 0.4906 GB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/1.139, allocations: 39.31 kB / 0.4907 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008405/1.14, allocations: 77 kB / 0.4907 GB, free: 12.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 5.81e-06/1.14, allocations: 0 / 0.4907 GB, free: 12.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.002595/1.142, allocations: 0.7506 MB / 0.4915 GB, free: 11.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/1.142, allocations: 110.3 kB / 0.4916 GB, free: 11.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/1.145, allocations: 1.201 MB / 0.4927 GB, free: 11.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/1.145, allocations: 33.33 kB / 0.4928 GB, free: 11.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007984/1.146, allocations: 0.7696 MB / 0.4935 GB, free: 10.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/1.146, allocations: 138.8 kB / 0.4937 GB, free: 10.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007022/1.147, allocations: 274.2 kB / 0.4939 GB, free: 10.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/1.147, allocations: 356.4 kB / 0.4943 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/1.148, allocations: 318.8 kB / 0.4946 GB, free: 9.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/1.15, allocations: 1.05 MB / 0.4956 GB, free: 8.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002529/1.152, allocations: 1.395 MB / 0.497 GB, free: 7.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.974e-05/1.153, allocations: 7.031 kB / 0.497 GB, free: 7.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.004806/1.157, allocations: 1.443 MB / 0.4984 GB, free: 6.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/1.157, allocations: 20.66 kB / 0.4984 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/1.158, allocations: 27.81 kB / 0.4984 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/1.159, allocations: 149.4 kB / 0.4986 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/1.161, allocations: 374.9 kB / 0.4989 GB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/1.166, allocations: 4.068 MB / 0.5029 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/1.168, allocations: 72.72 kB / 0.503 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002848/1.169, allocations: 91.98 kB / 0.503 GB, free: 2.141 MB / 366.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.000826/1.17, allocations: 312.6 kB / 0.5033 GB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/1.17, allocations: 102.7 kB / 0.5034 GB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/1.173, allocations: 0.8601 MB / 0.5043 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/1.173, allocations: 0.6562 kB / 0.5043 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/1.173, allocations: 4 kB / 0.5043 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/1.173, allocations: 1.594 kB / 0.5043 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003796/1.177, allocations: 1.261 MB / 0.5055 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.177, allocations: 4 kB / 0.5055 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/1.177, allocations: 61.97 kB / 0.5056 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/1.179, allocations: 178.4 kB / 0.5057 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/1.179, allocations: 16 kB / 0.5058 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/1.184, allocations: 3.951 MB / 0.5096 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/1.184, allocations: 4 kB / 0.5096 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/1.186, allocations: 0.8505 MB / 0.5105 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006376/1.187, allocations: 168.9 kB / 0.5106 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002904/1.187, allocations: 9.078 kB / 0.5106 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007139/1.188, allocations: 8 kB / 0.5106 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/1.188, allocations: 46.75 kB / 0.5107 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.392e-05/1.188, allocations: 20 kB / 0.5107 GB, free: 10.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002191/1.191, allocations: 0.8834 MB / 0.5116 GB, free: 9.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.191, allocations: 0 / 0.5116 GB, free: 9.504 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00435/1.195, allocations: 0.6199 MB / 0.5122 GB, free: 8.883 MB / 382.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.006276/1.201, allocations: 2.033 MB / 0.5142 GB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00369/1.205, allocations: 0.802 MB / 0.5149 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/1.205, allocations: 384 / 0.5149 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/1.206, allocations: 393.1 kB / 0.5153 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/1.209, allocations: 171.3 kB / 0.5155 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02604/1.235, allocations: 10.11 MB / 0.5253 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/1.236, allocations: 1.059 MB / 0.5264 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00245/1.239, allocations: 282.6 kB / 0.5266 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/1.24, allocations: 495.2 kB / 0.5271 GB, free: 8.391 MB / 398.1 MB Notification: Performance of SimCode: time 1.332e-06/1.24, allocations: 0 / 0.5271 GB, free: 8.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2768/1.517, allocations: 28.71 MB / 0.5552 GB, free: 11.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.76/26.28, allocations: 0 / 0.5552 GB, free: 11.8 MB / 430.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)