Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 103.6 kB / 18.95 MB, free: 2.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00218/0.00218, allocations: 217.6 kB / 22.25 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.372/1.372, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1294/0.1294, allocations: 23.93 MB / 336.4 MB, free: 10.89 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.91 kB / 471.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2848, allocations: 59.87 MB / 0.5186 GB, free: 9.477 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential): time 0.07017/0.355, allocations: 28.62 MB / 0.5466 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03244/0.3874, allocations: 24.85 MB / 0.5708 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.389, allocations: 35.69 kB / 0.5709 GB, free: 4.297 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.3907, allocations: 0.6087 MB / 0.5715 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003625/0.3943, allocations: 1.276 MB / 0.5727 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.406, allocations: 4.34 MB / 0.5769 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003363/0.4094, allocations: 2.192 MB / 0.5791 GB, free: 11.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.4107, allocations: 0.9351 MB / 0.58 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001288/0.412, allocations: 1.044 MB / 0.581 GB, free: 9.812 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001506/0.4135, allocations: 1.144 MB / 0.5821 GB, free: 8.664 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003295/0.4138, allocations: 183.9 kB / 0.5823 GB, free: 8.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006605/0.4205, allocations: 2.605 MB / 0.5849 GB, free: 5.875 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005816/0.421, allocations: 482.5 kB / 0.5853 GB, free: 5.402 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009969/0.422, allocations: 0.8169 MB / 0.5861 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.4325, allocations: 5.167 MB / 0.5912 GB, free: 15.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4325, allocations: 0 / 0.5912 GB, free: 15.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4325, allocations: 0 / 0.5912 GB, free: 15.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.314e-05/0.4326, allocations: 0 / 0.5912 GB, free: 15.39 MB / 446.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.004637/0.4372, allocations: 2.516 MB / 0.5936 GB, free: 12.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4373, allocations: 12.03 kB / 0.5936 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.4375, allocations: 215.6 kB / 0.5938 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.4397, allocations: 0.5298 MB / 0.5944 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00227/0.442, allocations: 1.183 MB / 0.5955 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.4422, allocations: 221.9 kB / 0.5957 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.4425, allocations: 144 kB / 0.5959 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003217/0.4457, allocations: 2.031 MB / 0.5978 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.4458, allocations: 0 / 0.5978 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.4459, allocations: 60 kB / 0.5979 GB, free: 8.312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/0.446, allocations: 40 kB / 0.5979 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004117/0.4501, allocations: 2.737 MB / 0.6006 GB, free: 5.527 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009973/0.46, allocations: 6.001 MB / 0.6065 GB, free: 15.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001847/0.4619, allocations: 0.991 MB / 0.6074 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008643/0.4628, allocations: 0.5169 MB / 0.6079 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009798/0.4726, allocations: 4.176 MB / 0.612 GB, free: 9.645 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.4726, allocations: 54.92 kB / 0.6121 GB, free: 9.582 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003768/0.473, allocations: 103 kB / 0.6122 GB, free: 9.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 2.465e-06/0.473, allocations: 0 / 0.6122 GB, free: 9.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.001848/0.4748, allocations: 0.8551 MB / 0.613 GB, free: 8.617 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.4749, allocations: 115.1 kB / 0.6131 GB, free: 8.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.4765, allocations: 1.291 MB / 0.6144 GB, free: 7.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.043e-05/0.4765, allocations: 37.7 kB / 0.6144 GB, free: 7.137 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007554/0.4773, allocations: 0.9977 MB / 0.6154 GB, free: 6.129 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.4775, allocations: 202.4 kB / 0.6156 GB, free: 5.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004179/0.4779, allocations: 343.3 kB / 0.6159 GB, free: 5.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.478, allocations: 301.1 kB / 0.6162 GB, free: 5.289 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.4786, allocations: 315.8 kB / 0.6165 GB, free: 4.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.48, allocations: 1.324 MB / 0.6178 GB, free: 3.148 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.4823, allocations: 1.809 MB / 0.6196 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/0.4823, allocations: 8 kB / 0.6196 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002874/0.4852, allocations: 1.699 MB / 0.6212 GB, free: 15.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.4852, allocations: 24 kB / 0.6212 GB, free: 15.08 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.4853, allocations: 40.12 kB / 0.6213 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006166/0.4859, allocations: 165.4 kB / 0.6214 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.4872, allocations: 479.1 kB / 0.6219 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.4904, allocations: 3.874 MB / 0.6257 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.4914, allocations: 92.08 kB / 0.6258 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/0.4915, allocations: 128 kB / 0.6259 GB, free: 10.03 MB / 478.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.0006428/0.4922, allocations: 387.3 kB / 0.6263 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.4924, allocations: 143 kB / 0.6264 GB, free: 9.504 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/0.495, allocations: 1.384 MB / 0.6277 GB, free: 8.039 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.495, allocations: 4.094 kB / 0.6278 GB, free: 8.035 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.495, allocations: 7.984 kB / 0.6278 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.495, allocations: 3.984 kB / 0.6278 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.4976, allocations: 1.428 MB / 0.6292 GB, free: 6.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4976, allocations: 4 kB / 0.6292 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.4979, allocations: 71.83 kB / 0.6292 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006794/0.4986, allocations: 175.6 kB / 0.6294 GB, free: 6.246 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.512e-05/0.4986, allocations: 15.98 kB / 0.6294 GB, free: 6.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003059/0.5017, allocations: 3.736 MB / 0.6331 GB, free: 2.199 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.5017, allocations: 4.438 kB / 0.6331 GB, free: 2.195 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.5033, allocations: 1 MB / 0.634 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.5036, allocations: 127 kB / 0.6342 GB, free: 1.008 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.5038, allocations: 16 kB / 0.6342 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.5042, allocations: 12 kB / 0.6342 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.928e-05/0.5043, allocations: 43.81 kB / 0.6342 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.5043, allocations: 24.06 kB / 0.6343 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001351/0.5056, allocations: 0.9632 MB / 0.6352 GB, free: 15.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5056, allocations: 0 / 0.6352 GB, free: 15.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002479/0.5081, allocations: 0.868 MB / 0.636 GB, free: 15.08 MB / 494.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.003628/0.5118, allocations: 2.491 MB / 0.6385 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.5137, allocations: 0.8736 MB / 0.6393 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5137, allocations: 4 kB / 0.6393 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.5143, allocations: 403.1 kB / 0.6397 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.5157, allocations: 235.5 kB / 0.6399 GB, free: 11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/0.5316, allocations: 11.87 MB / 0.6515 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006445/0.5323, allocations: 0.6023 MB / 0.6521 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001144/0.5334, allocations: 406.2 kB / 0.6525 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008483/0.5343, allocations: 0.675 MB / 0.6532 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/0.5343, allocations: 0 / 0.6532 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08602/0.6203, allocations: 42 MB / 0.6942 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.07, allocations: 7.875 kB / 0.6942 GB, free: 2.508 MB / 0.5294 GB " [Timeout remaining time 646] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.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_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.760183881997364] Failed to read output from testmodel.py, exit status != 0: 14.208428912010277 14.234645174 13.796927468 Calling exit ...