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.001796/0.001796, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.002163/0.002163, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.508/1.508, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1459/0.1459, allocations: 23.87 MB / 332.7 MB, free: 12.33 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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.002053/0.002053, allocations: 67.89 kB / 466 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3592, allocations: 59.82 MB / 0.5135 GB, free: 8.859 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.04325/0.4024, allocations: 29.5 MB / 0.5423 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03828/0.4407, allocations: 28.41 MB / 0.5701 GB, free: 1.113 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.4424, allocations: 31.75 kB / 0.5701 GB, free: 1.082 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002238/0.4446, allocations: 0.6769 MB / 0.5708 GB, free: 0.543 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005091/0.4497, allocations: 1.325 MB / 0.5721 GB, free: 15.28 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01342/0.4631, allocations: 4.301 MB / 0.5763 GB, free: 10.95 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004116/0.4673, allocations: 2.188 MB / 0.5784 GB, free: 8.746 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.469, allocations: 0.966 MB / 0.5793 GB, free: 7.746 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.4707, allocations: 1.044 MB / 0.5804 GB, free: 6.699 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002017/0.4727, allocations: 1.144 MB / 0.5815 GB, free: 5.551 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005483/0.4733, allocations: 180 kB / 0.5817 GB, free: 5.375 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009064/0.4823, allocations: 2.707 MB / 0.5843 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008355/0.4832, allocations: 474.5 kB / 0.5848 GB, free: 2.199 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.4848, allocations: 0.9915 MB / 0.5857 GB, free: 1.203 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.4972, allocations: 5.179 MB / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4972, allocations: 0 / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4972, allocations: 0 / 0.5908 GB, free: 12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.947e-05/0.4973, allocations: 0 / 0.5908 GB, free: 12 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.005538/0.5029, allocations: 2.595 MB / 0.5933 GB, free: 9.344 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.5029, allocations: 8.031 kB / 0.5933 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003919/0.5033, allocations: 219.6 kB / 0.5935 GB, free: 9.109 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/0.5059, allocations: 0.526 MB / 0.594 GB, free: 8.582 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.5084, allocations: 1.255 MB / 0.5953 GB, free: 7.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.5086, allocations: 174.5 kB / 0.5954 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003498/0.5089, allocations: 144 kB / 0.5956 GB, free: 6.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004108/0.513, allocations: 2.027 MB / 0.5976 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.513, allocations: 0 / 0.5976 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/0.5133, allocations: 64 kB / 0.5976 GB, free: 4.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.548e-05/0.5133, allocations: 36 kB / 0.5976 GB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004912/0.5182, allocations: 2.784 MB / 0.6004 GB, free: 1.973 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/0.5305, allocations: 6.676 MB / 0.6069 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.5327, allocations: 0.9979 MB / 0.6079 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.5338, allocations: 0.513 MB / 0.6084 GB, free: 9.555 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.5478, allocations: 8.43 MB / 0.6166 GB, free: 88 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.5478, allocations: 43 kB / 0.6166 GB, free: 36 kB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004756/0.5483, allocations: 107 kB / 0.6167 GB, free: 15.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=50): time 3.397e-06/0.5483, allocations: 0 / 0.6167 GB, free: 15.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=50): time 0.002224/0.5505, allocations: 1.006 MB / 0.6177 GB, free: 14.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.5506, allocations: 115.2 kB / 0.6178 GB, free: 14.74 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.5526, allocations: 1.241 MB / 0.619 GB, free: 13.49 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.214e-05/0.5526, allocations: 33.7 kB / 0.6191 GB, free: 13.45 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008657/0.5535, allocations: 1.001 MB / 0.6201 GB, free: 12.44 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.5537, allocations: 194.5 kB / 0.6202 GB, free: 12.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005082/0.5542, allocations: 343.3 kB / 0.6206 GB, free: 11.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.5544, allocations: 301.1 kB / 0.6209 GB, free: 11.61 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006358/0.555, allocations: 319.8 kB / 0.6212 GB, free: 11.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.5565, allocations: 1.32 MB / 0.6224 GB, free: 9.469 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/0.5591, allocations: 1.809 MB / 0.6242 GB, free: 7.148 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.58e-05/0.5591, allocations: 16 kB / 0.6242 GB, free: 7.133 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003425/0.5625, allocations: 1.699 MB / 0.6259 GB, free: 5.422 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.962e-05/0.5626, allocations: 20 kB / 0.6259 GB, free: 5.402 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.972e-05/0.5626, allocations: 36 kB / 0.6259 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007519/0.5634, allocations: 173.5 kB / 0.6261 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.5649, allocations: 479.5 kB / 0.6266 GB, free: 4.723 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003834/0.5687, allocations: 4.085 MB / 0.6306 GB, free: 308 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.5701, allocations: 91.98 kB / 0.6306 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.5703, allocations: 132 kB / 0.6308 GB, free: 84 kB / 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.0007525/0.5711, allocations: 377 kB / 0.6311 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003888/0.5715, allocations: 147 kB / 0.6313 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.5743, allocations: 1.374 MB / 0.6326 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.5743, allocations: 0 / 0.6326 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.5743, allocations: 8 kB / 0.6326 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.5744, allocations: 3.984 kB / 0.6326 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.5774, allocations: 1.519 MB / 0.6341 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.5774, allocations: 4 kB / 0.6341 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.5777, allocations: 76.11 kB / 0.6342 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007971/0.5785, allocations: 183 kB / 0.6344 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.5786, allocations: 15.98 kB / 0.6344 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003462/0.582, allocations: 3.955 MB / 0.6382 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.5821, allocations: 8.25 kB / 0.6382 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.5837, allocations: 0.992 MB / 0.6392 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.5841, allocations: 208.1 kB / 0.6394 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.5843, allocations: 15.92 kB / 0.6394 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.5848, allocations: 12 kB / 0.6394 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.5849, allocations: 39.83 kB / 0.6395 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/0.585, allocations: 23.94 kB / 0.6395 GB, free: 6.508 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001593/0.5866, allocations: 0.9671 MB / 0.6404 GB, free: 5.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5866, allocations: 0 / 0.6404 GB, free: 5.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002735/0.5893, allocations: 0.8642 MB / 0.6413 GB, free: 4.68 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.004363/0.5937, allocations: 2.495 MB / 0.6437 GB, free: 2.113 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.5958, allocations: 0.8633 MB / 0.6446 GB, free: 1.258 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5958, allocations: 128 / 0.6446 GB, free: 1.258 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.5965, allocations: 409 kB / 0.6449 GB, free: 0.832 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.598, allocations: 233.5 kB / 0.6452 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/0.617, allocations: 11.88 MB / 0.6568 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.618, allocations: 1.184 MB / 0.6579 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001263/0.6193, allocations: 404.1 kB / 0.6583 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009651/0.6203, allocations: 0.6777 MB / 0.659 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of SimCode: time 1.703e-06/0.6203, allocations: 0 / 0.659 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09074/0.711, allocations: 40.32 MB / 0.6984 GB, free: 9.121 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.62, allocations: 8 kB / 0.6984 GB, free: 9.113 MB / 0.545 GB " [Timeout remaining time 644] (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: 18.59110320196487] Failed to read output from testmodel.py, exit status != 0: 15.745826085098088 15.769450618 15.26804491 Calling exit ...