Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential",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.007455/0.007455, allocations: 99.64 kB / 15.73 MB, free: 6.016 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.001938/0.001939, allocations: 193 kB / 16.67 MB, free: 5.934 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08588/0.08588, allocations: 15.3 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 68.11 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/0.09063, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.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.StandardLeadAcidPotential): time 0.04111/0.1318, allocations: 28.65 MB / 0.4951 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2125/0.3443, allocations: 28.25 MB / 0.5227 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.3454, allocations: 23.03 kB / 0.5227 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.347, allocations: 0.6711 MB / 0.5233 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.3502, allocations: 1.316 MB / 0.5246 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01078/0.361, allocations: 4.26 MB / 0.5288 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.364, allocations: 2.194 MB / 0.5309 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001334/0.3654, allocations: 1.15 MB / 0.532 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.3665, allocations: 1.016 MB / 0.533 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001282/0.3678, allocations: 1.124 MB / 0.5341 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002733/0.3681, allocations: 175.5 kB / 0.5343 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008265/0.3764, allocations: 2.67 MB / 0.5369 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006357/0.3771, allocations: 475.1 kB / 0.5374 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.3782, allocations: 0.9864 MB / 0.5383 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01042/0.3886, allocations: 5.047 MB / 0.5433 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3887, allocations: 7.938 kB / 0.5433 GB, free: 3.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3887, allocations: 0 / 0.5433 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.46e-05/0.3887, allocations: 1.656 kB / 0.5433 GB, free: 3.586 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.003727/0.3924, allocations: 2.601 MB / 0.5458 GB, free: 1.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.3925, allocations: 9.5 kB / 0.5458 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002065/0.3927, allocations: 217.1 kB / 0.546 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002142/0.3948, allocations: 0.5324 MB / 0.5465 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/0.3967, allocations: 1.24 MB / 0.5477 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.3969, allocations: 170.7 kB / 0.5479 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3972, allocations: 140 kB / 0.548 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003421/0.4006, allocations: 2.017 MB / 0.55 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.4007, allocations: 10.69 kB / 0.55 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.4008, allocations: 60 kB / 0.5501 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.4009, allocations: 38.86 kB / 0.5501 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004549/0.4054, allocations: 2.769 MB / 0.5528 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.4163, allocations: 6.607 MB / 0.5593 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.4184, allocations: 1.067 MB / 0.5603 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009625/0.4193, allocations: 0.556 MB / 0.5609 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.4321, allocations: 8.404 MB / 0.5691 GB, free: 8.629 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.4321, allocations: 43 kB / 0.5691 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004187/0.4326, allocations: 103 kB / 0.5692 GB, free: 8.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.4326, allocations: 0 / 0.5692 GB, free: 8.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=50): time 0.001998/0.4346, allocations: 1.004 MB / 0.5702 GB, free: 7.426 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.4347, allocations: 115.2 kB / 0.5703 GB, free: 7.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.4362, allocations: 1.244 MB / 0.5715 GB, free: 6.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.595e-05/0.4363, allocations: 33.7 kB / 0.5715 GB, free: 6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007555/0.4371, allocations: 0.9974 MB / 0.5725 GB, free: 4.992 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.4372, allocations: 206.4 kB / 0.5727 GB, free: 4.789 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004372/0.4377, allocations: 339.3 kB / 0.573 GB, free: 4.449 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4378, allocations: 311.8 kB / 0.5733 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.4384, allocations: 307.8 kB / 0.5736 GB, free: 3.844 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.4399, allocations: 1.314 MB / 0.5749 GB, free: 2.051 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/0.4422, allocations: 1.811 MB / 0.5767 GB, free: 15.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-05/0.4422, allocations: 8 kB / 0.5767 GB, free: 15.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002882/0.4451, allocations: 1.698 MB / 0.5783 GB, free: 14.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.4451, allocations: 24 kB / 0.5784 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.939e-05/0.4452, allocations: 38.62 kB / 0.5784 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006642/0.4458, allocations: 164.3 kB / 0.5786 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4472, allocations: 481.9 kB / 0.579 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003377/0.4506, allocations: 4.089 MB / 0.583 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.4517, allocations: 94.47 kB / 0.5831 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.4519, allocations: 127.9 kB / 0.5832 GB, free: 8.797 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0006259/0.4526, allocations: 381.7 kB / 0.5836 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/0.4528, allocations: 145.7 kB / 0.5837 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/0.4554, allocations: 1.381 MB / 0.5851 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.4554, allocations: 4 kB / 0.5851 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.4554, allocations: 0 / 0.5851 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4554, allocations: 7.984 kB / 0.5851 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/0.458, allocations: 1.514 MB / 0.5866 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.4581, allocations: 4 kB / 0.5866 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003291/0.4584, allocations: 78.55 kB / 0.5866 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007622/0.4592, allocations: 181.6 kB / 0.5868 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.4592, allocations: 12 kB / 0.5868 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.4626, allocations: 3.954 MB / 0.5907 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.4626, allocations: 7.938 kB / 0.5907 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.4642, allocations: 0.9799 MB / 0.5917 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003267/0.4645, allocations: 214.8 kB / 0.5919 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.4647, allocations: 11.94 kB / 0.5919 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.4652, allocations: 12 kB / 0.5919 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.4653, allocations: 46.55 kB / 0.5919 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.4653, allocations: 12 kB / 0.5919 GB, free: 15.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001373/0.4667, allocations: 0.9709 MB / 0.5929 GB, free: 14.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4667, allocations: 2.688 kB / 0.5929 GB, free: 14.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002553/0.4693, allocations: 0.8641 MB / 0.5937 GB, free: 13.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.003557/0.4728, allocations: 2.478 MB / 0.5962 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.4749, allocations: 0.9158 MB / 0.5971 GB, free: 10.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4749, allocations: 0 / 0.5971 GB, free: 10.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005991/0.4755, allocations: 415.5 kB / 0.5974 GB, free: 9.762 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.4769, allocations: 231 kB / 0.5977 GB, free: 9.562 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.4931, allocations: 11.87 MB / 0.6093 GB, free: 12.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009066/0.494, allocations: 1.188 MB / 0.6104 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.4952, allocations: 405.3 kB / 0.6108 GB, free: 11.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000904/0.4961, allocations: 0.6846 MB / 0.6115 GB, free: 10.42 MB / 462.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4961, allocations: 0 / 0.6115 GB, free: 10.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08483/0.5809, allocations: 39.54 MB / 0.6501 GB, free: 3.215 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.5, allocations: 15.91 kB / 0.6501 GB, free: 3.199 MB / 494.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Chemical_Chemical_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_Chemical.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1)