Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.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.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardElectrochemicalCell",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.005697/0.005697, allocations: 101 kB / 15.73 MB, free: 6.039 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.00122/0.00122, allocations: 201.3 kB / 16.68 MB, free: 5.965 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1986/0.1986, allocations: 15.32 MB / 305.9 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2393, allocations: 53.6 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.StandardElectrochemicalCell): time 0.03318/0.2726, allocations: 27.27 MB / 0.4937 GB, free: 7.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02044/0.293, allocations: 21.59 MB / 0.5148 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.2941, allocations: 19.88 kB / 0.5148 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.2954, allocations: 0.5313 MB / 0.5154 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.298, allocations: 1.005 MB / 0.5163 GB, free: 208 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007685/0.3057, allocations: 3.304 MB / 0.5196 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.3082, allocations: 1.805 MB / 0.5213 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.3093, allocations: 0.9418 MB / 0.5223 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007803/0.31, allocations: 0.7907 MB / 0.523 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009366/0.311, allocations: 0.8795 MB / 0.5239 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001929/0.3112, allocations: 148 kB / 0.524 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005536/0.3167, allocations: 2.063 MB / 0.526 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004064/0.3172, allocations: 382.8 kB / 0.5264 GB, free: 5.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000835/0.318, allocations: 0.8049 MB / 0.5272 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007319/0.3253, allocations: 3.961 MB / 0.5311 GB, free: 1.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3254, allocations: 0 / 0.5311 GB, free: 1.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3254, allocations: 3.938 kB / 0.5311 GB, free: 1.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.732e-05/0.3254, allocations: 3.938 kB / 0.5311 GB, free: 1.043 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: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.003142/0.3286, allocations: 2.139 MB / 0.5332 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3286, allocations: 8.031 kB / 0.5332 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002367/0.3289, allocations: 194.3 kB / 0.5333 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.3306, allocations: 448.9 kB / 0.5338 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.3323, allocations: 1.049 MB / 0.5348 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.3325, allocations: 162.1 kB / 0.535 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.3327, allocations: 124 kB / 0.5351 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/0.3353, allocations: 1.752 MB / 0.5368 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.013e-05/0.3354, allocations: 3.938 kB / 0.5368 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.3355, allocations: 52 kB / 0.5368 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.3355, allocations: 32 kB / 0.5369 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003417/0.3389, allocations: 2.311 MB / 0.5391 GB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007496/0.3465, allocations: 5.576 MB / 0.5446 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3477, allocations: 0.733 MB / 0.5453 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/0.3484, allocations: 364.3 kB / 0.5456 GB, free: 1.703 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007452/0.3558, allocations: 5.716 MB / 0.5512 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.3559, allocations: 42.56 kB / 0.5513 GB, free: 11.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/0.3559, allocations: 3.938 kB / 0.5513 GB, free: 11.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001478/0.3574, allocations: 0.7894 MB / 0.552 GB, free: 10.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.3574, allocations: 115 kB / 0.5521 GB, free: 10.26 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.3588, allocations: 1.291 MB / 0.5534 GB, free: 8.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3589, allocations: 29.7 kB / 0.5534 GB, free: 8.922 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005426/0.3595, allocations: 0.8646 MB / 0.5543 GB, free: 8.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.3596, allocations: 154.8 kB / 0.5544 GB, free: 7.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.3599, allocations: 299.4 kB / 0.5547 GB, free: 7.598 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3601, allocations: 349.9 kB / 0.555 GB, free: 7.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.3606, allocations: 335.8 kB / 0.5554 GB, free: 6.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.3617, allocations: 1.152 MB / 0.5565 GB, free: 5.359 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001618/0.3633, allocations: 1.529 MB / 0.558 GB, free: 3.422 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.3633, allocations: 8 kB / 0.558 GB, free: 3.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002319/0.3656, allocations: 1.556 MB / 0.5595 GB, free: 1.848 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.3657, allocations: 26.12 kB / 0.5595 GB, free: 1.824 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.3657, allocations: 28 kB / 0.5596 GB, free: 1.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005886/0.3663, allocations: 153.4 kB / 0.5597 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.3675, allocations: 399.5 kB / 0.5601 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003053/0.3705, allocations: 4.078 MB / 0.5641 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009185/0.3714, allocations: 190.7 kB / 0.5643 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.3716, allocations: 104 kB / 0.5644 GB, free: 12.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (167): * Single equations (assignments): 163 * 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.0004725/0.3721, allocations: 337 kB / 0.5647 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.3723, allocations: 111.2 kB / 0.5648 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.3741, allocations: 0.9451 MB / 0.5657 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3741, allocations: 4 kB / 0.5657 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3741, allocations: 0 / 0.5657 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3741, allocations: 0 / 0.5657 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.3763, allocations: 1.376 MB / 0.567 GB, free: 9.609 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3763, allocations: 8 kB / 0.5671 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.3766, allocations: 55.91 kB / 0.5671 GB, free: 9.547 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007059/0.3773, allocations: 179.6 kB / 0.5673 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.3773, allocations: 12 kB / 0.5673 GB, free: 9.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.3801, allocations: 3.951 MB / 0.5711 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.3801, allocations: 3.938 kB / 0.5712 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.3813, allocations: 0.9212 MB / 0.5721 GB, free: 4.074 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.3816, allocations: 188.3 kB / 0.5722 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.3817, allocations: 19.89 kB / 0.5723 GB, free: 3.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003945/0.3821, allocations: 12.06 kB / 0.5723 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.3822, allocations: 43.83 kB / 0.5723 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.3823, allocations: 16 kB / 0.5723 GB, free: 3.781 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.3834, allocations: 0.9547 MB / 0.5733 GB, free: 2.824 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3834, allocations: 0 / 0.5733 GB, free: 2.824 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001884/0.3853, allocations: 0.7085 MB / 0.5739 GB, free: 2.113 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (30): * Single equations (assignments): 26 * 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.002988/0.3883, allocations: 2.195 MB / 0.5761 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.39, allocations: 0.8531 MB / 0.5769 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.39, allocations: 0 / 0.5769 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005268/0.3906, allocations: 394.8 kB / 0.5773 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3917, allocations: 195 kB / 0.5775 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.406, allocations: 10.45 MB / 0.5877 GB, free: 2.926 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000869/0.4069, allocations: 1.091 MB / 0.5888 GB, free: 1.801 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009129/0.4078, allocations: 312.6 kB / 0.5891 GB, free: 1.496 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006781/0.4085, allocations: 0.5344 MB / 0.5896 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4085, allocations: 0 / 0.5896 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.252/0.6606, allocations: 32.47 MB / 0.6213 GB, free: 114.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.91/24.57, allocations: 5.438 kB / 0.6213 GB, free: 114.8 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell_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_StandardElectrochemicalCell.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardElectrochemicalCell.pipe 2>&1)