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.006843/0.006843, allocations: 96.45 kB / 15.73 MB, free: 6.051 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.001295/0.001295, allocations: 196.9 kB / 16.67 MB, free: 5.977 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2622/0.2622, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.259, allocations: 53.6 MB / 478.3 MB, free: 25.63 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.03169/0.2907, allocations: 27.2 MB / 0.4937 GB, free: 7.539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.3117, allocations: 21.59 MB / 0.5147 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.3128, allocations: 19.88 kB / 0.5148 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.3141, allocations: 0.5391 MB / 0.5153 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.3164, allocations: 1.001 MB / 0.5163 GB, free: 304 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007732/0.3242, allocations: 3.3 MB / 0.5195 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002311/0.3265, allocations: 1.809 MB / 0.5213 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.3275, allocations: 0.9496 MB / 0.5222 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008171/0.3284, allocations: 0.7829 MB / 0.5229 GB, free: 9.398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.3295, allocations: 0.8834 MB / 0.5238 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002206/0.3297, allocations: 152 kB / 0.524 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006355/0.3361, allocations: 2.056 MB / 0.526 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004197/0.3365, allocations: 378.8 kB / 0.5263 GB, free: 5.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008749/0.3374, allocations: 0.8126 MB / 0.5271 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007407/0.3448, allocations: 3.953 MB / 0.531 GB, free: 1.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3448, allocations: 0 / 0.531 GB, free: 1.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3448, allocations: 4 kB / 0.531 GB, free: 1.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3449, allocations: 0 / 0.531 GB, free: 1.145 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.003057/0.3479, allocations: 2.147 MB / 0.5331 GB, free: 14.94 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.348, allocations: 8.031 kB / 0.5331 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/0.3482, allocations: 194.2 kB / 0.5333 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001735/0.3499, allocations: 444.9 kB / 0.5337 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.3516, allocations: 1.049 MB / 0.5347 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.3518, allocations: 158.1 kB / 0.5349 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.352, allocations: 124 kB / 0.535 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002539/0.3546, allocations: 1.755 MB / 0.5367 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.3546, allocations: 0 / 0.5367 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.3547, allocations: 52 kB / 0.5368 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.561e-05/0.3548, allocations: 32 kB / 0.5368 GB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003222/0.358, allocations: 2.319 MB / 0.539 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007879/0.3659, allocations: 5.572 MB / 0.5445 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.3672, allocations: 0.7368 MB / 0.5452 GB, free: 2.164 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005801/0.3678, allocations: 368.4 kB / 0.5456 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007766/0.3756, allocations: 5.713 MB / 0.5511 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.3756, allocations: 42.5 kB / 0.5512 GB, free: 11.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=37): time 1.914e-06/0.3756, allocations: 4 kB / 0.5512 GB, free: 11.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=37): time 0.001433/0.3771, allocations: 0.7894 MB / 0.552 GB, free: 10.49 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.3771, allocations: 114.7 kB / 0.5521 GB, free: 10.36 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.3785, allocations: 1.291 MB / 0.5533 GB, free: 9.055 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.3785, allocations: 37.7 kB / 0.5534 GB, free: 9.012 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.379, allocations: 0.8607 MB / 0.5542 GB, free: 8.141 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3792, allocations: 154.8 kB / 0.5543 GB, free: 7.988 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.3795, allocations: 291.4 kB / 0.5546 GB, free: 7.699 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3796, allocations: 357.9 kB / 0.555 GB, free: 7.344 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.3801, allocations: 335.8 kB / 0.5553 GB, free: 7.016 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009905/0.3811, allocations: 1.148 MB / 0.5564 GB, free: 5.457 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.3827, allocations: 1.537 MB / 0.5579 GB, free: 3.512 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/0.3827, allocations: 8 kB / 0.5579 GB, free: 3.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002251/0.385, allocations: 1.544 MB / 0.5594 GB, free: 1.949 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.385, allocations: 22.31 kB / 0.5594 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.751e-05/0.3851, allocations: 36 kB / 0.5595 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005925/0.3857, allocations: 161.3 kB / 0.5596 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.3868, allocations: 399.4 kB / 0.56 GB, free: 1.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.3896, allocations: 4.07 MB / 0.564 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009285/0.3906, allocations: 190.5 kB / 0.5642 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.3907, allocations: 99.98 kB / 0.5643 GB, free: 12.64 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.0004496/0.3912, allocations: 329.2 kB / 0.5646 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.3914, allocations: 119.2 kB / 0.5647 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.3931, allocations: 0.9447 MB / 0.5656 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3931, allocations: 0 / 0.5656 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3931, allocations: 11.92 kB / 0.5656 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3931, allocations: 0 / 0.5656 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/0.3952, allocations: 1.376 MB / 0.567 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3952, allocations: 0 / 0.567 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.3954, allocations: 63.91 kB / 0.567 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000703/0.3962, allocations: 175.5 kB / 0.5672 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.3962, allocations: 20 kB / 0.5672 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00266/0.3989, allocations: 3.947 MB / 0.5711 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.3989, allocations: 4 kB / 0.5711 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.4001, allocations: 0.9211 MB / 0.572 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.4003, allocations: 184.3 kB / 0.5722 GB, free: 3.969 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.4005, allocations: 23.88 kB / 0.5722 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.4009, allocations: 8 kB / 0.5722 GB, free: 3.938 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.542e-05/0.401, allocations: 43.91 kB / 0.5722 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.401, allocations: 19.98 kB / 0.5722 GB, free: 3.875 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.4021, allocations: 0.9586 MB / 0.5732 GB, free: 2.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4021, allocations: 0 / 0.5732 GB, free: 2.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001959/0.4041, allocations: 0.7045 MB / 0.5739 GB, free: 2.207 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.002654/0.4067, allocations: 2.195 MB / 0.576 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.4083, allocations: 0.85 MB / 0.5768 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4083, allocations: 0 / 0.5768 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.4088, allocations: 389.1 kB / 0.5772 GB, free: 14.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4099, allocations: 203.8 kB / 0.5774 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.4216, allocations: 10.45 MB / 0.5876 GB, free: 3.023 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.4223, allocations: 1.095 MB / 0.5887 GB, free: 1.895 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008521/0.4232, allocations: 304.7 kB / 0.589 GB, free: 1.598 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006288/0.4238, allocations: 0.5383 MB / 0.5895 GB, free: 1.059 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4238, allocations: 4 kB / 0.5895 GB, free: 1.055 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2708/0.6947, allocations: 32.47 MB / 0.6212 GB, free: 114.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.83/24.52, allocations: 9.391 kB / 0.6212 GB, free: 114.9 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)