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.005097/0.005097, allocations: 98.8 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.001255/0.001255, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.396/1.396, 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.1998/0.1998, allocations: 15.31 MB / 305.9 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2538, allocations: 53.6 MB / 478.3 MB, free: 25.61 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.03235/0.2862, allocations: 27.66 MB / 0.4941 GB, free: 7.078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.3086, allocations: 21.59 MB / 0.5152 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001356/0.31, allocations: 15.94 kB / 0.5152 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.3119, allocations: 0.5313 MB / 0.5157 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.3153, allocations: 0.997 MB / 0.5167 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009122/0.3244, allocations: 3.272 MB / 0.5199 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.3277, allocations: 1.805 MB / 0.5217 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.3293, allocations: 0.9457 MB / 0.5226 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001118/0.3304, allocations: 0.7868 MB / 0.5234 GB, free: 8.977 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.3317, allocations: 0.8873 MB / 0.5242 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002655/0.3319, allocations: 148 kB / 0.5244 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006659/0.3386, allocations: 2.063 MB / 0.5264 GB, free: 5.875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005216/0.3392, allocations: 378.8 kB / 0.5267 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.3402, allocations: 0.8087 MB / 0.5275 GB, free: 4.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008559/0.3488, allocations: 3.961 MB / 0.5314 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3488, allocations: 0 / 0.5314 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3488, allocations: 0 / 0.5314 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.929e-05/0.3488, allocations: 0 / 0.5314 GB, free: 0.7148 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.00342/0.3523, allocations: 2.147 MB / 0.5335 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3523, allocations: 8.031 kB / 0.5335 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002277/0.3525, allocations: 186.3 kB / 0.5337 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001727/0.3543, allocations: 448.9 kB / 0.5341 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/0.356, allocations: 1.056 MB / 0.5351 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.3561, allocations: 158.1 kB / 0.5353 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.3563, allocations: 120 kB / 0.5354 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.3591, allocations: 1.752 MB / 0.5371 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.3591, allocations: 0 / 0.5371 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.3593, allocations: 52 kB / 0.5372 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.037e-05/0.3593, allocations: 32 kB / 0.5372 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003497/0.3628, allocations: 2.315 MB / 0.5395 GB, free: 8.258 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007985/0.3708, allocations: 5.576 MB / 0.5449 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.3722, allocations: 0.7329 MB / 0.5456 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006203/0.3729, allocations: 360.4 kB / 0.546 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008168/0.381, allocations: 5.716 MB / 0.5516 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.3811, allocations: 38.5 kB / 0.5516 GB, free: 10.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/0.3811, allocations: 0 / 0.5516 GB, free: 10.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001547/0.3827, allocations: 0.8012 MB / 0.5524 GB, free: 10.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.3828, allocations: 114.8 kB / 0.5525 GB, free: 9.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.3843, allocations: 1.291 MB / 0.5537 GB, free: 8.629 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.3844, allocations: 33.7 kB / 0.5538 GB, free: 8.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.3851, allocations: 0.8646 MB / 0.5546 GB, free: 7.715 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.3852, allocations: 150.8 kB / 0.5548 GB, free: 7.566 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003792/0.3856, allocations: 291.4 kB / 0.555 GB, free: 7.277 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3858, allocations: 357.9 kB / 0.5554 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.3863, allocations: 339.8 kB / 0.5557 GB, free: 6.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.3876, allocations: 1.148 MB / 0.5568 GB, free: 5.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.3895, allocations: 1.529 MB / 0.5583 GB, free: 3.094 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.3895, allocations: 11.94 kB / 0.5583 GB, free: 3.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002519/0.392, allocations: 1.552 MB / 0.5598 GB, free: 1.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.3921, allocations: 23.94 kB / 0.5599 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.998e-05/0.3921, allocations: 28 kB / 0.5599 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006088/0.3927, allocations: 157.3 kB / 0.56 GB, free: 1.309 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.3939, allocations: 399.7 kB / 0.5604 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003377/0.3973, allocations: 4.074 MB / 0.5644 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009612/0.3983, allocations: 194.7 kB / 0.5646 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.3984, allocations: 104 kB / 0.5647 GB, free: 12.21 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.0004845/0.3989, allocations: 321.1 kB / 0.565 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.3991, allocations: 115.2 kB / 0.5651 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.4009, allocations: 0.9476 MB / 0.566 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.4009, allocations: 4 kB / 0.566 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.401, allocations: 4 kB / 0.566 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.401, allocations: 0 / 0.566 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.4032, allocations: 1.375 MB / 0.5674 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.4032, allocations: 4 kB / 0.5674 GB, free: 9.281 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.4035, allocations: 63.91 kB / 0.5674 GB, free: 9.219 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007273/0.4042, allocations: 171.5 kB / 0.5676 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.4042, allocations: 16 kB / 0.5676 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003126/0.4074, allocations: 3.947 MB / 0.5715 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.4074, allocations: 7.969 kB / 0.5715 GB, free: 4.727 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.4088, allocations: 0.9135 MB / 0.5724 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.4091, allocations: 200.1 kB / 0.5726 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.4092, allocations: 16.02 kB / 0.5726 GB, free: 3.527 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003651/0.4096, allocations: 8 kB / 0.5726 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.667e-05/0.4097, allocations: 43.83 kB / 0.5726 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/0.4097, allocations: 20 kB / 0.5727 GB, free: 3.457 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001297/0.411, allocations: 0.9547 MB / 0.5736 GB, free: 2.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.411, allocations: 0 / 0.5736 GB, free: 2.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002108/0.4132, allocations: 0.7123 MB / 0.5743 GB, free: 1.785 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.003169/0.4163, allocations: 2.195 MB / 0.5764 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.4182, allocations: 0.8488 MB / 0.5773 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4182, allocations: 0 / 0.5773 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005534/0.4188, allocations: 403.3 kB / 0.5776 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.4199, allocations: 197 kB / 0.5778 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.4339, allocations: 10.45 MB / 0.588 GB, free: 2.598 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007922/0.4348, allocations: 1.095 MB / 0.5891 GB, free: 1.469 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009064/0.4357, allocations: 308.5 kB / 0.5894 GB, free: 1.168 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007066/0.4364, allocations: 0.5383 MB / 0.5899 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4364, allocations: 0 / 0.5899 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2694/0.7059, allocations: 32.47 MB / 0.6216 GB, free: 114.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.19/24.89, allocations: 7.5 kB / 0.6216 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)